[MacPorts] #15865: py25-numpy build error
#15865: py25-numpy build error -----------------------------------+---------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | -----------------------------------+---------------------------------------- I get the following error when trying to install py25-numpy: {{{ ~ > sudo port install py25-numpy ---> Fetching py25-numpy ---> Attempting to fetch numpy-1.1.0.tar.gz from http://downloads.sourceforge.net/numpy ---> Verifying checksum(s) for py25-numpy ---> Extracting py25-numpy ---> Applying patches to py25-numpy ---> Configuring py25-numpy ---> Building py25-numpy with target build ---> Staging py25-numpy into destroot Error: Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/destroot/opt/local/bin/f2py": no such file or directory Error: Status 1 encountered during processing. }}} Sorry, I don't have more detailed output. I tried commenting out the post-destroot commands, which seemed to do the trick. In the current portfile: {{{ post-destroot { move ${destroot}${prefix}/bin/f2py ${destroot}${prefix}/bin/f2py2.5 } }}} -- Ticket URL: <http://trac.macports.org/ticket/15865> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => ram@macports.org * milestone: => Port Bugs Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by paulbeard@gmail.com): Aha, I have been seeing the same bug. I'll use the suggested solution for now. {{{ The MacPorts installation is not outdated so it was not updated ---> Fetching metacity ---> Verifying checksum(s) for metacity ---> Extracting metacity ---> Configuring metacity ---> Building metacity with target all ---> Staging metacity into destroot ---> Unable to uninstall metacity 2.21.2_0, the following ports depend on it: ---> gnome-python-desktop Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating metacity @2.21.2_0 ---> Uninstalling metacity @2.21.2_0 ---> Installing metacity @2.21.2_0 ---> Activating metacity @2.21.2_0 ---> Cleaning metacity ---> Staging py25-numpy into destroot Error: Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_trunk_dports_python_py25-numpy/work/destroot/opt/local/bin/f2py" to "/opt/local/var/macports/build/_opt_local_trunk_dports_python_py25-numpy/work/destroot/opt/local/bin/f2py2.5": file already exists Error: Unable to upgrade port: 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): Works for me: {{{ [ram@cizin ~]$ sudo port install py25-numpy ---> Fetching py25-numpy ---> Verifying checksum(s) for py25-numpy ---> Extracting py25-numpy ---> Applying patches to py25-numpy ---> Configuring py25-numpy ---> Building py25-numpy with target build ---> Staging py25-numpy into destroot ---> Installing py25-numpy @1.1.0_1 ---> Activating py25-numpy @1.1.0_1 ---> Cleaning py25-numpy [ram@cizin ~]$ }}} What platform? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): Replying to [comment:2 paulbeard@gmail.com]:
Aha, I have been seeing the same bug. I'll use the suggested solution for now.
Doesn't look like a "solution" to me (unless I'm missing something), as the install still fails and what does metacity have to do with this numpy issue? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by nelson.uhan@gmail.com): Sorry for omitting that information earlier... Mac OS X 10.5.4, MacPorts 1.6.0. Tried compiling numpy on a clean install of MacPorts (i.e. delete /opt/local, install MacPorts fresh from dmg), and had no problems this time around. -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: ------------------------------------+--------------------------------------- Changes (by ram@macports.org): * status: new => closed * resolution: => worksforme -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Changes (by nigel@nigelking.me.uk): * status: closed => reopened * resolution: worksforme => Comment: I have an identical problem to the one described in the ticket. ...../opt/local/bin/f2py": no such file or directory OSX 10.5.4 MacPorts 1.6.0 Xcode 3.0 1 week old MacPorts gnucash being installed after a number of other installations including wx -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): I cannot reproduce this problem and the OP has said that it now works for him. Please attach the full build log, i.e. the output of {{{ $ sudo port -d install py25-numpy }}} -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by redbeard+macport@gmail.com): Encountering the same problem -- Mac OS X 10.5.4 (Build 9E17) with MacPorts 1.600, Xcode 3.1 Beta, see attachment above for full log. I will now attempt removing /opt/local and reinstalling MacPorts fresh as suggested above. -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Changes (by blb@macports.org): * cc: blb@macports.org (added) Comment: To those for whom this is failing, how is fftw-3 installed on your machine (use {{{port installed fftw-3}}})? The default install of that appears to not require any sort of fortran compiler, so perhaps without one installed, f2py isn't built? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by blb@macports.org): Replying to [comment:10 blb@macports.org]:
To those for whom this is failing, how is fftw-3 installed on your machine (use {{{port installed fftw-3}}})? The default install of that appears to not require any sort of fortran compiler, so perhaps without one installed, f2py isn't built?
Ignore that, that isn't the issue. The issue is in {{{numpy/f2py/setup.py}}}, in {{{generate_f2py_py}}} it generates the name for f2py with: {{{ f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] }}} so if python2.5 is being used, 2.5 is appended to it; if just python, no version is appended. Sounds like the post-destroot should check to see if it's already installed as f2py2.5 and if so, do nothing, otherwise rename it. The big question is why some don't append 2.5? My older version which is currently installed (1.0.4) installed fine, but trying to build 1.1.0 hit this same issue; could be related to the fact that I have an older python25 (2.5.2_2) installed? Or perhaps using python_select, which I don't have installed? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): Thanks for tracking this down, I'll get a patch together -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): I don't understand how this can be causing the problem, as the ```python``` binary used in defined in the ```python25``` port group is ```${prefix}/bin/python2.5```, so the build should never be using just ```python```. I can't reproduce this problem with ```python25-2.5.2_5``` and ```py25-numpy-1.1.0_1```, with or without ```python_select``` installed. Looking through the ChangeLog for the ```python25``` port ```2.5.2_3``` was when the port was modified to be a Framework build, I think that this problem is due to you using an old ```python25``` port. Can you ensure you're ```python25``` is up to date and try again? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): There still seems to be a problem somewhere as python interpreter set for ```f2py``` is ```#!/usr/bin/env Python``` which is clearly wrong. -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by blb@macports.org): Replying to [comment:14 ram@macports.org]:
Can you ensure you're ```python25``` is up to date and try again?
FYI in my case, a newer python25 (with patches from tickets #9831 and #16111) worked fine, no issues with f2py at all. -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ------------------------------------+--------------------------------------- Changes (by ram@macports.org): * status: reopened => closed * resolution: => invalid Comment: caused by old python25 port -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ------------------------------------+--------------------------------------- Comment (by macports@henrik.synth.no): Is the python25 port updated with the patches from #9831 and #16111 yet? -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15865: py25-numpy build error ------------------------------------+--------------------------------------- Reporter: nelson.uhan@gmail.com | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ------------------------------------+--------------------------------------- Comment (by ram@macports.org): Not not, but py25-numpy builds without issue using the latest (2.5.2_5) python25 -- Ticket URL: <http://trac.macports.org/ticket/15865#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts