Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unsupported hash type when installing plone

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.

like image 356
user1499220 Avatar asked Dec 21 '22 19:12

user1499220


1 Answers

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.

like image 162
Martijn Pieters Avatar answered Jan 03 '23 13:01

Martijn Pieters