doing some testing with twisted and web2py (proof of concept in between 
development swings), but can't get anyserver.py to run.  I'm getting the 
following:

root@python1:/var/www/web2py# python anyserver.py -s twisted -i 
10.102.42.10 -p 8000 -l
starting twisted on 10.102.42.10:8000...
Traceback (most recent call last):
  File "anyserver.py", line 299, in <module>
    main()
  File "anyserver.py", line 295, in main
    
run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler)
  File "anyserver.py", line 157, in run
    getattr(Servers,servername)(application,(ip,int(port)))
  File "anyserver.py", line 110, in twisted
    from twisted.web import server, wsgi
  File "/var/www/web2py/gluon/custom_import.py", line 293, in __call__
    fromlist, level)
  File "/var/www/web2py/gluon/custom_import.py", line 78, in __call__
    level)
  File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 30, 
in <module>
    from twisted.web import iweb, http
  File "/var/www/web2py/gluon/custom_import.py", line 293, in __call__
    fromlist, level)
  File "/var/www/web2py/gluon/custom_import.py", line 78, in __call__
    level)
  File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 30, in 
<module>
    from twisted.internet import interfaces, reactor, protocol, address
  File "/var/www/web2py/gluon/custom_import.py", line 293, in __call__
    fromlist, level)
  File "/var/www/web2py/gluon/custom_import.py", line 78, in __call__
    level)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/reactor.py", line 
37, in <module>
    from twisted.internet import default
  File "/var/www/web2py/gluon/custom_import.py", line 271, in __call__
    globals.get("__file__", ""))
  File "/usr/lib/python2.7/posixpath.py", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
root@python1:/var/www/web2py#


Ideas?

Reply via email to