# [Twisted-Python] How do I run a twisted server directly

Alexander May alex-news at comcast.net
Fri May 14 20:31:53 EDT 2004

```Oops, thanks.  Any hope debugging in my IDE instead of pdb?

-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Christopher
Armstrong
Sent: Friday, May 14, 2004 8:25 PM
To: Twisted discussion stuff
Subject: Re: [Twisted-Python] How do I run a twisted server directly

Alexander May wrote:
> Also, I ran twistd.py and got "Please use twistw on windows, not twistd"
> (I'm on windows sometimes).  I then ran twistw.py and nothing
> happened.  I looked at the file, and there were only class and
> function definitions.  I added "run()" at the end of the file and it
> seems to work.  I'm using the version 1.2.0 which was marked as

You should be calling C:\Python23\scripts\twistd (or something like that),
not Lib\twisted\scripts\twistd.py. When you install the windows package for
Twisted, there should be a start menu item that runs a shell with a properly
set up environment so you can just type "twistd" or "mktap" and so on and
it'll DTRT.

--
Twisted | Christopher Armstrong: International Man of Twistery
Radix  |          Release Manager,  Twisted Project