KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm pretty new to python and twisted and I tried to run a simple twisted script but failed. My environment: MacOX 10.7.2 + Python 2.7.1 + Twisted 11.0.0 + eclipse + PyDev The script called test.py: from twisted import reactor reactor.run() I tried to run it in the terminal and everything works fine. Then I opened eclipse and created a new PyDev project then adding a py file called test.py and typed the code above in. When I tried to run it I got errors like: Traceback (most recent call last): File "/Users/user/Documents/workspace/TwistedDemo/test.py", line 2, in <module> from twisted import reactor ImportError: No module named twisted Then I checked the PYTHONPATH and added the "twisted source folder" in the external libraries tab but the errors was still there.(nothing changed) Hope someone can help me out here, thanks in advance :)
Tags (comma-separated)
Save Edits
Cancel