2015-09-15 168 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模塊,這是正確的。

回答