Help understanding import error

C

ctoomey

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 library.zip file. I'm trying to use an extension whose __init__.py 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 library.zip 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 thisextension works fine on my Linux box.

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

thx,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top