Skip to content
Advertisement

“ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1.

Any reference would be appreciated. Here is the error I’m getting:

JavaScript

I also tried following the instruction on this issue but none of the solutions seem to work

JavaScript

Advertisement

Answer

Running brew reinstall python@2 didn’t work for my existing Python 2.7 virtual environments. Inside them there were still ERROR:root:code for hash sha1 was not found errors.

I encountered this problem after I ran brew upgrade openssl. And here’s the fix:

JavaScript

…which shows

JavaScript

According to the existing version, run:

JavaScript

…which shows

JavaScript

After that, run the following command in a Python 2.7 virtualenv:

JavaScript

…which shows

JavaScript

No more errors.

Advertisement