On Sep 9, 4:10 pm, JohnMudd <[email protected]> wrote: > I'm using Python 2.7.2 on Linux and PyInstaller 1.5. It works for all > of my code except importing hashlib. In fact, here's all I'm trying > to compile now. > > import hashlib > > I get the following messages at run time. > > ERROR:root:code for hash md5 was not found. > Traceback (most recent call last): > File "pyinstall/build/pyi.linux2/fedex/outPYZ1.pyz/hashlib", line > 139, in <module> > File "pyinstall/build/pyi.linux2/fedex/outPYZ1.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 "pyinstall/build/pyi.linux2/fedex/outPYZ1.pyz/hashlib", line > 139, in <module> > File "pyinstall/build/pyi.linux2/fedex/outPYZ1.pyz/hashlib", line > 91, in __get_builtin_constructor > ValueError: unsupported hash type sha1 > ERROR:root:code for hash sha224 was not found. > > Same for sha224, sha256, sha384 and sha512. > > This might be a clue. I believe I'm picking up the openssl versions > since I have openssl installed on my build machine. > > >>> import _hashlib > >>> dir(_hashlib) > > ['__doc__', '__file__', '__name__', '__package__', 'new', > 'openssl_md5', 'openssl_sha1', 'openssl_sha224', 'openssl_sha256', > 'openssl_sha384', 'openssl_sha512'] > > > > Any suggestions?
The problem was caused by changing the group and turning on setuid mode. I don't have a better explanation but skipping these steps eliminates the problem. $ sudo chgrp lp fedex $ sudo chmod +s fedex -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
