[Twisted-Python] "Import Error" after installing twisted matrix

Christopher Armstrong radix at twistedmatrix.com
Mon Apr 21 12:34:49 MDT 2008


On Mon, Apr 21, 2008 at 11:07 AM, Ben <nebpro at gmail.com> wrote:
> Hi,
>
> I am having problem compiling twisted sample codes. It gives me "Import
> Error" errors (i.e. ImportError: No module named web.client). I really
> appreciate any suggestions. Thank you.

If it's "No module named web.client", it sounds a lot like you named a
file "twisted.py". That's a bad idea; it will conflict with the
toplevel "twisted" package. Is this what you did? If you did, make
sure you delete twisted.py and twisted.pyc.

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/




More information about the Twisted-Python mailing list