安装plon时不支持的哈希类型

2024-05-23 22:38:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图安装plone,但运行脚本install.sh时出现问题。以下是错误详细信息:

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

我在一个论坛上读到,这个错误可能是由于Plone版本与操作系统上的python版本不兼容造成的。但是,《公共科学图书馆》的官方网站上说:

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.

所以我不知道怎么解决这个问题。


Tags: andthe版本sourcethatisplonetype
2条回答

这不是唯一的问题。

Python对^{} module使用OpenSSL,系统上的OpenSSL库不提供所需的功能。通常sha256、sha384和sha512算法在默认情况下应该存在,但它们不在您的系统上,并且/或者python链接到了错误的系统库。

如何解决这个问题取决于你的操作系统,你没有提供任何细节。您可以检查安装程序的需求列表,并仔细检查是否有所需的一切。

正如@Martijn所解释的,openssl没有所需的散列函数。所以,卸载它并使用其他库,例如libressl。我做了以下工作,在麦克·艾尔·卡皮坦身上成功了:

   brew uninstall openssl@1.1
   brew install libressl
   brew uninstall python2
   brew install python2

相关问题 更多 >