[OE-core] Fwd: [Angstrom-devel] Python library hashlib is missig hash-code.

Koen Kooi koen at dominion.thruhere.net
Sun Apr 15 14:35:09 UTC 2012


My theory is that this is caused by the openssl /usr changes, can anyone confirm or deny that?

Begin doorgestuurd bericht:

> Van: Mattias Millbro <mmillbro at kth.se>
> Onderwerp: [Angstrom-devel] Python library hashlib is missig hash-code.
> Datum: 15 april 2012 14:38:56 GMT+02:00
> Aan: angstrom-distro-devel at linuxtogo.org
> Antwoord aan: Discussion of the angstrom distribution development <angstrom-distro-devel at linuxtogo.org>
> 
> Hi everybody,
> 
> as a new member of this mailing list I'm not familiar to the proper procedure of this kids of questions/bug reports. But I'll give it a try and please let me know if any necessary information is missing.
> 
> I'm running Angstrom on a Beaglebone using the Angstrom-systemd-image-eglibc-ipk-v2012.01-core-beaglebone.rootfs.tar.bz2 image from http://www.angstrom-distribution.org/demo/beaglebone/. I installed python and pyuthon-modules using opkg.
> 
> I recently made a completely fresh install and discovered that the python library hashlib does no longer work properly. It does not seem to find code for sha hashes even tho python.org states
> 
> "Included are the FIPS secure hash algorithms SHA1, SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA’s MD5 algorithm (defined in Internet RFC 1321).".
> 
> All related packages seems to be up to date and I have spent several days googling and installing/reinstalling various packages without any success.
> 
> This is what happens when importing hashlib:
> 
> root at beaglebone:~# python
> Python 2.7.2 (default, Apr 13 2012, 21:18:55)
> [GCC 4.5.4 20120305 (prerelease)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import hashlib
> ERROR:root:code for hash sha1 was not found.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type sha1
> ERROR:root:code for hash sha224 was not found.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type sha224
> ERROR:root:code for hash sha256 was not found.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type sha256
> ERROR:root:code for hash sha384 was not found.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type sha384
> ERROR:root:code for hash sha512 was not found.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
> globals()[__func_name] = __get_hash(__func_name)
> File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
> raise ValueError('unsupported hash type %s' % name)
> ValueError: unsupported hash type sha512
> >>>
> 
> Here is some additional information that might be useful:
> 
> root at beaglebone:~# opkg list-installed | grep python
> libpython2.7-1.0 - 2.7.2-r2.11
> python-2to3 - 2.7.2-r2.11
> python-audio - 2.7.2-r2.11
> python-bsddb - 2.7.2-r2.11
> python-codecs - 2.7.2-r2.11
> python-compile - 2.7.2-r2.11
> python-compiler - 2.7.2-r2.11
> python-compression - 2.7.2-r2.11
> python-core - 2.7.2-r2.11
> python-crypt - 2.7.2-r2.11
> python-ctypes - 2.7.2-r2.11
> python-curses - 2.7.2-r2.11
> python-datetime - 2.7.2-r2.11
> python-db - 2.7.2-r2.11
> python-debugger - 2.7.2-r2.11
> python-difflib - 2.7.2-r2.11
> python-distutils - 2.7.2-r2.11
> python-doctest - 2.7.2-r2.11
> python-elementtree - 2.7.2-r2.11
> python-email - 2.7.2-r2.11
> python-fcntl - 2.7.2-r2.11
> python-gdbm - 2.7.2-r2.11
> python-hotshot - 2.7.2-r2.11
> python-html - 2.7.2-r2.11
> python-idle - 2.7.2-r2.11
> python-image - 2.7.2-r2.11
> python-io - 2.7.2-r2.11
> python-json - 2.7.2-r2.11
> python-lang - 2.7.2-r2.11
> python-logging - 2.7.2-r2.11
> python-mailbox - 2.7.2-r2.11
> python-math - 2.7.2-r2.11
> python-mime - 2.7.2-r2.11
> python-mmap - 2.7.2-r2.11
> python-modules - 2.7.2-r2.11
> python-multiprocessing - 2.7.2-r2.11
> python-netclient - 2.7.2-r2.11
> python-netserver - 2.7.2-r2.11
> python-numbers - 2.7.2-r2.11
> python-pickle - 2.7.2-r2.11
> python-pkgutil - 2.7.2-r2.11
> python-pprint - 2.7.2-r2.11
> python-profile - 2.7.2-r2.11
> python-pydoc - 2.7.2-r2.11
> python-re - 2.7.2-r2.11
> python-readline - 2.7.2-r2.11
> python-resource - 2.7.2-r2.11
> python-robotparser - 2.7.2-r2.11
> python-shell - 2.7.2-r2.11
> python-smtpd - 2.7.2-r2.11
> python-sqlite3 - 2.7.2-r2.11
> python-sqlite3-tests - 2.7.2-r2.11
> python-stringold - 2.7.2-r2.11
> python-subprocess - 2.7.2-r2.11
> python-syslog - 2.7.2-r2.11
> python-terminal - 2.7.2-r2.11
> python-tests - 2.7.2-r2.11
> python-textutils - 2.7.2-r2.11
> python-threading - 2.7.2-r2.11
> python-tkinter - 2.7.2-r2.11
> python-unittest - 2.7.2-r2.11
> python-unixadmin - 2.7.2-r2.11
> python-xml - 2.7.2-r2.11
> python-xmlrpc - 2.7.2-r2.11
> python-zlib - 2.7.2-r2.11
> 
> root at beaglebone:~# opkg list-installed | grep openssl
> openssl - 1.0.0h-r15.1
> 
> I'm grateful for any kind of help solving this issue.
> 
> Best Regards
> / Mattias
> 
> _______________________________________________
> Angstrom-distro-devel mailing list
> Angstrom-distro-devel at linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel





More information about the Openembedded-core mailing list