[Twisted-Python] Re: What is the best way to install Twisted on OS X 10.4?
Aaron Rustad
arustad at gmail.com
Fri Jul 14 10:32:49 EDT 2006
Turns out there is a problem with the msn_example.py that is provided
under the documentation section of the Words project.
The import of msn is:
from twisted.protocols import msn
but should read:
from twisted.words.protocols import msn
AR.
On 7/13/06, Aaron Rustad <arustad at gmail.com> wrote:
> I'm having a hard time running a TwistedWords example.
> [OS X 10.4, MacPython 2.4, Python 2.3.5, latest stable build of TwistedSumo]
>
> I have installed (correctly I think) zopeinterfaces/core/words/web,
> but when I invoke:
>
> /usr/local/bin/python msn_example.py
>
>
> I get the following error:
>
> Traceback (most recent call last):
> File "msn_example.py", line 11, in ?
> from twisted.protocols import msn
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twisted/protocols/msn.py",
> line 6, in ?
> globals())
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twisted/python/util.py",
> line 725, in moduleMovedForSplit
> raise ImportError("You need to have the Twisted %s "
> ImportError: You need to have the Twisted Words package installed to
> use twisted.protocols.msn. See
> http://twistedmatrix.com/projects/words.
>
>
>
> Your help is greatly appreciated [I'm a noob to Python and Twisted,
> but I know bit about OS X].
> Thanks!
> Aaron.
>
More information about the Twisted-Python
mailing list