Python27 update error

Jasper Frumau jasperfrumau at gmail.com
Tue May 15 17:01:12 PDT 2012


While I was doing a general update of MacPorts on my Lion - newly upgraded
- with the latest XCode I ran into this error:
----------
:info:destroot     from pyexpat import *
:info:destroot ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_xmlplus/parsers/pyexpat.so,
2): no suitable image found.  Did find:
:info:destroot /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_xmlplus/parsers/pyexpat.so:
mach-o, but wrong architecture
:info:destroot make[1]: *** [install_BuildApplet] Error 1
:info:destroot make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/work/Python-2.7.3/Mac'
:info:destroot make: *** [frameworkinstallapps] Error 2
:info:destroot make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/work/Python-2.7.3'
:info:destroot Command failed:  cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/work/Python-2.7.3"
&& /usr/bin/make -w frameworkinstall maninstall MAKE="/usr/bin/make
CC=/usr/bin/clang"
DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/work/destroot
:info:destroot Exit code: 2
:error:destroot org.macports.destroot for port python27 returned: command
execution failed
:debug:destroot Error code: CHILDSTATUS 24208 2
:debug:destroot Backtrace: command execution failed

-------------

Trying to uninstall resulted in errors indicating many port depend on it:

jaspersmbp:~ jasper$ sudo port uninstall python27--->  Unable to uninstall
python27 @2.7.2_4+universal, the following ports depend on it:
--->   gnome-doc-utils @0.20.6_0+python27
--->   py27-py @1.1.1_0
--->   py27-cairo @1.8.10_1
--->   py27-gtk @2.22.0_1
--->   cfv @1.18.3_2+python27
--->   gtk-doc @1.18_0+python27
--->   libproxy @0.4.7_0+python27
--->   py27-distribute @0.6.24_0
--->   py27-numpy @1.6.1_1+atlas+gcc44
--->   py27-libxml2 @2.7.8_0+universal
--->   py27-mysql @1.2.3_0+mysql5
--->   py27-orbit @2.24.0_0
--->   py27-gnome @2.28.1_0
--->   py27-zopeinterface @3.8.0_1
--->   py27-twisted @11.1.0_0
--->   telepathy-mission-control @5.10.1_0+python27
--->   py27-gdbm @2.7.2_0
--->   librsvg @2.34.2_1
--->   py27-distribute @0.6.25_0
--->   py27-distribute @0.6.26_0
--->   py27-lxml @2.3_0
--->   py27-xml @0.8.4_0
--->   py27-gobject @2.26.0_2
--->   py27-gdbm @2.7.3_0
--->   ktoblzcheck @1.38_0
--->   py27-django @1.4_0
--->   mercurial @2.2.1_0
Error: org.macports.uninstall for port python27 returned: Please uninstall
the ports that depend on python27 first.
Please see the log file for port python27 for details:

/opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_python27_2.7.2_4+universal/python27/main.log
Warning: Failed to execute portfile from registry for python27
@2.7.2_4+universal
--->  Unable to uninstall python27 @2.7.2_4+universal, the following ports
depend on it:
--->   gnome-doc-utils @0.20.6_0+python27
--->   py27-py @1.1.1_0
--->   py27-cairo @1.8.10_1
--->   py27-gtk @2.22.0_1
--->   cfv @1.18.3_2+python27
--->   gtk-doc @1.18_0+python27
--->   libproxy @0.4.7_0+python27
--->   py27-distribute @0.6.24_0
--->   py27-numpy @1.6.1_1+atlas+gcc44
--->   py27-libxml2 @2.7.8_0+universal
--->   py27-mysql @1.2.3_0+mysql5
--->   py27-orbit @2.24.0_0
--->   py27-gnome @2.28.1_0
--->   py27-zopeinterface @3.8.0_1
--->   py27-twisted @11.1.0_0
--->   telepathy-mission-control @5.10.1_0+python27
--->   py27-gdbm @2.7.2_0
--->   librsvg @2.34.2_1
--->   py27-distribute @0.6.25_0
--->   py27-distribute @0.6.26_0
--->   py27-lxml @2.3_0
--->   py27-xml @0.8.4_0
--->   py27-gobject @2.26.0_2
--->   py27-gdbm @2.7.3_0
--->   ktoblzcheck @1.38_0
--->   py27-django @1.4_0
--->   mercurial @2.2.1_0
Error: port uninstall failed: Please uninstall the ports that depend on
python27 first.

Should I just force an uninstall and reinstall or would that be a bad idea?

    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
:info:destroot Warning: targets not executed for python27:
org.macports.install org.macports.destroot
:notice:destroot Please see the log file for port python27 for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/main.log
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120516/51a4a9dd/attachment.html>


More information about the macports-users mailing list