#17278 closed defect (worksforme)
Python Binary link missing in /opt/local/Library/Frameworks/Python.framework
Reported by: | aubonbeurre@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | raimue (Rainer Müller) | |
Port: | python25 |
Description
I found out why mod_python25 gets to link with the system's python, instead of the python25 framework in macports: the Python framework made by macports is not compliant with a framework layout. If I add a link in /opt/local/Library/Frameworks/Python.framework to ./Versions/2.5/Python, then the linker picks up the right Python framework.
I'm using latest xcode 3.1 on 10.5.5, and could reproduce the problem on different machines.
Notice this is not enough to fix mod_python25, which has another unrelated problem during validation (AFAIK).
Sorry for giving so few details, and not being able to test on macports SVN.
Change History (12)
comment:1 Changed 16 years ago by blb@…
Port: | python25 added |
---|
comment:2 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to mww@… |
---|
Seems like a bug in mod_python25, since its configure script is passed --with-python=${prefix}/bin/python2.5
.
comment:3 Changed 16 years ago by Veence (Vincent)
I confirm this bug. I have modified the Portfile to build mod_python25 against python26 and not python25 (which I have not installed since it cannot be built universal) and I have this error:
[Sun Dec 07 20:40:48 2008] [error] python_init: Python version mismatch, expecte d '2.6', found '2.5.1'. [Sun Dec 07 20:40:48 2008] [error] python_init: Python executable found '/usr/bi n/python'. [Sun Dec 07 20:40:48 2008] [error] python_init: Python path being used '/System/ Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip:/System/Librar y/Frameworks/Python.framework/Versions/2.5/lib/python2.5/:/System/Library/Framew orks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin:/System/Library/Fra meworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac:/System/Library/Fra meworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages: /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/../../Ext ras/lib/python:/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pyth on2.5/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python 2.5/lib-dynload'.
I'm trying to figure out what is going on
comment:4 follow-up: 6 Changed 16 years ago by Veence (Vincent)
PS : I also confirm the fix via a manual ln -s
comment:5 Changed 16 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|
Probably duplicate of #17205.
As a workaround, try
sudo python_select none sudo python_select python25
comment:6 Changed 16 years ago by hvrmeer@…
If I have understood correctly, that should be:
% sudo ln -s ./Versions/2.5/Python Python
And it did not work for me. My mod_python still chooses /usr/bin/python. Oddly enough, I don't see anything in the error log.
Can someone please tell how I can fix this? I really do want to get on with things.
comment:7 Changed 16 years ago by raimue (Rainer Müller)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Please use the latest python_select.
comment:8 follow-up: 9 Changed 16 years ago by macosforge.org@…
I am still seeing problems here when compiling python extensions:
$ sudo python_select python25 Selecting version "python25" for python $ sudo port uninstall subversion-python25bindings; sudo port clean subversion-python25bindings; sudo port install subversion-python25bindings ---> Deactivating subversion-python25bindings @1.6.0_1 ---> Uninstalling subversion-python25bindings @1.6.0_1 ---> Cleaning subversion-python25bindings ---> Fetching subversion-python25bindings ---> Verifying checksum(s) for subversion-python25bindings ---> Extracting subversion-python25bindings ---> Configuring subversion-python25bindings ---> Building subversion-python25bindings ---> Staging subversion-python25bindings into destroot ---> Installing subversion-python25bindings @1.6.0_1 ---> Activating subversion-python25bindings @1.6.0_1 ---> Cleaning subversion-python25bindings $ otool -L /opt/local/lib/svn-python2.5/libsvn/_core.so | grep Python /Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.0)
So in spite of python_select having set python25 as the version, I still see an extension being bound to python25-apple.
comment:9 Changed 16 years ago by macosforge.org@…
Replying to macosforge.org@…:
I am still seeing problems here when compiling python extensions:
...
So in spite of python_select having set python25 as the version, I still see an extension being bound to python25-apple.
I'll file a separate bug, as the symlink (as reported by this bug) is present.
comment:10 follow-up: 11 Changed 16 years ago by steenzout (Pedro Salgado)
I did
sudo python_select python25
and only after I did
sudo port install mod_python25
and it worked for me.
comment:11 Changed 16 years ago by steenzout (Pedro Salgado)
Replying to pedro.salgado@…:
I did
sudo python_select python25
and only after I did
sudo port install mod_python25
and it worked for me.
I spoke too fast.
Have you installed the python_select port and used it to select 2.5:
sudo python_select python25
? That will set python25 to be the current default for MacPorts.