In [8]:
import web

urls = (
    '/', 'index'
)

class index:
    def GET(self):
        return "Hello, world!"

if __name__ == "__main__":
    urls="http://0.0.0.0/"
    app = web.application(urls, globals())
    app.run()


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-8-56b54404a85e> in <module>()
     12     urls="http://0.0.0.0/"
     13     app = web.application(urls, globals())
---> 14     app.run()

/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/application.pyc in run(self, *middleware)
    311         function.
    312         """
--> 313         return wsgi.runwsgi(self.wsgifunc(*middleware))
    314 
    315     def stop(self):

/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/wsgi.pyc in runwsgi(func)
     52             return runscgi(func)
     53 
---> 54     return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
     55 
     56 def _is_dev_mode():

/Library/Python/2.7/site-packages/web.py-0.37-py2.7.egg/web/net.pyc in validip(ip, defaultaddr, defaultport)
     69             port = int(ip[0])
     70         else:
---> 71             raise ValueError, ':'.join(ip) + ' is not a valid IP address/port'
     72     elif len(ip) == 2:
     73         addr, port = ip

ValueError: -f is not a valid IP address/port

In [ ]:


In [3]:
import wes


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-86dc1b35bab1> in <module>()
----> 1 import wes

ImportError: No module named wes

In [ ]: