Hi good morning Steve Barnes,

if we create onefile binary using pyInstaller, we can directly run the 
binary in target machine without python installation.
Am I Correct ?, please confirm once.

On Monday, July 11, 2016 at 10:16:45 PM UTC+5:30, Steve Barnes wrote:
>
> If you look at the python documents at 
>
> https://docs.python.org/2.7/library/hashlib.html?highlight=hashlib#module-hashlib
>  
> you will find that hashlib was introduced in python 2.5 - as such it is 
> not too surprising that you get this error on python 2.4.3 you need to 
> do one of: 
>
>  1. Upgrade target machine to at least python 2.5, or higher current in 
> the python 2 series is 2.7.11 
>  2. Check for a minimum value of the python version of 2.5 and refuse to 
> run 
>  3. Do not offer the hashlib based functionality if python < 2.5 
>  4. Stop using hashlib (you presumably need it) 
>
>
> Hope that helps you both. 
>
> Gadget/Steve 
>
>
> On 08/07/2016 17:27, Devarajulu Deva wrote: 
> > Hi All, 
> > Am also getting issue, how to resolve this issue, please help me,. 
> > 
> > On Wednesday, July 2, 2014 at 1:16:10 AM UTC+5:30, Ying Wang wrote: 
> > 
> >     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] <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > To post to this group, send email to [email protected] 
> <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > Visit this group at https://groups.google.com/group/pyinstaller. 
> > For more options, visit https://groups.google.com/d/optout. 
>
> -- 
> Steve (Gadget) Barnes 
> Any opinions in this message are my personal opinions and do not reflect 
> those of my employer. 
>

-- 
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 https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to