Installing py25-matplotlib fails
I'm unable to install the py25-matplotlib port on my Leopard box. It chunks along for awhile installing various things then barfs on py25-hashlib: ---> Fetching py25-hashlib ---> Verifying checksum(s) for py25-hashlib ---> Extracting py25-hashlib ---> Configuring py25-hashlib ---> Building py25-hashlib with target build Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_ext building '_hashlib' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1 Error: The following dependencies failed to build: py25-numpy py25-hashlib py25-tkinter tcl tk Error: Status 1 encountered during processing. It seems like the system is forgetting to put "gcc" at the front of the command line when building Python extensions. This same problem was reported here not that long ago (maybe a month). I sort of thought it would be sorted out by now but I don't recall seeing anything about a fix. I'm running a "sudo port upgrade outdated" now just in case I missed something, but I'm skeptical much will change. Any thoughs on this problem? -- Skip Montanaro - skip@pobox.com - http://www.webfast.com/~skip/
On Wed, Mar 5, 2008 at 11:35 PM, <skip@pobox.com> wrote:
I'm unable to install the py25-matplotlib port on my Leopard box. It chunks along for awhile installing various things then barfs on py25-hashlib:
---> Fetching py25-hashlib ---> Verifying checksum(s) for py25-hashlib ---> Extracting py25-hashlib ---> Configuring py25-hashlib ---> Building py25-hashlib with target build Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_ext building '_hashlib' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1
Error: The following dependencies failed to build: py25-numpy py25-hashlib py25-tkinter tcl tk Error: Status 1 encountered during processing.
I've seen this before, although no idea what causes it. Chances are if you try installing again, it'll work. Cheers Adam
Adam> I've seen this before, although no idea what causes it. Chances Adam> are if you try installing again, it'll work. I'm skeptical. I reinstalled from scratch a couple of weeks ago because of build problems. I'm only now getting back to the point where I have a useful set of ports installed. If I decide to reinstall, is there some way I can record what ports I currently have installed then, after the basic install, reinstall those ports with one command? Failing that, is there some way I can debug this problem? On my G4/10.4 system I installed py25-matplotlib with no problem. I'm suspicious that there's some Leopard/MacPorts thing going on here. -- Skip Montanaro - skip@pobox.com - http://www.webfast.com/~skip/
On Thu, Mar 6, 2008 at 7:11 AM, <skip@pobox.com> wrote:
Adam> I've seen this before, although no idea what causes it. Chances Adam> are if you try installing again, it'll work.
I'm skeptical. I reinstalled from scratch a couple of weeks ago because of build problems. I'm only now getting back to the point where I have a useful set of ports installed.
When I say install it again, I don't mean the whole of MacPorts, just the py25-hashlib port.
If I decide to reinstall, is there some way I can record what ports I currently have installed then, after the basic install, reinstall those ports with one command?
Failing that, is there some way I can debug this problem? On my G4/10.4 system I installed py25-matplotlib with no problem. I'm suspicious that there's some Leopard/MacPorts thing going on here.
Cheers Adam
Bizzarely it does work if you make a second attempt to install any of the various py25 libs that all fail with this same error. However, you may be disappointed like me to to then get a segmentation fault for matplotlib when calling pylab.show() Python from macports on leopard just seems to be nothing but trouble. I ended up installing matplotlib manually from their site against the system installation of python and everything works painlessly. Cheers, Suresh On Wed, 5 Mar 2008, Adam Mercer wrote:
On Wed, Mar 5, 2008 at 11:35 PM, <skip@pobox.com> wrote:
I'm unable to install the py25-matplotlib port on my Leopard box. It chunks along for awhile installing various things then barfs on py25-hashlib:
---> Fetching py25-hashlib ---> Verifying checksum(s) for py25-hashlib ---> Extracting py25-hashlib ---> Configuring py25-hashlib ---> Building py25-hashlib with target build Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_ext building '_hashlib' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1
Error: The following dependencies failed to build: py25-numpy py25-hashlib py25-tkinter tcl tk Error: Status 1 encountered during processing.
I've seen this before, although no idea what causes it. Chances are if you try installing again, it'll work.
Cheers
Adam _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
----- Suresh Pillai | Entrepreneurial Risks <- D-MTEC <- ETH Zürich | http://www.er.ethz.ch/
Adam> When I say install it again, I don't mean the whole of MacPorts, Adam> just the py25-hashlib port. Thanks. That does indeed work. Kind of makes it hard to debug if the problem disappears on the second try... Skip
On Thu, Mar 6, 2008 at 8:45 AM, Suresh Pillai <stochashtic@yahoo.ca> wrote:
However, you may be disappointed like me to to then get a segmentation fault for matplotlib when calling pylab.show()
Other people have reported this, unfortunately I can't reproduce them at all. matplotlib works fine for me on Intel Leopard.
Python from macports on leopard just seems to be nothing but trouble. I ended up installing matplotlib manually from their site against the system installation of python and everything works painlessly.
I know, I'm trying to track down a socket issue at the moment that doesn't exist with the system python. Cheers Adam
<skip <at> pobox.com> writes:
Adam> When I say install it again, I don't mean the whole of MacPorts, Adam> just the py25-hashlib port.
Thanks. That does indeed work. Kind of makes it hard to debug if the problem disappears on the second try...
Skip
Skip, Unfortunately, this problem is common to many py25- ports. See my report here: http://lists.macosforge.org/pipermail/macports-users/2008-February/009238.ht... Or a trac entry for py25-zlib here: http://trac.macports.org/projects/macports/ticket/13406 Glad you got it working. -Brian
participants (4)
-
Adam Mercer
-
Brian
-
skip@pobox.com
-
Suresh Pillai