<br><br><div><span class="gmail_quote">On 2/8/06, <b class="gmail_sendername">Jean-Paul Calderone</b> <<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 08 Feb 2006 16:37:21 -0200, Gustavo Rahal <<a href="mailto:gustavo@grahal.net">gustavo@grahal.net</a>> wrote:<br>>Hi All<br>><br>><br>>twistd -y app.py<br>><br>>Traceback (most recent call last):
<br>> File "C:\Python24\Lib\site-packages\twisted\scripts\twistd.py", line 6, in<br>>?<br>> from twisted.python import log, syslog<br>> File "C:\Python24\lib\site-packages\twisted\python\syslog.py", line 5, in
<br>>?<br>> syslog = __import__('syslog')<br>>ImportError: No module named syslog<br>><br>>The module is there!<br><br>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.<br><br>twisted/python/syslog.py exists,
certainly, but it is trying to import syslog from the standard library,
which is not available on Win32.<br><br>Jean-Paul<br><br>_______________________________________________<br>Twisted-web mailing list<br><a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br></blockquote></div>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.<br>