Opened 14 years ago

Closed 14 years ago

#28918 closed defect (invalid)

libzzip build fails because python is not found

Reported by: fherwig@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libzzip

Description

I have put a new installation of macport and get this error

[Users/fherwig] > install libzzip
--->  Computing dependencies for libzzip
--->  Building libzzip
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
[Users/fherwig] > 

this is my python:

vortex$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.0-2 (32-bit)

Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec  3 2010, 15:41:32) 
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin

This is the tail of the log:

:info:build Making all in docs
:info:build PYTHONDONTWRITEBYTECODE=1  echo no python found for  ../../docs/makedocs.py ../../zzip/*.c  \
:info:build                    "--package=zziplib" "--version=0.13.59" \
:info:build                    "--onlymainheader=zzip/lib.h" "--output=zziplib"
:info:build PYTHONDONTWRITEBYTECODE=1  echo no python found for  ../../docs/makedocs.py ../../zzip/*.c  \
:info:build                    "--package=zziplib" "--version=0.13.59" \
:info:build                    "--onlymainheader=zzip/mmapped.h" "--output=zzipmmapped"
:info:build no python found for ../../docs/makedocs.py ../../zzip/dir.c ../../zzip/err.c ../../zzip/fetch.c ../../zzip/file.c ../../zzip/fseeko.c ../../zzip/info.c ../../zzip/memdisk.c ../../zzip/mmapped.c ../../zzi
p/plugin.c ../../zzip/stat.c ../../zzip/write.c ../../zzip/zip.c --package=zziplib --version=0.13.59 --onlymainheader=zzip/lib.h --output=zziplib
:info:build no python found for ../../docs/makedocs.py ../../zzip/dir.c ../../zzip/err.c ../../zzip/fetch.c ../../zzip/file.c ../../zzip/fseeko.c ../../zzip/info.c ../../zzip/memdisk.c ../../zzip/mmapped.c ../../zzi
p/plugin.c ../../zzip/stat.c ../../zzip/write.c ../../zzip/zip.c --package=zziplib --version=0.13.59 --onlymainheader=zzip/mmapped.h --output=zzipmmapped
:info:build test -s zzipmmapped.docbook && mv zzipmmapped.docbook zzipmmapped.xml
:info:build test -s zziplib.docbook && mv zziplib.docbook zziplib.xml
:info:build make[3]: *** [zziplib.xml] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[3]: *** [zzipmmapped.xml] Error 1
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[1]: *** [all] Error 2
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59" && /usr/bin/make -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within

Seems to indicate I don't have python, but I do, just installed it new from Enthought.

Attachments (2)

config.log (87.5 KB) - added by fherwig@… 14 years ago.
build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59/Darwin_9.8.0_i386.d/config.log
libzzip_session.log (3.3 KB) - added by fherwig@… 14 years ago.
session log python path libzzip port fails to install

Download all attachments as: .zip

Change History (14)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

MacPorts will not use your Enthought Python, or any other external libraries or programs you may have installed Read the FAQ for why.

libzzip builds fine for me, even with the Python included with Mac OS X; I wonder why yours did not find that.... Perhaps you could attach the config.log?

Changed 14 years ago by fherwig@…

Attachment: config.log added

build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59/Darwin_9.8.0_i386.d/config.log

Changed 14 years ago by fherwig@…

Attachment: libzzip_session.log added

session log python path libzzip port fails to install

comment:2 Changed 14 years ago by fherwig@…

I added a session log after cleaning up things. Seems I have everything in place, macport python is there and working, but libzzip does not want to install.

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libzzip not buildinglibzzip build fails because python is not found

libzzip just needs any "python" -- that is to say, either /usr/bin/python (which comes with Mac OS X) or /opt/local/bin/python (which is created when you run python_select, which is provided by the python_select port). Do either of these work? What do they say?

/usr/bin/python --version
/opt/local/bin/python --version

comment:4 in reply to:  3 ; Changed 14 years ago by fherwig@…

Replying to ryandesign@…:

libzzip just needs any "python" -- that is to say, either /usr/bin/python (which comes with Mac OS X) or /opt/local/bin/python (which is created when you run python_select, which is provided by the python_select port). Do either of these work? What do they say?

/usr/bin/python --version
/opt/local/bin/python --version

Here you go, python is there:

vortex$ /usr/bin/python --version
Python 2.7.1 -- EPD 7.0-2 (32-bit)
vortex$ /opt/local/bin/python --version
Python 2.7.1

vortex$ sudo port install libzzip
--->  Computing dependencies for libzzip
--->  Building libzzip
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

vortex$ tail -n 10 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59" && /usr/bin/make -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libzzip): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log

comment:5 in reply to:  4 Changed 14 years ago by fherwig@…

I tried python 2.6:

vortex$ python_select -s
python26

vortex$ /opt/local/bin/python --version 
Python 2.6.6

vortex$ sudo port install libzzip
--->  Computing dependencies for libzzip
--->  Building libzzip
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:6 in reply to:  4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fherwig@…:

vortex$ /usr/bin/python --version
Python 2.7.1 -- EPD 7.0-2 (32-bit)

So that is this Enthought Python you mentioned? It has overwritten the Python that Apple provided with Mac OS X! That is very bad and we probably cannot help you in this case. You should reinstall the Python that came with Mac OS X. I'm not sure how to do that, short of reinstalling all of Mac OS X.

comment:7 Changed 14 years ago by fherwig@…

No worries, the original Apple python 2.5 is still there, I had just replaced the link because I like the EPD for science applications. For the purpose of these installation tests I have put all back in place:

vortex$ /usr/bin/python --version 
Python 2.5.1

vortex$ ls -lat /usr/bin/python
lrwxr-xr-x  1 root  wheel  67 26 Mar 23:00 /usr/bin/python -> /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

vortex$ python_select -s
python25-apple

vortex$ sudo port install libzzip
--->  Computing dependencies for libzzip
--->  Building libzzip
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
vortex$ 

But still not libzzip. As you can see above I have also tried using a macport python2.6 via python_select. To no avail.

comment:8 Changed 14 years ago by jmroot (Joshua Root)

Cc: ryandesign@… added

Looks like you didn't clean between changing the link and retrying the build.

comment:9 Changed 14 years ago by fherwig@…

I am not sure what you mean by 'clean'. I selected the 2.6 python using python_select, the restarted just in case and then checked the python:

w122-146$ pytnon
-bash: pytnon: command not found
w122-146$ python
Python 2.6.6 (r266:84292, Mar 26 2011, 20:58:46) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Then tried installing libzzip:

Users/fherwig] > install libzzip
--->  Computing dependencies for libzzip
--->  Building libzzip
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
[Users/fherwig] >

And still it complains 'python not found'.

comment:10 in reply to:  9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fherwig@…:

I am not sure what you mean by 'clean'.

I mean: run:

sudo port clean libzzip

This deletes the previous failed build attempt. Then you can try installing again from the beginning.

comment:11 Changed 14 years ago by fherwig@…

Thanks for the help, this works! Wonderfull!

comment:12 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Ok, so the problems were because you had replaced Mac OS X's python with a link to some other python, and restoring things to a factory configuration made it work. So there's nothing we need to change in MacPorts.

Note: See TracTickets for help on using tickets.