[MacPorts] #29239: qgis failing to install due to python related error
#29239: qgis failing to install due to python related error -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: -------------------------------+-------------------------------------------- qgis fails to install as follows, with python 2.6.1 already installed via macports: $ sudo port install qgis ---> Computing dependencies for qgis ---> Extracting qgis Error: Qgis requires python. Error: Target org.macports.extract returned: Please select a python variant. Log for qgis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_qgis/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> $python --version Python 2.6.1 -- Ticket URL: <https://trac.macports.org/ticket/29239> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis failing to install due to python related error -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * cc: athundt@… (removed) * port: => qgis Old description:
qgis fails to install as follows, with python 2.6.1 already installed via macports:
$ sudo port install qgis ---> Computing dependencies for qgis ---> Extracting qgis Error: Qgis requires python. Error: Target org.macports.extract returned: Please select a python variant. Log for qgis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_qgis/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
$python --version Python 2.6.1
New description: qgis fails to install as follows, with python 2.6.1 already installed via macports: {{{ $ sudo port install qgis ---> Computing dependencies for qgis ---> Extracting qgis Error: Qgis requires python. Error: Target org.macports.extract returned: Please select a python variant. Log for qgis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_qgis/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} {{{ $python --version Python 2.6.1 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis failing to install due to python related error -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => vince@… -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis failing to install due to python related error -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by macsforever2000@…): Macports python26 is at version 2.6.6. You should try running the following: {{{ sudo port install python_select sudo python_select python26 }}} I cannot reproduce your error. What is in your /opt/local/etc/macports/variants.conf file? -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis failing to install due to python related error -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by athundt@…): Here is the output of the two items you requested. I apologize for not mentioning that I had already tried python_select. Also, variants.conf appears blank. ~:sudo python_select python26 Selecting version "python26" for python ~:sudo port install qgis ---> Computing dependencies for qgis ---> Extracting qgis Error: Qgis requires python. Error: Target org.macports.extract returned: Please select a python variant. Log for qgis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_qgis/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> ~: ~:cat /opt/local/etc/macports/variants.conf # To specify global variants to use for all port builds, # customize this file to list variant settings you want. # # Any variants specified here that are not supported by # a port will just be ignored. Multiple variants can be # specified per line, or one per line is also allowed. # # Example: # +ipv6 +no_x11 -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by jmr@…): It wants you to specify which version of python to use by selecting one of its variants. See `port variants qgis`. I guess you want it to choose for you if you don't specify? -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by jmr@…): BTW, the python30 variant doesn't work and should be removed. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by athundt@…): Yes, i believe qgis should automatically default to the variant using the result of python --version. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by vince@…): I will try to implement the necessary modifications. I am off for Easter vacations with no Mac at hand, but I'll try to cope nevertheless. I'll keep you posted. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by macsforever2000@…): I see why it worked for me. I have +python26 in my variants.conf file and doing a "{{{port info qgis}}}" shows (+)python26 as a default, but that comes from my variants.conf. I thought it was a default for the port. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by vince@…): Sorry for being late on this. I have to rebuild quite a lot of dependencies (e.g. Qt4) and it takes quite a lot of time since I don't have a last-generation machine. I'm working on it though. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants -------------------------------+-------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: qgis -------------------------------+-------------------------------------------- Comment(by athundt@…): Don't worry, no need rush for me personally. I've managed to get qgis working by specifying the python version by hand. The automation is just a convenience for both myself and other users. Thanks for the help! -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29239: qgis cannot be installed without specifying variants --------------------------------+------------------------------------------- Reporter: athundt@… | Owner: vince@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: qgis | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:7 athundt@…]:
Yes, i believe qgis should automatically default to the variant using the result of python --version.
No, ports should not do this. But I agree qgis should have some default version of python. And this was done in r87346. -- Ticket URL: <https://trac.macports.org/ticket/29239#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts