Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Help understanding import error

Thread Tools

Help understanding import error
Posts: n/a
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 thisextension works fine on my Linux box.

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Understanding mx.ODBC Error Greg Corradini Python 2 04-18-2007 07:17 PM
to use import java.lang.* or import java.lang.Math or none at all? JPractitioner Java 13 02-24-2006 08:48 PM
IMPORT STATIC; Why is "import static" file scope? Why not class scope? Paul Opal Java 12 10-10-2004 11:01 PM
Please help in understanding error news ASP .Net 1 10-04-2004 05:06 PM
Need help understanding ASP.NET configuration error message Dave Hall ASP .Net Web Controls 8 08-12-2004 03:28 PM