Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25737 closed defect (worksforme)

py27-distribute Unable to upgrade port

Reported by: mike.english@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: jyrkiwahlstedt, nerdling (Jeremy Lavergne)
Port: python27

Description

In trying to upgrade outdated packages, I encountered an error with py27-distribute.

$ sudo port upgrade py27-distribute
--->  Computing dependencies for py27-distribute
--->  Staging py27-distribute into destroot
Error: Target org.macports.destroot returned: shell command failed
Log for py27-distribute is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

Here's the end of the log:

$ tail -n 30 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/main.log
:info:destroot     return _install.run(self)
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 575, in run
:info:destroot     self.run_command(cmd_name)
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
:info:destroot     self.distribution.run_command(command)
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
:info:destroot     cmd_obj.run()
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/work/distribute-0.6.14/setuptools/command/install_scripts.py", line 15, in run
:info:destroot     from setuptools.command.easy_install import get_script_args
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/work/distribute-0.6.14/setuptools/command/easy_install.py", line 24, in <module>
:info:destroot     from setuptools.package_index import PackageIndex
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/work/distribute-0.6.14/setuptools/package_index.py", line 2, in <module>
:info:destroot     import sys, os.path, re, urlparse, urllib2, shutil, random, socket, cStringIO
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 93, in <module>
:info:destroot     import hashlib
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 136, in <module>
:info:destroot     globals()[__func_name] = __get_hash(__func_name)
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 71, in __get_builtin_constructor
:info:destroot     import _md5
:info:destroot ImportError: No module named _md5
:info:destroot shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/work/distribute-0.6.14" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg install --prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 --root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/work/destroot " returned error 1
:error:destroot Target org.macports.destroot returned: shell command failed
:debug:destroot Backtrace: shell command failed
    while executing
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
:info:destroot Warning: the following items did not execute (for py27-distribute): org.macports.archive org.macports.destroot
:notice:destroot Log for py27-distribute is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py27-distribute/main.log

So it looks like maybe my crypto lib is broken...? Has anyone else encountered similar errors?

(If I've mis-filed this ticket, please correct me. I'm new here.)

Change History (5)

comment:1 Changed 14 years ago by mike.english@…

It may or may not help to know that I'm running OS X 10.5.8 on a 1.5Ghz PowerPC G4.

comment:2 Changed 14 years ago by mike.english@…

Cc: mike.english@… added

Cc Me!

comment:3 Changed 14 years ago by mike.english@…

This may be something like the opposite problem of what was encountered here: #19461 I'm not sure how this happened or how to fix it though.

$ python2.7 -c 'import _hashlib;print dir(_hashlib)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so, 2): Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
  Reason: image not found
$ port installed openssl
The following ports are currently installed:
  openssl @1.0.0a_0 (active)

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

Cc: jwa@… snc@… added; mike.english@… removed
Resolution: worksforme
Status: newclosed

You need to rebuild python27 against openssl 1.0. It was rev bumped, so that would have happened automatically in the course of upgrading your outdated ports unless you did something interesting with activating old versions or using -n.

comment:5 Changed 14 years ago by mike.english@…

Thanks! I just rebuilt and came back to find your comment. worksforme too.

I think I broke things by following advice found here to run

sudo port -nuf upgrade outdated

as a way of keeping things clean.

Note: See TracTickets for help on using tickets.