2015-09-15 173 views
1

我有一个python脚本,我用pyinstall做出onefilepyinstall编译脚本无法运行

但是当我使用这个文件到另一台服务器,有一些问题

[[email protected] tmp]# ./linux_server_script 
ERROR:root:code for hash md5 was not found. 
Traceback (most recent call last): 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module> 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor 
ValueError: unsupported hash type md5 
ERROR:root:code for hash sha1 was not found. 
Traceback (most recent call last): 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module> 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor 
ValueError: unsupported hash type sha1 
ERROR:root:code for hash sha224 was not found. 
Traceback (most recent call last): 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module> 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor 
ValueError: unsupported hash type sha224 
ERROR:root:code for hash sha256 was not found. 
Traceback (most recent call last): 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module> 
    File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor 
ValueError: unsupported hash type sha256 
ERROR:root:code for hash sha384 was not found. 

和我的服务器有OpenSSL的lib和我使用Python壳外观hashlib模块,这是正确的。

回答