Hi All twistd -y app.py Traceback (most recent call last): File "C:\Python24\Lib\site-packages\twisted\scripts\twistd.py", line 6, in ? from twisted.python import log, syslog File "C:\Python24\lib\site-packages\twisted\python\syslog.py", line 5, in ? syslog = __import__('syslog') ImportError: No module named syslog The module is there! I'm running on windows 2000. I tried to adjust PATH and PYTHONPATH (I don't know if pythonpath applies for windows) and still didn't work. Any ideas? Gustavo
On Wed, 08 Feb 2006 16:37:21 -0200, Gustavo Rahal <gustavo@grahal.net> wrote:
Hi All
twistd -y app.py
Traceback (most recent call last): File "C:\Python24\Lib\site-packages\twisted\scripts\twistd.py", line 6, in ? from twisted.python import log, syslog File "C:\Python24\lib\site-packages\twisted\python\syslog.py", line 5, in ? syslog = __import__('syslog') ImportError: No module named syslog
The module is there!
You're using twisted/scripts/twistd.py somehow, which doesn't work on Windows. You want to be using bin/twistd. The Win32 installer should have added a "Twisted Command Shell" or something similar to your start menu. Try running that, and running twistd inside it. twisted/python/syslog.py exists, certainly, but it is trying to import syslog from the standard library, which is not available on Win32. Jean-Paul
On 2/8/06, Jean-Paul Calderone <exarkun@divmod.com> wrote:
On Wed, 08 Feb 2006 16:37:21 -0200, Gustavo Rahal <gustavo@grahal.net> wrote:
Hi All
twistd -y app.py
Traceback (most recent call last): File "C:\Python24\Lib\site-packages\twisted\scripts\twistd.py", line 6, in ? from twisted.python import log, syslog File "C:\Python24\lib\site-packages\twisted\python\syslog.py", line 5, in ? syslog = __import__('syslog') ImportError: No module named syslog
The module is there!
You're using twisted/scripts/twistd.py somehow, which doesn't work on Windows. You want to be using bin/twistd. The Win32 installer should have added a "Twisted Command Shell" or something similar to your start menu. Try running that, and running twistd inside it.
twisted/python/syslog.py exists, certainly, but it is trying to import syslog from the standard library, which is not available on Win32.
Jean-Paul
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
In the python24 directory under windows, there is a twistd.bat in the scripts directory. It works fine in windows, I haven't had any problems with it. To get it to work from windows command line, just add C:\Python24\scripts\ to your path under environment. From looking at shortcut for twisted command prompt, looks like all it does is add that directory to your path temporarily.
participants (3)
-
Gustavo Rahal
-
Jean-Paul Calderone
-
Todd Thomas