unsupported hash type when installing plone

user1499220 picture user1499220 · Jul 11, 2012 · Viewed 9.2k times · Source

I tried to install plone but I have a problem when I run the script install.sh. Here are the errors details:

raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found
ValueError: unsupported hash type sha512

I read in a forum that this error may be caused by a version of Plone which is not compatible with the python version that is on the OS. But, here is what is said on the official website of plone:

The Plone Unified Installer is a source-installation kit that installs Plone and its dependencies from source on most Unix-like platforms. The kit includes Plone, Zope and Python. Python is installed in a way that will not change or interfere with your system Python.

So I don't know how to solve the problem.

Answer

Martijn Pieters picture Martijn Pieters · Jul 11, 2012

This is not a Plone-only problem.

Python uses OpenSSL for the hashlib module, and the OpenSSL libraries on your system do not provide functions that it needs. Normally the sha256, sha384 and sha512 algorithms are supposed to be present by default but they are not on your system, and/or python is being linked to the wrong system libraries.

How to solve this depends on your OS, for which you didn't provide any details. You could check the list of requirements for the installer and doublecheck you have everything you need.