[Twisted-web] twisted on mac. twisted.web problems.

aaron smith beingthexemplarylists at gmail.com
Sat Nov 10 19:10:16 EST 2007


I've tried this on Mac Tiger and mac Leopard. To no avail. On Tiger it
had the same issues, versions / to many python locations..


My default machine is leopard.

My python executable is here: /usr/bin/python

It seems like there are too many installations or something. would it
be problematic to remove mac's default python and just re-install it
all myself? It seems there are issues with all these python files all
over the place.

so far there are:
/usr/bin/python
/usr/lib/python2.5
/Library/Python/2.5
/Library/Python/2.3
/System/Library/Frameworks/Python.framework


Thanks





On Nov 8, 2007 9:20 PM, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
>
>
> 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
>
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
>



More information about the Twisted-web mailing list