[MacPorts] #20285: python_select does not function on 10.6
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- python_select doesn't list the versions of python available from the system and fails to set links when assigning the version. {{{ # python_select -s none # python_select -l Available versions: current none python25 # sudo python_select python25 Selecting version "python25" for python ln: /opt/local/Library/Frameworks/Python.framework/Versions/Current: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Headers: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Resources: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Python: No such file or directory there were 4 errors selecting version "python25"! -- Ticket URL: <http://trac.macports.org/ticket/20285> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Comment(by snc@…): It seems these are because `/opt/local/Library` does not exist. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Comment(by raimue@…): Replying to [comment:1 snc@…]:
It seems these are because `/opt/local/Library` does not exist.
What is your frameworks_dir in macports.conf? For the system provided python it would require an additional `platform darwin 10` block in the Portfile. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Comment(by snc@…): Replying to [comment:2 raimue@…]:
What is your frameworks_dir in macports.conf? `frameworks_dir /opt/local/Library/Frameworks`
Is this all that is needed for the new code block? {{{ platform darwin 10 { post-destroot { xinstall -m 644 -W ${filespath} python26-apple ${destroot}${prefix}/etc/select/python } post-activate { if {[exec ${prefix}/bin/${name} -s] == "none"} { system "${prefix}/bin/${name} python26-apple" } } } }}} -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Changes (by raimue@…): * status: new => assigned Comment: Replying to [comment:3 snc@…]:
Replying to [comment:2 raimue@…]:
What is your frameworks_dir in macports.conf? `frameworks_dir /opt/local/Library/Frameworks`
Then python25 should be installed in this path. Please check by `port contents python25` if that is the case. Otherwise I cannot understand why files are missing.
Is this all that is needed for the new code block? [...]
Looks good, given that the python26-apple file contains the right paths. As I don't have access to SL myself and cannot verify, please feel free to commit this additional platform yourself. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Comment(by snc@…): `python25` only has files in: * `/opt/local/bin` * `/opt/local/etc` * `/opt/local/include` * `/opt/local/lib` In fact, there is no `/opt/local/Library`. The path for the python26-apple files follow those of python25-apple: {{{ /usr/bin/python2.6 /usr/bin/pythonw2.6 /usr/bin/python2.6-config - /usr/bin/pydoc2.6 /usr/bin/smtpd2.6.py - /usr/share/man/man1/python2.6.1.gz - - - - }}} -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python_select ------------------------------+--------------------------------------------- Comment(by snc@…): Committed the python26-apple and included it in python_select: r53964. I have not yet changed the revision. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Changes (by snc@…): * keywords: => snowleopard -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by nate@…): Any update on this from anyone? -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by dmitrykichenko@…): Ditto. I am running Leopard off an external drive at the moment but I'd really prefer to be under Snow Leopard full time. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by ram@…): The current version is working fine for me under SL {{{ [ram@cizin ~]$ port installed python_select The following ports are currently installed: python_select @0.2.1_0+darwin_10 (active) [ram@cizin ~]$ uname -a Darwin cizin.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386 i386 [ram@cizin ~]$ python_select -s python26-apple [ram@cizin ~]$ python_select -l Available versions: current none python25 python26-apple [ram@cizin ~]$ }}} -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by mmoll@…): python25 and python26 have different maintainers and a very different set of patches and Portfiles. Is it possible that python26 maintainers have figured out how to build the python Framework on Snow Leopard and the python25 maintainer hasn't? The python25 port disables the Framework build on darwin 10 (snow leopard). -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by blb@…): Note that 2.5 on 10.6 most likely won't see frameworks, unless someone wants to port the patches to 2.5; see [http://bugs.python.org/issue6802 the python bug]. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by snc@…): python_select seems to be working just fine for me with python25 and python26. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by mmoll@…): The contents of ${prefix}/etc/select/python/python25 is (partially) wrong, since there is no Framework. The header files are in /opt/local/include/python2.5 and the library is in /opt/local/lib/python2.5/config/libpython2.5.a ------------------------- bin/python2.5 bin/pythonw2.5 bin/python2.5-config bin/idle2.5 bin/pydoc2.5 bin/smtpd2.5.py - share/man/man1/python2.5.1.gz /opt/local/Library/Frameworks/Python.framework/Versions/2.5 /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Headers /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python ------------------------- -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by raimue@…): Replying to [comment:20 mmoll@…]:
The contents of ${prefix}/etc/select/python/python25 is (partially) wrong, since there is no Framework. The header files are in /opt/local/include/python2.5 and the library is in /opt/local/lib/python2.5/config/libpython2.5.a
Yes, I don't expect the python25 framework build to get fixed on Snow Leopard. I could add a select file which does not contain the framework paths, but what you are seeing are warnings only. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by dackze+macports@…): This is what I get after installing python26 @2.6.2_4+darwin and trying to python_select it: {{{ Selecting version "python26" for python ln: /opt/local//opt/local/Library/Frameworks/Python.framework/Versions/Current: No such file or directory ln: /opt/local//opt/local/Library/Frameworks/Python.framework/Headers: No such file or directory ln: /opt/local//opt/local/Library/Frameworks/Python.framework/Resources: No such file or directory ln: /opt/local//opt/local/Library/Frameworks/Python.framework/Python: No such file or directory there were 4 errors selecting version "python26"! }}} -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:23> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by macosforge@…): A "cd /opt/local && sudo ln -s /opt" got me to the point where I could use python_select against python26. It's a hack, but it'll get you up and going if you're in a bind. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:24> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 ------------------------------+--------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: python_select ------------------------------+--------------------------------------------- Comment(by null.atou@…): Replying to [comment:23 dackze+macports@…]:
ln: /opt/local//opt/local/Library/Frameworks/Python.framework/Versions/Current: No such file or directory
duplicate strings "/opt/local/" in a file '/opt/local/etc/select/python/base', LL9-12. so delete "/opt/local/" strings. Here is a hack. {{{ --- base.org 2009-09-12 02:33:43.000000000 +0900 +++ base 2009-09-12 02:34:33.000000000 +0900 @@ -6,7 +6,7 @@ bin/smtpd.py share/man/man1/python.1 share/man/man1/python.1.gz -/opt/local/Library/Frameworks/Python.framework/Versions/Current -/opt/local/Library/Frameworks/Python.framework/Headers -/opt/local/Library/Frameworks/Python.framework/Resources -/opt/local/Library/Frameworks/Python.framework/Python +Library/Frameworks/Python.framework/Versions/Current +Library/Frameworks/Python.framework/Headers +Library/Frameworks/Python.framework/Resources +Library/Frameworks/Python.framework/Python }}} -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:25> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 -------------------------------+-------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: snowleopard Port: python_select | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: assigned => closed * resolution: => fixed Comment: The problem in this ticket's description is fixed (python25 is a framework build on 10.6 now), as is selecting the system python on 10.6. There is a separate issue covered by #21320. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:27> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 -------------------------------+-------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: snowleopard Port: python_select | -------------------------------+-------------------------------------------- Comment(by cjerdonek@…): It looks like you guys fixed this, but I am getting this error for python24 after uninstalling/installing python_select today: sudo python_select python24 Selecting version "python24" for python ln: /opt/local/Library/Frameworks/Python.framework/Versions/Current: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Headers: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Resources: No such file or directory ln: /opt/local/Library/Frameworks/Python.framework/Python: No such file or directory there were 4 errors selecting version "python24"! Has the fix not made it into the version of python_select used in "port install", or does the fix not work with python24? Thanks. -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:28> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20285: python_select does not function on 10.6 -------------------------------+-------------------------------------------- Reporter: snc@… | Owner: raimue@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: snowleopard Port: python_select | -------------------------------+-------------------------------------------- Comment(by cjerdonek@…): Replying to [comment:28 cjerdonek@…]:
Has the fix not made it into the version of python_select used in "port install", or does the fix not work with python24? Thanks.
Never mind. It seems to be working for me now with python24 after installing and trying with python26. Thanks! -- Ticket URL: <http://trac.macports.org/ticket/20285#comment:30> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts