quick newb question. I installed twisted from source on mac os x leopard. When I run:
python import twisted from twisted.web import http
I get an ImportError: ImportError: No module named web I'm not sure what's up. Any ideas? Thanks all!
On Oct 28, 2007, at 6:14 PM, aaron smith wrote:
quick newb question. I installed twisted from source on mac os x leopard. When I run:
python import twisted from twisted.web import http
I get an ImportError: ImportError: No module named web
Unfortunately there is an incomplete distribution of twisted 2.4 in / System/Library/Frameworks Your source install likely went into /Library/Python/2.5/site- packages/ which is also unfortunately after /System/Library/ Frameworks in the PYTHONPATH. Put /Library/Python/2.5/site-packages/ at the front of your PYTHONPATH. -David
hmm. that doesn't seem to be working right for me. I"m doing this:
export PYTHONPATH=/Library/Python/2.5/site-packages/
when I run a script that has twisted.web in it. I still get the same error:
ImportError: No module named web
here is my path:
['/Library/Python/2.5/site-packages/zope.interface-3.3.0-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC']
The strange thing - when I change sys.path =
[''/Library/Python/2.5/site-packages']. It no longer complains about
missing twisted.web. But then it complaigns about missing
zope.interface.
Any other ideas?
On Oct 28, 2007 11:49 PM, David Reid
On Oct 28, 2007, at 6:14 PM, aaron smith wrote:
quick newb question. I installed twisted from source on mac os x leopard. When I run:
python import twisted from twisted.web import http
I get an ImportError: ImportError: No module named web
Unfortunately there is an incomplete distribution of twisted 2.4 in / System/Library/Frameworks
Your source install likely went into /Library/Python/2.5/site- packages/ which is also unfortunately after /System/Library/ Frameworks in the PYTHONPATH.
Put /Library/Python/2.5/site-packages/ at the front of your PYTHONPATH.
-David
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
participants (2)
-
aaron smith
-
David Reid