hg clone: Unsupported hash type

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Nov 14 17:50:44 UTC 2012


On Nov 14, 2012, at 10:50 AM, Augie Fackler wrote:

> On Nov 14, 2012, at 6:46 AM, Robert PINSKER <robert.pinsker at st.com> wrote:
> 
>> Having successfully used mercurial to download gem5 on a virtual machine,  I'm now trying to repeat the exercise on our main company network.
>> 
>> This means that I have had to talk to our IT department to get the right libraries installed and all that kind of stuff.
>> 
>> Having overcome a few obstacles, such as getting the mercurial proxy set up, I now get this:
>> 
>> 
>> 
>> % hg clone http://repo.gem5.org/gem5-stable
>> destination directory: gem5-stable
>> ERROR:root:code for hash md5 was not found.
>> Traceback (most recent call last):
>> File "/sw/freetools/python/2.7.2/Linux/rh4/i686/lib/python2.7/hashlib.py", line 139, in <module>
>>   globals()[__func_name] = __get_hash(__func_name)
>> File "/sw/freetools/python/2.7.2/Linux/rh4/i686/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
>>   raise ValueError('unsupported hash type %s' % name)
>> ValueError: unsupported hash type md5
>> ERROR:root:code for hash sha1 was not found.
>> Traceback (most recent call last):
>> File "/sw/freetools/python/2.7.2/Linux/rh4/i686/lib/python2.7/hashlib.py", line 139, in <module>
>>   globals()[__func_name] = __get_hash(__func_name)
>> File "/sw/freetools/python/2.7.2/Linux/rh4/i686/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
>>   raise ValueError('unsupported hash type %s' % name)
>> ValueError: unsupported hash type sha1
>> abort: cannot import name sha1!
>> 
>> 
>> Any ideas as to what's wrong?
> 
> 
> It looks like your Python install is missing sha1 support.

And md5 support.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock




More information about the Mercurial mailing list