I am trying to build on an iMac running MacOS 10.14.6 (Mojave). I have 
homebrew installed.

I can build the master branch.

When I try to build the develop branch, I quickly run into this:

[patch-2.7.5] ValueError: unsupported hash type sha512

[patch-2.7.5] 
************************************************************************

[patch-2.7.5] Traceback (most recent call last):

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/cmdline.py", 
line 130, in run_safe

[patch-2.7.5]     run()

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/cmdline.py", 
line 112, in run

[patch-2.7.5]     app.download_tarball(args.url_or_tarball, 
args.destination, args.allow_upstream)

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/app.py", 
line 41, in download_tarball

[patch-2.7.5]     tarball.download(allow_upstream=allow_upstream)

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
145, in download

[patch-2.7.5]     if self.checksum_verifies():

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
132, in checksum_verifies

[patch-2.7.5]     sha1 = self._compute_sha1()

[patch-2.7.5]   File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
118, in _compute_sha1

[patch-2.7.5]     return self._compute_hash(hashlib.sha1())

[patch-2.7.5] AttributeError: 'module' object has no attribute 'sha1'

[patch-2.7.5] 
************************************************************************

[patch-2.7.5] 
************************************************************************

[patch-2.7.5] Error downloading patch-2.7.5.tar.gz

[patch-2.7.5] 
************************************************************************



I'm attaching patch-2.7.5.log.


Daniel Bump




-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a9e8c17a-a371-4971-97ce-089311052eaeo%40googlegroups.com.
Found local metadata for patch-2.7.5
ERROR [hashlib|<module>:150]: code for hash md5 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR [hashlib|<module>:150]: code for hash sha1 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR [hashlib|<module>:150]: code for hash sha224 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR [hashlib|<module>:150]: code for hash sha256 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR [hashlib|<module>:150]: code for hash sha384 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR [hashlib|<module>:150]: code for hash sha512 was not found.
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File 
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
 line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
************************************************************************
Traceback (most recent call last):
  File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/cmdline.py", 
line 130, in run_safe
    run()
  File 
"/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/cmdline.py", 
line 112, in run
    app.download_tarball(args.url_or_tarball, args.destination, 
args.allow_upstream)
  File "/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/download/app.py", 
line 41, in download_tarball
    tarball.download(allow_upstream=allow_upstream)
  File "/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
145, in download
    if self.checksum_verifies():
  File "/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
132, in checksum_verifies
    sha1 = self._compute_sha1()
  File "/Users/bump/sagemath/sage/build/bin/../sage_bootstrap/tarball.py", line 
118, in _compute_sha1
    return self._compute_hash(hashlib.sha1())
AttributeError: 'module' object has no attribute 'sha1'
************************************************************************
************************************************************************
Error downloading patch-2.7.5.tar.gz
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  /Users/bump/sagemath/sage/logs/pkgs/patch-2.7.5.log
Describe your computer, operating system, etc.
************************************************************************

Reply via email to