Thanks for getting back to me Steve.  I've disabled all other extensions
and reproduced this independently of the reviewboard extension with a
simple extension whose __init__.py consists of the single line

from distutils.version import LooseVersion

Here's what --traceback shows:

*** failed to import extension chrisDebug from C:\Program
Files\TortoiseHg\chris
Debug: No module named version
Traceback (most recent call last):
  File "mercurial\extensions.pyc", line 88, in loadall
  File "mercurial\extensions.pyc", line 62, in load
  File "mercurial\extensions.pyc", line 43, in loadpath
  File "C:\Program Files\TortoiseHg\chrisDebug\__init__.py", line 1, in
<module>

  File "mercurial\demandimport.pyc", line 114, in _demandimport
ImportError: No module named version

Chris

On Fri, Feb 15, 2013 at 10:58 AM, Steve Borho <[email protected]> wrote:

>
>
> On Tue, Feb 12, 2013 at 9:27 PM, Chris Toomey <[email protected]> wrote:
>
>> I'm trying to use an extension that's got this import statement in it's
>> init file:
>>
>> from distutils.version import LooseVersion
>>
>> and it's failing with the error "*** failed to import extension
>> reviewboard from C:\Program Files\TortoiseHg\reviewboard: No module named
>> version".
>>
>> I see that TortoiseHg's library.zip contains distutils/version.pyo, and
>> version.pyo contains the LooseVersion class.
>>
>> Why might this import be failing and how can I fix this?
>
>
> We need more information:
>
> Where did you clone reviewboard from?  What version do you have checked
> out?
>
> What other extensions are enabled?  Does the behavior change if only
> reviewboard is enabled?
>
> Running a command line command with --traceback would also be helpful.
>
> --
> Steve Borho
>
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to