Mercurial error: No module named HTMLParser
Pete Brunet
peter.brunet at oracle.com
Sat Jun 16 16:36:06 UTC 2012
When using hg commands I always get:
*** failed to import extension defpath from
C:\Users\Pete\hg-extensions\defpath\defpath.py: No module named HTMLParser
I am using cygwin 1.7.0 (instead of the latest due to needing to run on
Windows 7).
I tried adding the following to my environment variables but that didn't
help. which/where indicates python is at this location.
PYTHONHOME=C:\Program Files\Python27
PYTHONPATH=C:\Program Files\Python27;C:\Program Files\Python27\Lib
If I type:
python /cygdrive/c/Users/Pete/hg-extensions/defpath/defpath.py
I get
python.exe: can't open file
'/cygdrive/c/Users/Pete/hg-extensions/defpath/defpath.py' [Errno 2] No
such file or directory
If I type
ll /cygdrive/c/Users/Pete/hg-extensions/defpath/defpath.py
that file is there (and the rights are 700).
If I use python -v I see lots of "can't create" messages. If I run
cygwin "as administrator" I don't see the "can't create" messages when
using python -v but I still get the Errno 2 failure. Also running hg
within an "as adminstrator" cygwin doesn't help.
Does anyone have any ideas?
Pete
More information about the build-dev
mailing list