Tutorial :“dlopen: no suitable image found” in Mercurial



Question:

I've got a nasty feeling this is something to do with using 32-bit Python and/or 64-bit Mercurial, but I'm new to Macs and I don't fully understand the background.

I'm running Django and I've got Mercurial and Python 2.6 installed (in both cases, the default versions from Macports). I've set 32-bit Python as an environment variable:

export VERSIONER_PYTHON_PREFER_32_BIT=yes  

since without it, Mercurial refused to run and said "no suitable 64-bit architecture".

When I try to run Django (or Mercurial) I get

ImportError at /  dlopen(/lib/python2.6/site-packages/mercurial/osutil.so, 2): no suitable image found.  Did find:      /lib/python2.6/site-packages/mercurial/osutil.so: no matching architecture in universal wrapper  

Google isn't much help here. What's going on? Should I reinstall a different version of Mercurial, and if so, what exactly do I need?

Thanks in advance. Very puzzled.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »