Hackable Mercurial Can't Find os Module

Adrian Buehlmann adrian at cadifra.com
Sun Sep 27 09:47:57 UTC 2015


On 2015-08-27 08:37, Adrian Buehlmann wrote:
> On 2015-08-27 01:08, Jensen, Aaron wrote:
>>> Perhaps the commit message of 93d97a212559 might be helpful when investigating your problem:
>>>
>>>  https://selenic.com/hg/rev/93d97a212559
>>
>> It looks like the code is looking for a PYTHONHOME environment variable. Once I added that environment variable pointing to the hg-python26 directory, hackable Mercurial is working. I've updated the Hackable Mercurial for Windows wiki page [1].
>>
>> In summary, to get hackable Mercurial for Windows working, I had to:
>>
>>  1. Add the path to the package's hg-python26 directory to my PATH.
>>  2. Create a PYTHONHOME environment variable, set to the full path to the package's hg-python26 directory.
>>
>>
>> [1] https://mercurial.selenic.com/wiki/HackableMercurial
> 
> I think there should be a better way to fix your problem.

[..]

> So, to me, it looks like one problem you have is that the name of the
> directory which has your contents of HackableMercurial is hg-python26
> (as you wrote), instead of "hg-python" which hg.exe is looking for.

I finally verified and tested this, and changed the wiki page accordingly:

https://mercurial.selenic.com/wiki/HackableMercurial?action=diff&rev2=51&rev1=49

After unzipping mercurial-2.6-hackable.zip, you need to rename the
hg-python26 directory to hg-python.

Otherwise you will get the error message: "ImportError: No module named os".


More information about the Mercurial mailing list