Opened 16 years ago
Closed 14 years ago
#19267 closed defect (fixed)
rubber: fails to install because of "SyntaxError: invalid syntax"
Reported by: | Damien@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | syntax, install | Cc: | milosh@… |
Port: | rubber |
Description
rubber fails to install :
$ port info rubber rubber @1.1, Revision 4 (tex, print) Variants: universal $ port -d install rubber ... ---> Configuring rubber DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (rubber) DEBUG: Environment: CFLAGS='-pipe -O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-pipe -O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2' FFLAGS='-pipe -O2' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/rubber-1.1" && ./configure --prefix=/opt/local --python=/opt/local/bin/python --mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/man --infodir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/info' I will use /opt/local/bin/python as the interpreter. File "setup.py", line 27 print "The configure script is running, good." ^ SyntaxError: invalid syntax 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_tex_rubber/work/rubber-1.1" && ./configure --prefix=/opt/local --python=/opt/local/bin/python --mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/man --infodir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rubber/work/destroot/opt/local/share/info " returned error 1 Command output: I will use /opt/local/bin/python as the interpreter. File "setup.py", line 27 print "The configure script is running, good." ^ SyntaxError: invalid syntax Warning: the following items did not execute (for rubber): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.archive org.macports.install Error: Status 1 encountered during processing.
Change History (8)
comment:1 follow-up: 2 Changed 16 years ago by skymoo (Adam Mercer)
Cc: | milosh@… added |
---|
comment:2 Changed 16 years ago by Damien@…
Replying to ram@…:
Is
/opt/local/bin/python
pointing to python3.0 by any chance?
Yes.
$ ls -lah /opt/local/bin/python lrwxr-x--- 1 root admin 24 jan 6 17:12 /opt/local/bin/python -> /opt/local/bin/python3.0
comment:3 Changed 16 years ago by skymoo (Adam Mercer)
Thats the problem, it looks like rubber
is compatible with python30
yet.
comment:4 follow-up: 5 Changed 16 years ago by raimue (Rainer Müller)
rubber should be bound to a specific python version. The dependency on python_select is simply wrong, as python_select does not provide any python. It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6.
comment:5 follow-up: 7 Changed 16 years ago by milosh@…
Replying to raimue@…:
rubber should be bound to a specific python version. The dependency on python_select is simply wrong, as python_select does not provide any python.
python_select provides a unified path to a python version that should be working. The fact that a highly uncompatible version of python can be selected as the default python seems wrong to me.
It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6.
rubber does not need python to be provided by macports. It works well (I tested it) with the python provided by macosx 10.3, 10.4 and 10.5, but also with macports' python23, python24, python25 and python26. If you want to patch it that way, please provide variants for those 7 configurations.
comment:7 Changed 15 years ago by raimue (Rainer Müller)
Replying to milosh@…:
python_select provides a unified path to a python version that should be working. The fact that a highly uncompatible version of python can be selected as the default python seems wrong to me.
The assumption is wrong. python_select is for the user invoking python only, not for MacPorts itself. This port still does not use a specific python version, but it should.
Replying to raimue@…:
It should for example depend on python26 and be patched to use ${prefix}/bin/python2.6.
rubber does not need python to be provided by macports. It works well (I tested it) with the python provided by macosx 10.3, 10.4 and 10.5, but also with macports' python23, python24, python25 and python26. If you want to patch it that way, please provide variants for those 7 configurations.
Per policy, we prefer our own libraries over the system. Supporting just python26 should be enough.
comment:8 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
This was fixed by r69423.
Is
/opt/local/bin/python
pointing to python3.0 by any chance?