title: "dlopen: no suitable image found" in Mercurial
body: <p>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.</p>
  
  <p>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:</p>
  
  <pre><code>export VERSIONER_PYTHON_PREFER_32_BIT=yes
  </code></pre>
  
  <p>since without it, Mercurial refused to run and said "no suitable 64-bit architecture". </p>
  
  <p>When I try to run Django (or Mercurial) I get </p>
  
  <pre><code>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
  </code></pre>
  
  <p>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?</p>
  
  <p>Thanks in advance. Very puzzled. </p>