Sorry about the dupe, I accidently hit send before I was ready...

On 5/11/07, Chris Cioffi <[EMAIL PROTECTED]> wrote:
> On 5/11/07, Ronald Oussoren <[EMAIL PROTECTED]> wrote:
> >
> >
> > On 9 May, 2007, at 22:50, Nehemiah Dacres wrote:
> [snip]
> > >> import sys
> > >> print sys.path
> >
> > you shall get  a list of paths, these are the paths to all the directories
> > (folders) that  the python interpreter will look in for libraries.
>
>
>
> >
> > On 5/5/07, Chris Cioffi <[EMAIL PROTECTED]> wrote:
> > > Hello all,
> > >
> > > I'm trying to get started with Python 2.5 on my Mac and for various
> > > reasons would like to use th Python from MacPorts.
> > > [http://www.macports.org/]
> > >
> > > I've installed Python 2.5 and when I start it up I get the following:
> > >
> > > """
> > > Could not find platform dependent libraries <exec_prefix>
> > > Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> > > Python 2.5 (r25:51908, May  4 2007, 19:57:54)
> > > [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>>
> > > """
> > >
> >
> > What happens when you temporarily remove .pydistutils.cfg?  What is the
> > value of sys.executable (import sys;print sys.executable)?

[EMAIL PROTECTED]:Chris$ python2.5
Python 2.5.1 (r251:54863, May 11 2007, 21:53:05)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/opt/local/lib/python25.zip', '/opt/local/lib/python2.5',
'/opt/local/lib/python2.5/plat-darwin',
'/opt/local/lib/python2.5/plat-mac',
'/opt/local/lib/python2.5/plat-mac/lib-scriptpackages',
'/opt/local/lib/python2.5/lib-tk',
'/opt/local/lib/python2.5/lib-dynload',
'/opt/local/lib/python2.5/site-packages']
>>> print sys.executable
/opt/local/bin/python2.5


> > This looks like a broken installation. You may want to ask on the macports
> > list about this. Another alternative is trying to reinstall (port uninstall
> > python25; port install python25), as a bonus you'll get python 2.5.1 instead
> > of 2.5 ;-)

I did this and now I don't get the warning about PYTHONHOME, however,
the library seems to be missing...pointing to a broken install.  I'll
follow up to the MacPorts list.


> > As an aside: why do you want to use the MacPorts build of python instead of
> > the python.org one?  This is just curiousity on my part, AFAIK both the
> > python.org build and the MacPorts one should work just fine.
> >

The short answer:  because.

The longer answer:  I'm using MacPorts for a fair number other
packages and would like to use it for trac as well...which requires
the Python from MacPorts...since I need the MacPorts Python I figured
that I'd just use it as the "default" python since that would just be
so much simpler!  (Uh, yeah...)

The problem *may* stem from a prior install of MacPython from
python.org, I don't know.

Oh well...thanks!

Chris
-- 
"A little government and a little luck are necessary in life, but only
a fool trusts either of them." -- P. J. O'Rourke
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to