Ticket #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: | jwa@…, snc@… | |
| 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
Note: See
TracTickets for help on using
tickets.

