Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.05 install

I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". I deleted the Sage directory in /home and redid the Sage install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?

peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage

| Sage Version 5.0, Release Date: 2012-05-14 |

| Type notebook() for the GUI, and license() for information. |

The Sage installation tree may have moved (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux). Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module> import IPython File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module> from IPython.genutils import list2dict2 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module> from IPython.external.path import path File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module> import md5 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module> from hashlib import md5 ImportError: cannot import name md5

click to hide/show revision 2
corrected Ubuntu release number

"code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.05 12.04 install

I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". I deleted the Sage directory in /home and redid the Sage install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?

peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage

| Sage Version 5.0, Release Date: 2012-05-14 |

| Type notebook() for the GUI, and license() for information. |

The Sage installation tree may have moved (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux). Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module> import IPython File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module> from IPython.genutils import list2dict2 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module> from IPython.external.path import path File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module> import md5 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module> from hashlib import md5 ImportError: cannot import name md5

click to hide/show revision 3
clarified that problem was not just with md5; broke up terminal messages to make easier to read

"code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.04 install

I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". (The first message was about md5, but as you can see below, there were many others that failed.) I deleted the Sage directory in /home and redid the Sage download and install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?

peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage

| Sage Version 5.0, Release Date: 2012-05-14 |

| Type notebook() for the GUI, and license() for information. |

The Sage installation tree may have moved (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux). /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux).

Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths. paths.

ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) name)

ValueError: unsupported hash type md5 md5

ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha1 sha1

ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha224 sha224

ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha256 sha256

ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha384 sha384

ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module> import IPython File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module> from IPython.genutils import list2dict2 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module> from IPython.external.path import path File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module> import md5 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module> from hashlib import md5 ImportError: cannot import name md5

click to hide/show revision 4
No.4 Revision

"code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.04 install

I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". (The first message was about md5, but as you can see below, there were many others that failed.) I deleted the Sage directory in /home and redid the Sage download and install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?

peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage

./sage ---------------------------------------------------------------------- | Sage Version 5.0, Release Date: 2012-05-14 |

| | Type notebook() for the GUI, and license() for information. |

| ---------------------------------------------------------------------- The Sage installation tree may have moved (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux).

/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux). Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths.

paths. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name)

name) ValueError: unsupported hash type md5

md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha1

sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha224

sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha256

sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha384

sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module> import IPython File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module> from IPython.genutils import list2dict2 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module> from IPython.external.path import path File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module> import md5 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module> from hashlib import md5 ImportError: cannot import name md5

md5
click to hide/show revision 5
retagged

"code for hash md5 was not found" after fresh Sage 5.0 install on fresh Ubuntu 12.04 install

I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". (The first message was about md5, but as you can see below, there were many others that failed.) I deleted the Sage directory in /home and redid the Sage download and install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?

peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage
----------------------------------------------------------------------
| Sage Version 5.0, Release Date: 2012-05-14                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
The Sage installation tree may have moved
(from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux).

Changing various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done resetting paths.

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/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 "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module>
    import IPython
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module>
    __import__(name,glob,loc,[])
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module>
    from IPython.genutils import list2dict2
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module>
    from IPython.external.path import path
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module>
    import md5
  File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module>
    from hashlib import md5
ImportError: cannot import name md5