[Bug 743787] New: python3 on x64 can't import hashlib.
https://bugzilla.novell.com/show_bug.cgi?id=743787 https://bugzilla.novell.com/show_bug.cgi?id=743787#c0 Summary: python3 on x64 can't import hashlib. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ruby.twiddler@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- when try to import hashlib on python3.2 x86-64, python3 will always stop with error. error message is $ python3.2 Python 3.2.1 (default, Jul 18 2011, 16:24:40) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "/etc/pythonstart", line 7, in <module> import readline ImportError: No module named readline
import hashlib ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/usr/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/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/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/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/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/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/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/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/lib64/python3.2/hashlib.py", line 141, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib64/python3.2/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c1
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c2
ruby twiddler
looks like you only have python3-base package, which does not contain hashlib. you can fix this problem by installing python3: sudo zypper install python3
Thank you very much. that fix the problem.
the backtrace is nasty, though. this should be handled better I couldn't agree more.
/usr/lib64/python3.2/hashlib.py installed by python3-base. but /usr/lib64/python3.2/lib-dynload/_hashlib.cpython-32mu.so is installed by python3. That caused this mess. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c3
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c4
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c5
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c6
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c9
Kyrill Detinov
Can you prepare a 12.2 update? (Yes, in 12.3 it is fixed.)
No more 12.2, as we know. Maybe close? Jan? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=743787
https://bugzilla.novell.com/show_bug.cgi?id=743787#c10
Jan Matejek
participants (1)
-
bugzilla_noreply@novell.com