Re: [Twisted-Python] Hotdot
Run the example *not* as root, then it will work. sys.path is different for the root user, that is the problem. -Alex On Tue, Oct 27, 2009 at 11:17 AM, Alfredo Veltri <alfredo.veltri@digitalia.it> wrote:
Hi Alex, i'm trying with hotdot. i receive the following errors. Would help me about that? Thanks in advance.
root@myhome:/var/www/clemesha-hotdot-522849b/djangoweb# cd .
root@myhome:/var/www/clemesha-hotdot-522849b# ls
djangoweb README.rst realtime server.py static
root@myhome:/var/www/clemesha-hotdot-522849b# twistd -ny server.py
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/application/app.py" , line 690, in run runApp(config) File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/scripts/twistd.py" , line 23, in runApp _SomeApplicationRunner(config).run() File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/application/app.py" , line 411, in run self.application = self.createOrGetApplication() File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/application/app.py" , line 494, in createOrGetApplication application = getApplication(self.config, passphrase) --- <exception caught here> --- File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/application/app.py" , line 505, in getApplication application = service.loadApplication(filename, style, passphrase) File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/application/service.py" , line 390, in loadApplication application = sob.loadValueFromFile(filename, 'application', passphrase) File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0_r27386-py2.6-linux-i686.egg/twisted/persisted/sob.py" , line 210, in loadValueFromFile exec fileObj in d, d File "server.py", line 25, in <module> from djangoweb.twisted_wsgi import get_root_resource exceptions.ImportError: No module named djangoweb.twisted_wsgi
Failed to load application: No module named djangoweb.twisted_wsgi
-- Alex Clemesha clemesha.org
participants (1)
-
Alex Clemesha