[Twisted-web] twisted on mac. twisted.web problems.
Ronald Oussoren
ronaldoussoren at mac.com
Fri Nov 9 00:20:06 EST 2007
On 9 Nov, 2007, at 0:58, aaron smith wrote:
>> Run this:
>>>>> import sys
>>>>> print sys.path
> ------
> ['', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python23.zip',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/plat-darwin',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/plat-mac',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/plat-mac/lib-scriptpackages',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-tk',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/site-packages',
> '/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/
> python']
>
>
>> cd Library/Python/2.3/site-packages/
>> $ python
>>>>> import twisted
> -------------
>>>> import twisted.web
>>>>
>
>
> I've tried what you suggested previously with the PYTHONPATH as well.
> It still works partially, but then fails on zope.interface. (which I
> did install). It just seems like there are some crazy complications
> that I can't figure out. dah!
>
> thanks for help man.
On with system was this, 10.4 or 10.5? On Leopard the default python
install is Python 2.5.1, which doesn't match the list above.
The TwistedCore is part of the default install in Leopard, TwistedWeb
is not. Do you perhaps have multiple Python installations? This could
cause the problems you're seeing, maybe the the python on your shells
PATH is not the one you're expected.
Check the output of "which python" to make sure (or print
sys.executable on the python prompt).
Ronald
>
>
>
>
>
>
>
>
>
> On Nov 8, 2007 12:00 PM, Dmitry Kozhevin <dmitrikozhevin at gmail.com>
> wrote:
>>> ImportError: No module named web
>>
>> Run this:
>>>>> import sys
>>>>> print sys.path
>>
>> And email me what you get.
>>
>> And one more,
>> cd Library/Python/2.3/site-packages/
>> $ python
>>>>> import twisted
>>
>> _______________________________________________
>> Twisted-web mailing list
>> Twisted-web at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>>
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20071109/aeaaf748/smime-0001.bin
More information about the Twisted-web
mailing list