Python可执行文件(3.4.3)和libssl路径(?)的问题

时间:2018-01-03 15:04:37

标签: python ubuntu ssl

我有一台很老的Cent OS东芝笔记本电脑,它运行的工业设备由我公司的前任员工制造完全死在我身上。死了作为一个门,没办法让它恢复。

我正在尝试使用Ubuntu 16.04.3构建一台新机器来运行运行我们硬件的自定义软件,但它在尝试运行旧的python可执行文件时给了我一个合适的选择。我已经搜索过高低,无法弄清楚发生了什么。

我几乎可以肯定它是一个路径问题,有一些非常奇怪的安装路径硬编码到软件中,我甚至无法在此时重建,因为这样做的机制丢失了在云地的某个地方。所以,我已经将我的新python安装符号链接到程序中的错误指向我的地方,并且我已经取得了一些进展。

但是,我无法让python的哈希库工作,我认为这是因为他们无法根据我以前的其他帖子找到Ubuntu SSL库读。但我并不十分自信,可能还有其他事情正在发生。

错误消息如下:

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 240, in <module>
  File "/opt/rh/rh-python34/root/usr/lib64/python3.4/hashlib.py", line 118, in __get_builtin_constructor
    """new(name, data=b'') - Return a new hashing object using the named algorithm;
ValueError: unsupported hash type sha512

对于如何克服这一点,任何想法都会非常非常感激。 。 。并进入下一个障碍!

0 个答案:

没有答案