[MacPorts] #17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework -----------------------------------+---------------------------------------- Reporter: aubonbeurre@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: -----------------------------------+---------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/17278> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Changes (by blb@macports.org): * port: => python25 Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@gmail.com | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => mww@macports.org Comment: Seems like a bug in mod_python25, since its configure script is passed `--with-python=${prefix}/bin/python2.5`. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework -----------------------------------+---------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: python25 -----------------------------------+---------------------------------------- Comment(by 10.50@…): 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 -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework -----------------------------------+---------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: python25 -----------------------------------+---------------------------------------- Comment(by 10.50@…): PS : I also confirm the fix via a manual {{{ln -s }}} -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework -----------------------------------+---------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: python25 -----------------------------------+---------------------------------------- Changes (by raimue@…): * cc: raimue@… (added) Comment: Probably duplicate of #17205. As a workaround, try {{{ sudo python_select none sudo python_select python25 }}} -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework -----------------------------------+---------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: python25 -----------------------------------+---------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Changes (by raimue@…): * status: new => closed * resolution: => worksforme Comment: Please use the latest python_select. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Comment(by macosforge.org@…): Replying to [comment:8 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. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Comment(by pedro.salgado@…): I did sudo python_select python25 and only after I did sudo port install mod_python25 and it worked for me. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17278: Python Binary link missing in /opt/local/Library/Frameworks/Python.framework ------------------------------------+--------------------------------------- Reporter: aubonbeurre@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: python25 | ------------------------------------+--------------------------------------- Comment(by pedro.salgado@…): Replying to [comment:10 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. -- Ticket URL: <http://trac.macports.org/ticket/17278#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts