Hi there,
I am working for calix. Recently we switched from Perl to Python. We are NOT allowed to deliver source code to customer. Therefore we choose your *Pyinstaller* as our tool to create executable. We have a script which uses hashlib module but always failed when running on the target test machine. We need help from you. As far as I understand, by using pyinstaller to create one-file or one-folder executable, there is no version requirement for os/python on the target machine. All the necessary libraries have been included in the distribution executable. Here I narrow down my problem to the following simple case. My python source file test.py only contains 2 lines: import hashlib print “Hello World !” Here is the detail of my running result. After I transfer the dist folder from my development machine to test machines, all I did was using “chmod a+x test” so that I can run it. And I have checked the one-folder program contains libssl_so.10 computer uname -m cat /etc/*release which python python version openssl version chmod a+x test Run one-file program ./test Run one-folder program ./test Vmlnx-tacx32 (development) i686 CentOS release 6.5 /usr/local/bin/python 2.7.7 OpenSSL 1.0.1e-fips 11 Feb 2013 no ok ok Vmlnx-tacx64 (test) x86_64 CentOS release 6.5 /usr/bin/python 2.6.6 OpenSSL 1.0.1e-fips 11 Feb 2013 yes ok ok Tac03 (test) x86_64 CentOS release 6.5 /usr/bin/python 2.4.3 OpenSSL 1.0.1h 5 Jun 2014 yes ERROR:root:code for hash md5 was not found. ERROR:root:code for hash md5 was not found. Here is the detail error message ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 139, in <module> File "/home/ywang/tactools/EXA/Python/test/build/test/out00-PYZ.pyz/hashlib", line 91, in __get_builtin_constructor ValueError: unsupported hash type sha512 Hellow world! We would greatly appreciate it if you could help us out of this issue. Thanks again! Regards, Ying -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
