[Twisted-Python] twistd doesn't work
Hey everyone I'm going through the finger tutorial -> http://twistedmatrix.com/projects/core/documentation/howto/tutorial/intro.ht.... And at the end of the first section it talks about using the twistd command. Now it just plain doesn't work for me, telling me the command is not found. I'm using a macbook pro and i type the command into terminal. Can anyone tell me what i'm doing wrong. Because the next section doesn't work (i'm assuming its related to my lack of twistd-ness) I know this a n00bish question, and i've been searching for an answer, but everyone else seems to be able to get it working and no one mentions having problems. Then i thought maybee i have to download something extra for twisted, but a search of the site only returned tickets (bug tickets) instead of an actual search of the site. Any help would be greatly appreciated Lango
Hi David, Have you installed the Twisted 2.5.0 tarball from http:// twistedmatrix.com/trac/ ? If so, you should find the twistd command in the OS X Python bin dir, which will usually be: /Library/Frameworks/Python.framework/Versions/Current/bin/twistd or /Library/Frameworks/Python.framework/Versions/2.4/bin/twistd Cheers, Chris On 4 Sep 2007, at 05:57, David Langford wrote:
Hey everyone
I'm going through the finger tutorial -> http://twistedmatrix.com/ projects/core/documentation/howto/tutorial/intro.html . And at the end of the first section it talks about using the twistd command. Now it just plain doesn't work for me, telling me the command is not found. I'm using a macbook pro and i type the command into terminal.
Can anyone tell me what i'm doing wrong. Because the next section doesn't work (i'm assuming its related to my lack of twistd-ness)
I know this a n00bish question, and i've been searching for an answer, but everyone else seems to be able to get it working and no one mentions having problems. Then i thought maybee i have to download something extra for twisted, but a search of the site only returned tickets (bug tickets) instead of an actual search of the site.
Any help would be greatly appreciated
Lango _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Hey I did have the latest Twisted 2.5.0 installed. But I don't think i had the latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time). So i've downloaded the latest stable zope but it wont let me install because it isn't supported by the latest version of python. And now i'm stuck, in worse position than before because now i don't even have twisted. I feel like these are extremely basic things i should now, is there a webpage or something that answers these problems i'im having? Cheers David On 9/4/07, Chris Miles <miles.chris@gmail.com> wrote:
Hi David,
Have you installed the Twisted 2.5.0 tarball from http:// twistedmatrix.com/trac/ ?
If so, you should find the twistd command in the OS X Python bin dir, which will usually be: /Library/Frameworks/Python.framework/Versions/Current/bin/twistd or /Library/Frameworks/Python.framework/Versions/2.4/bin/twistd
Cheers, Chris
On 4 Sep 2007, at 05:57, David Langford wrote:
Hey everyone
I'm going through the finger tutorial -> http://twistedmatrix.com/ projects/core/documentation/howto/tutorial/intro.html . And at the end of the first section it talks about using the twistd command. Now it just plain doesn't work for me, telling me the command is not found. I'm using a macbook pro and i type the command into terminal.
Can anyone tell me what i'm doing wrong. Because the next section doesn't work (i'm assuming its related to my lack of twistd-ness)
I know this a n00bish question, and i've been searching for an answer, but everyone else seems to be able to get it working and no one mentions having problems. Then i thought maybee i have to download something extra for twisted, but a search of the site only returned tickets (bug tickets) instead of an actual search of the site.
Any help would be greatly appreciated
Lango _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
"David Langford" <langford.d@gmail.com> writes:
I did have the latest Twisted 2.5.0 installed. But I don't think i had the latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time).
You're most likely just getting caught mixing different python installations, which can be easy to do when you have multiple interpreters on a system. You just need to ensure you're installing against the right Python runtime when you install the Twisted package. In particular, make sure you are running the Python executable you think you are when running setup.py since it will install into the library location for that Python executable. Assuming you install the latest Python (say, Python 2.5.1 from the OS X DMG image). It will place its installation by default into the paths mentioned earlier (but with 2.5 rather than 2.4) - e.g.: /Library/Frameworks/Python.framework/Versions/2.5 or /Library/Frameworks/Python.framework/Versions/Current (Current is normally a symbolic link to a specific version) If you've installed more than one Python release, you'll have multiple versioned directories (e.g., 2.4 and 2.5) and Current will link to one, probably the last you installed. The python executable is in the "bin" directory beneath that root (which also holds external library scripts), and external library python code will end up beneath lib/python2.5/site-packages from that root. So the first thing to be absolutely sure about is that when you want to install packages like Twisted (or any distutils based package) into your python 2.5.1 installation, you must be sure to run the python 2.5.1 executable. You can do that by making sure the above paths are in your default shell path, adding them temporarily, explicitly using the full path to the executable or whatever you are comfortable with. When in doubt, start python by whatever method you choose, and verify the version number in the startup banner. Once you are sure of your python executable, simplest is to start with a full Twisted 2.5.0 archive (such as Twisted-2.5.0.tar.bz2). Unpack that into a convenient directory. Twisted does depend on the zope.interface package. It includes an appropriate copy of that package in the archive, but you need to install it yourself. So switch into the zope.interface-3.3.0 directory, and from within there run "sudo python setup.py install", again making sure that the python you are running are the one you want to install into. After you do that you can do the same "sudo python setup.py install" from the top level of the unpacked archive and it will install all the Twisted projects. Or if you just want some (say TwistedCore and TwistedWeb), you can switch individually into each of those project directories and run setup.py from there manually. That should be all there is to it. -- David
On 05:36 am, langford.d@gmail.com wrote:
I did have the latest Twisted 2.5.0 installed. But I don't think i had the latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time).
Twisted does not, has never, and *will* never require Zope. It requires Zope Interface, which is a separate, isolated library used by, and developed for, Zope. Get it here: http://www.zope.org/Products/ZopeInterface This is not the first time I've heard this misunderstanding. How could we have more clearly worded the error message that you saw so that you'd notice that Zope Interface is not Zope?
So i've downloaded the latest stable zope but it wont let me install because it isn't supported by the latest version of python.
Download the latest Zope Interface from the URL above. It's supported by Python 2.5, and it works fine.
Hey I can't actually remember what the error message said. Maybee if you just say, 'zope interface (this is different from zope)' . I think i was just assuming the zope inferface came with the zope package. Sorry i couldn't be more specific but i hope this helps. Cheers David On 9/7/07, glyph@divmod.com <glyph@divmod.com> wrote:
On 05:36 am, langford.d@gmail.com wrote:
I did have the latest Twisted 2.5.0 installed. But I don't think i had the latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time).
Twisted does not, has never, and *will* never require Zope. It requires Zope Interface, which is a separate, isolated library used by, and developed for, Zope. Get it here:
http://www.zope.org/Products/ZopeInterface
This is not the first time I've heard this misunderstanding. How could we have more clearly worded the error message that you saw so that you'd notice that Zope Interface is not Zope?
So i've downloaded the latest stable zope but it wont let me install because it isn't supported by the latest version of python.
Download the latest Zope Interface from the URL above. It's supported by Python 2.5, and it works fine.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
David No need to install a full blown Zope, just install the interface package http://www.zope.org/Products/ZopeInterface On the Mac also make sure that you're path is set to the correct directories where twistd resides (usually in your Python installation in the Scripts subdirectory) If you want to find 'something' on your machine, use find in a terminal window like find / -name 'twistd' -print If you want to look at your PATH variable use $PATH or env if you want to change your path, open a fresh terminal an enter open .bash_profile which should open the file with one of the text editors available HTH, Werner David Langford wrote:
Hey
I did have the latest Twisted 2.5.0 installed. But I don't think i had the latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time).
So i've downloaded the latest stable zope but it wont let me install because it isn't supported by the latest version of python.
And now i'm stuck, in worse position than before because now i don't even have twisted. I feel like these are extremely basic things i should now, is there a webpage or something that answers these problems i'im having?
Cheers
David
On 9/4/07, Chris Miles <miles.chris@gmail.com> wrote:
Hi David,
Have you installed the Twisted 2.5.0 tarball from http:// twistedmatrix.com/trac/ ?
If so, you should find the twistd command in the OS X Python bin dir, which will usually be: /Library/Frameworks/Python.framework/Versions/Current/bin/twistd or /Library/Frameworks/Python.framework/Versions/2.4/bin/twistd
Cheers, Chris
On 4 Sep 2007, at 05:57, David Langford wrote:
Hey everyone
I'm going through the finger tutorial -> http://twistedmatrix.com/ projects/core/documentation/howto/tutorial/intro.html . And at the end of the first section it talks about using the twistd command. Now it just plain doesn't work for me, telling me the command is not found. I'm using a macbook pro and i type the command into terminal.
Can anyone tell me what i'm doing wrong. Because the next section doesn't work (i'm assuming its related to my lack of twistd-ness)
I know this a n00bish question, and i've been searching for an answer, but everyone else seems to be able to get it working and no one mentions having problems. Then i thought maybee i have to download something extra for twisted, but a search of the site only returned tickets (bug tickets) instead of an actual search of the site.
Any help would be greatly appreciated
Lango _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
------------------------------------------------------------------------
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Thanks everyone for your help. I have correctly reinstalled it and everything is working fine, including the twistd command. Thanks again for everyones help. Cheers David On 9/7/07, Werner Thie <wthie@thiengineering.ch> wrote:
David
No need to install a full blown Zope, just install the interface package
http://www.zope.org/Products/ZopeInterface
On the Mac also make sure that you're path is set to the correct directories where twistd resides (usually in your Python installation in the Scripts subdirectory)
If you want to find 'something' on your machine, use find in a terminal window like
find / -name 'twistd' -print
If you want to look at your PATH variable
use $PATH or env
if you want to change your path, open a fresh terminal an enter
open .bash_profile
which should open the file with one of the text editors available
HTH, Werner
Hey
I did have the latest Twisted 2.5.0 installed. But I don't think i had
David Langford wrote: the
latest python installed. I installed that and now python doesnt see twisted. I downloaded the latest tarball again and when i tried to install it (using python setup.py install) it tells me i need zope (which it didn't last time).
So i've downloaded the latest stable zope but it wont let me install because it isn't supported by the latest version of python.
And now i'm stuck, in worse position than before because now i don't even have twisted. I feel like these are extremely basic things i should now, is there a webpage or something that answers these problems i'im having?
Cheers
David
On 9/4/07, Chris Miles <miles.chris@gmail.com> wrote:
Hi David,
Have you installed the Twisted 2.5.0 tarball from http:// twistedmatrix.com/trac/ ?
If so, you should find the twistd command in the OS X Python bin dir, which will usually be: /Library/Frameworks/Python.framework/Versions/Current/bin/twistd or /Library/Frameworks/Python.framework/Versions/2.4/bin/twistd
Cheers, Chris
On 4 Sep 2007, at 05:57, David Langford wrote:
Hey everyone
I'm going through the finger tutorial -> http://twistedmatrix.com/ projects/core/documentation/howto/tutorial/intro.html . And at the end of the first section it talks about using the twistd command. Now it just plain doesn't work for me, telling me the command is not found. I'm using a macbook pro and i type the command into terminal.
Can anyone tell me what i'm doing wrong. Because the next section doesn't work (i'm assuming its related to my lack of twistd-ness)
I know this a n00bish question, and i've been searching for an answer, but everyone else seems to be able to get it working and no one mentions having problems. Then i thought maybee i have to download something extra for twisted, but a search of the site only returned tickets (bug tickets) instead of an actual search of the site.
Any help would be greatly appreciated
Lango _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
------------------------------------------------------------------------
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (5)
-
Chris Miles
-
David Bolen
-
David Langford
-
glyph@divmod.com
-
Werner Thie