Help understanding import error

Discussion in 'Python' started by ctoomey@gmail.com, Feb 13, 2013.

  1. Guest

    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
    , Feb 13, 2013
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news
    Replies:
    1
    Views:
    363
    bruce barker
    Oct 4, 2004
  2. Paul Opal
    Replies:
    12
    Views:
    926
    Paul Opal
    Oct 11, 2004
  3. JPractitioner
    Replies:
    13
    Views:
    20,118
    Roedy Green
    Feb 24, 2006
  4. Greg Corradini

    Help Understanding mx.ODBC Error

    Greg Corradini, Apr 18, 2007, in forum: Python
    Replies:
    2
    Views:
    409
    Greg Corradini
    Apr 18, 2007
  5. Dave Hall

    Need help understanding ASP.NET configuration error message

    Dave Hall, Aug 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    8
    Views:
    243
    Jim Cheshire [MSFT]
    Aug 12, 2004
Loading...

Share This Page