To start a simple server
Redcat
redcat at streemit.net
Mon Oct 3 09:51:52 EDT 2011
Are you running web.py on your computer, or is it running for example on
a hosting company's computer? If it's not on your computer you have your
port 8080 traffic blocked the hosting company's firewall.
On Sun, 02 Oct 2011 20:59:40 -0700, sillyou su wrote:
> i am learning webpy and I am following the tutorial (http://webpy.org/
> docs/0.3/tutorial) .
>
> But when i installed mysql , i found problem.
>
> Here is the code:
> #===============================================# import web
>
> urls=("/.","index")
>
> app=web.application(urls,globals())
>
> class index:
> def GET(self):
> return 'hello world'
>
> if __name__=='__main__':
> app.run()
> #===============================================#
>
> And here is error information:
> #===============================================# http://0.0.0.0:8080/
>
> Traceback (most recent call last):
> File "C:\Users\su\Desktop\code.py", line 18, in <module> app.run()
> File "C:\Python27\lib\site-packages\web\application.py", line 311, in
> run
> return wsgi.runwsgi(self.wsgifunc(*middleware)) File
> "C:\Python27\lib\site-packages\web\wsgi.py", line 54, in runwsgi return
> httpserver.runsimple(func, validip(listget(sys.argv, 1, ''))) File
> "C:\Python27\lib\site-packages\web\httpserver.py", line 148, in
> runsimple
> server.start()
> File "C:\Python27\lib\site-packages\web\wsgiserver\__init__.py", line
> 1753, in start
> raise socket.error(msg)
> error: No socket could be created
> #===============================================#
> A service occupy port 8080. So i stop the service.
> The program did run, but another problem came out.
> #===============================================#
>
> the program is not running. In the browser:
> ============================================ This webpage is not
> available
> The webpage at http://0.0.0.0:8080/ might be temporarily down or it may
> have moved permanently to a new web address. Error 108
> (net::ERR_ADDRESS_INVALID): Unknown error.
>
> ============================================
>
> now the program is running. In the browser:
> ============================================ This webpage is not
> available
> The webpage at http://0.0.0.0:8080/ might be temporarily down or it may
> have moved permanently to a new web address. Error 108
> (net::ERR_ADDRESS_INVALID): Unknown error.
> ============================================ Nothing difference .
>
> I can't describe the problem very well in English. So I post all
> information here .
>
> Thank you for any tips.
More information about the Python-list
mailing list