[MacPorts] #51547: xorg-xcb-proto fails to install, bad python version check
#51547: xorg-xcb-proto fails to install, bad python version check ------------------------------------+-------------------------------- Reporter: artist.impressionist@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: xorg-xcb-proto ------------------------------------+-------------------------------- as part of installing opencv it bombs on installing xorg-xcb-proto :info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb- proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1 i check the python version /opt/local/bin/python2.7 --version Python 2.7.11 -- Ticket URL: <https://trac.macports.org/ticket/51547> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Changes (by mf2k@…): * owner: macports-tickets@… => jeremyhu@… Comment: In the future, please use WikiFormatting and Cc the port maintainers ({{{port info --maintainers xorg-xcb-proto}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Description changed by mf2k@…: Old description:
as part of installing opencv it bombs on installing xorg-xcb-proto
:info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb- proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1
i check the python version
/opt/local/bin/python2.7 --version Python 2.7.11
New description: as part of installing opencv it bombs on installing xorg-xcb-proto {{{ :info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb- proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1 }}} i check the python version /opt/local/bin/python2.7 --version Python 2.7.11 -- -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by jeremyhu@…): Please provide your config.log as indicated by the terminal output when you encounter the error. -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Description changed by ryandesign@…: Old description:
as part of installing opencv it bombs on installing xorg-xcb-proto {{{ :info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb- proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1 }}} i check the python version
/opt/local/bin/python2.7 --version Python 2.7.11
New description: as part of installing opencv it bombs on installing xorg-xcb-proto {{{ :info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb- proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1 }}} i check the python version {{{ /opt/local/bin/python2.7 --version Python 2.7.11 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => invalid Comment: /Volumes/OSX_10.11.3/opt/local/bin/python2.7: Permission denied -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by jeremyhu@…): It looks like you configured MacPorts with a prefix of /Volumes/OSX_10.11.3/opt/local, but you don't have permissions for that. -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by artist.impressionist@…): ok, now i need to fix this, imagemagick has a dependency on xorg-xcb- proto and will not build. has anyone run into issues with homebrew pythonpath causing conflicts? -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by artist.impressionist@…): I finally got this xorg-xcb-proto and xorg-libxcb to build. the errors are cause because the port tries to build in the /opt/local/blah/blah but for some reason sudo is not being passed down to the spawned or forked processes. i went to the source directories and manually sudo make for all of the xcb libs and they have are built. so this had nothing to do with the mount location of using /opt/local/blah or /Volumes/MacOSX_11/opt/local/blah -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by jeremyhu@…): This has nothing to do with Homebrew. As stated in the log, you have restricted permissions: {{{ 74 configure:2423: /opt/local/bin/python2.7 -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex) 75 ./configure: line 2424: /opt/local/bin/python2.7: Permission denied }}} Look at the permissions of all those relevant files to see why you're getting EPERM. Eg: {{{ $ ls -ld /opt /opt/local /opt/local/bin /opt/local/bin/python2.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 drwxr-xr-x 5 root wheel 170 Jan 24 00:58 /opt drwxr-xr-x 13 root admin 442 Apr 11 02:56 /opt/local -rwxr-xr-x 1 root wheel 33728 Apr 11 02:42 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 drwxr-xr-x 2695 root admin 91630 Jun 3 02:09 /opt/local/bin lrwxr-xr-x 1 root admin 73 Apr 11 02:42 /opt/local/bin/python2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 }}} By "sudo is not being passed down to the spawned or forked processes" do you mean that root permissions are not being used to build? Yes, that is correct and intentional. Projects are built as the macports role account user and then installed as root. -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#51547: xorg-xcb-proto fails to install, bad python version check -------------------------------------+------------------------ Reporter: artist.impressionist@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: xorg-xcb-proto | -------------------------------------+------------------------ Comment (by jeremyhu@…):
so much for this "closed defect: invalid", wrong answer try again
AFAICT, all evidence points to user error of modifying permissions in an unsupported way. If you have evidence to the contrary, please reopen. -- Ticket URL: <https://trac.macports.org/ticket/51547#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts