I'm using Ubuntu 10.04 and I just installed Mercurial 1.5.4 from source (see this question for some installation trouble that I had). Now, however, when I invoke:
hg
I get the following:
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
...
File "/usr/lib/pymodules/python2.6/mercurial/demandimport.py", line 47, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named osutil
yet
find /usr/local/lib -name osutil* -print
returns
/usr/local/lib/python2.6/dist-packages/mercurial/osutil.so
which I assume can be loaded by Python scripts similar to Perl and XS. With the exception of adding python-dev (see answer at above link) my Python installation is exactly as it came with Ubuntu 10.04 after upgrading to 10.04 from 9.10.
What's going on?