Bug 3370 - Unable to install on MacOS 10.7.3
Summary: Unable to install on MacOS 10.7.3
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 14:50 UTC by pbreit
Modified: 2012-05-13 04:52 UTC (History)
2 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pbreit 2012-04-13 14:50 UTC
I tried installing 2.1.2 from the MacOS .mpkg and get the error below. Same or similar issues 
have happened in past:

http://mercurial.selenic.com/bts/issue3120
http://mercurial.selenic.com/bts/issue2879

I have toggled VERSIONER_PYTHON_PREFER_32_BIT and ARCHFLAGS to no avail.

Tried installing with pip to no avail.

One thing: I believe this is the first time I've tried installing Mercurial since updating to 
Xcode 4.3.2.

~ $ hg
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 27, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 40, in dispatch
    req.ui = uimod.ui()
  File "/Library/Python/2.7/site-packages/mercurial/ui.py", line 43, in __init__
    for f in scmutil.rcpath():
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 421, in rcpath
    _rcpath = osrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 393, in osrcpath
    path = systemrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 442, in systemrcpath
    path.extend(rcfiles(os.path.join(p, 'etc/mercurial')))
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 431, in rcfiles
    for f, kind in osutil.listdir(rcdir)
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 86, in 
__getattribute__
    self._load()
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: dlopen(/Library/Python/2.7/site-packages/mercurial/osutil.so, 2): no suitable 
image found.  Did find:
	/Library/Python/2.7/site-packages/mercurial/osutil.so: mach-o, but wrong architecture
Comment 1 pbreit 2012-04-13 15:01 UTC
OK, this actually does fix it in my .profile:

VERSIONER_PYTHON_PREFER_32_BIT=no
export VERSIONER_PYTHON_PREFER_32_BIT
Comment 2 Bugzilla 2012-05-12 09:29 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:29 EDT  ---

This bug was previously known as _bug_ 3369 at http://mercurial.selenic.com/bts/issue3369