Ticket #18617 (closed defect: fixed)
xorg-libxcb fails with python3
| Reported by: | miranda@… | Owned by: | jeremyhu@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: | xorg-libxcb |
Description
When I try to install xorg-libs, I get the following errors:
---> Configuring xorg-libxcb Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/libxcb-1.2" && ./configure --prefix=/opt/local " returned error 1 Command output: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for a Python interpreter with version >= 2.5... none configure: error: no suitable Python interpreter found Error: The following dependencies failed to build: xorg-libxcb xorg-libxkbfile xorg-libxkbui xorg-xcb-util Error: Status 1 encountered during processing.
I have Python 3.0.1 and it is in my $PATH.
Attachments
Change History
comment:1 Changed 4 years ago by macsforever2000@…
- Owner changed from macports-tickets@… to jeremyhu@…
- Port set to xorg-libs
comment:2 Changed 4 years ago by jeremyhu@…
- Port changed from xorg-libs to xorg-libxcb
- Summary changed from xorg-libs @20090105 build failure to xorg-libxcb fails with python3
Can you provide your config.log for me to look at
comment:3 Changed 4 years ago by jmr@…
I'm also seeing this on Tiger with only python26 installed. Despite what it says, it's actually trying a bunch of python versions <= 2.5 but none newer. It's entirely possible that the code won't work with Python 3 due to the language changes, BTW.
comment:4 Changed 4 years ago by blb@…
Try installing the python_select port and selecting the appropriate python you are wanting. It looks like configure only checks for certain python executables (from aclocal.m4):
[python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5]
so if you use python_select to set one up, it should see it as just 'python' afterwards.
comment:6 Changed 4 years ago by jeremyhu@…
[yeah, it looks like an old m4 macro was used to implement the check for: AM_PATH_PYTHON([2.5])
comment:7 Changed 4 years ago by miranda@…
Thanks. python_select did the trick. I didn't even know I had python 2.6 but that was one of my options. I wonder why it didn't recognize python 3.

