Opened 13 years ago

Closed 13 years ago

#29698 closed defect (fixed)

mercurial @1.8.3 cannot import sha

Reported by: russ@… Owned by: deric@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: python26 mercurial

Description

Upon initial port install mercurial, get:

Error: Target org.macports.build returned: shell command failed (see log for details)
Log for mercurial is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mercurial/main.log

which explains in the log

:info:build setup.py:28: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
:info:build   import sha
:info:build Couldn't import standard hashlib (incomplete Python install).
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mercurial/work/mercurial-1.8.3" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1

Mac OSX 10.6.7 XCode 3.2

Attachments (1)

mercurial.log (20.7 KB) - added by russ@… 13 years ago.
mercurial build log

Download all attachments as: .zip

Change History (6)

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

Port: mercurial added

Please selfupdate, clean and try again:

sudo port selfupdate
sudo port clean mercurial
sudo port install mercurial

If it still fails, it might help if you attach the entire log. It builds fine for me.

Changed 13 years ago by russ@…

Attachment: mercurial.log added

mercurial build log

comment:2 Changed 13 years ago by russ@…

I did the selfupdate, clean and rebuild. Is it possible that I need a newer version of XCode? I'd seen a warning to use specifically the version on the Snow Leopard DVD. Is that incorrect?

I have attached the full build log

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Cc: mcalhoun@… added
Owner: changed from macports-tickets@… to deric@…
Port: python26 added

Please remember to cc the maintainer. Installing mercurial works fine for me FWIW.

Using the Xcode version on the 10.6 DVD certainly isn't recommended; it would be 3.2.0 whereas the current free version is 3.2.6. You should be able to upgrade using Software Update, or using the links in the Guide. It's not clear that this problem is caused by your Xcode version though.

The specific problem here is that one of the modules that should be provided by python26 is missing. So that's the port that needs to be reinstalled correctly, whether that requires a newer Xcode version or something else.

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

Is this still a problem with the current version (which uses python27)?

comment:5 Changed 13 years ago by deric@…

Resolution: fixed
Status: newclosed

No it's shouldn't be, closing. thx jmr

Note: See TracTickets for help on using tickets.