[Twisted-Python] twisted can't find internet module
I use xp,python 2.5.5,twisted 10.2.0 for py2.5 code: from twisted.internet import reactor reactor.run() I save the code named 1.py.while I run 1.py,give me the error: ImportError: No module named internet who can give me a help?
你这报错是路径问题。把你的环境搞清晰一些,马就能找到问题原因。 2011/2/10 唐东军 <ttkk1024@163.com>
I use xp,python 2.5.5,twisted 10.2.0 for py2.5 code: from twisted.internet import reactor reactor.run()
I save the code named 1.py.while I run 1.py,give me the error: ImportError: No module named internet
who can give me a help?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Feb 10, 2011, at 4:10 AM, 唐东军 wrote:
I use xp,python 2.5.5,twisted 10.2.0 for py2.5 code: from twisted.internet import reactor reactor.run()
I save the code named 1.py.while I run 1.py,give me the error: ImportError: No module named internet
who can give me a help?
The error message is longer than that. It should say things about files and line numbers. Can you paste the entire message?
Do you have a file called twisted.py somewhere? What's import twisted; print twisted.__file__ do? cheers lvh
participants (4)
-
Glyph Lefkowitz
-
Laurens Van Houtven
-
唐东军
-
头太晕