Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14081 closed defect (fixed)

py-gobject and dependents' configure builds using the wrong (/usr/bin/python) version 2.3

Reported by: aphor@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: python configure Cc:
Port:

Description

Python <--> Gnome library packages and their dependents install without error, but fail with import errors at runtime. Whole swaths of software will likely break on upgrade causing widespread panic.

The port for py24 installs itself as /opt/local/bin/python2.4 but configure scripts for py-* packages like py-gobject, py-gtk2, and probably others allow configure to build against the system /usr/bin/python, which is the wrong version of python according to ports' dependency graph. This also causes the python modules to be installed in /opt/local/lib/python2.3/site-packages, which made it easy to track this down.

Workaround: prepend /opt/local/bin to your path, and symlink /opt/local/bin/python2.4 to /opt/local/bin/python because these configure scripts choose their python version by the first executable 'python' on the PATH.

Change History (5)

comment:1 Changed 16 years ago by jmpp@…

Priority: HighNormal

comment:2 in reply to:  description Changed 16 years ago by afb@…

Back when py-gtk2 was in use (it's now deprecated for py25-gtk), the python24 port did provide a /opt/local/bin/python (but it was removed in r28120 to make room for python25). But nowadays it is required to either patch all the old python ports or run python_select.

Replying to aphor@mac.com:

Workaround: prepend /opt/local/bin to your path, and symlink /opt/local/bin/python2.4 to /opt/local/bin/python because these configure scripts choose their python version by the first executable 'python' on the PATH.

Or install the python_select port and run python_select python24, which does the same thing...

comment:3 Changed 16 years ago by afb@…

i.e. /usr/bin/python (Python 2.3 on Tiger, Python 2.5 on Leopard) is now the default python, by design.

comment:4 Changed 16 years ago by gui-dos (Guido Soranzio)

Resolution: fixed
Status: newclosed

r33474 syncs py-gobject, py-cairo and py-gtk2 with their py25-* counterparts, since the formers already made use of the python24 group: now MacPorts' own version of python2.4 is detected during the configure phase.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.