其他服务器的pyinstaller编译脚本不能运行呢
pyinstall compiler script for other server can not run it
我有一个python脚本,我用pyinstall制作了一个文件
但是当我使用这个文件到其他服务器时,出现了一些问题
[root@ops-pdc-02 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库,我用python shell看看hashlib模块,没错。
it's openssl badlly,so download ssl CERTIFICATE see
http://drops.cnmoker.org/archives/403.html
老版本的openssl会有一个坑,由于证书太老,导致openssl CURL python pip都错误
解决办法,下载一个新的CA证书,替换掉老的/etc/pki/tls/certs/ca-bundle.crt
and maybe attention GLIBC version
我有一个python脚本,我用pyinstall制作了一个文件
但是当我使用这个文件到其他服务器时,出现了一些问题
[root@ops-pdc-02 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库,我用python shell看看hashlib模块,没错。
it's openssl badlly,so download ssl CERTIFICATE see
http://drops.cnmoker.org/archives/403.html
老版本的openssl会有一个坑,由于证书太老,导致openssl CURL python pip都错误
解决办法,下载一个新的CA证书,替换掉老的/etc/pki/tls/certs/ca-bundle.crt
and maybe attention GLIBC version