Help understanding import error

ctoomey at ctoomey at
Wed Feb 13 20:58:57 CET 2013

I'm using TortoiseHg on Windows, which is implemented in python and includes python (2.7.3) as dlls and a bunch of python modules bunded into a file.  I'm trying to use an extension whose does the following import:

    from distutils.version import LooseVersion

and am getting the error message "*** failed to import extension reviewboard from C:\Program Files\TortoiseHg\reviewboard: No module named version"

The thing I don't get is that the file contains distutils\version.pyo and looking at the text in that it does contain LooseVersion.  Also, many other library modules are imported and used without problem, and this extension works fine on my Linux box.

Any ideas what could be causing this and how to fix it?


More information about the Python-list mailing list