Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Mar 2014 17:42:43 +1100
From:      Kubilay Kocak <koobs.freebsd@gmail.com>
To:        "Kenta S." <kentas@hush.com>, python@freebsd.org
Subject:   Re: security/py-cryptography broken
Message-ID:  <531ABBE3.9080809@FreeBSD.org>
In-Reply-To: <20140308050804.A430920106@smtp.hushmail.com>
References:  <20140308050804.A430920106@smtp.hushmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/03/2014 4:08 PM, Kenta S. wrote:
> Trying to install deluge.
> 
> ValueError: unsupported hash type sha512
> running build
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "setup.py", line 131, in <module>
>     "test": PyTest,
>   File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
>     dist.run_commands()
>   File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
>     self.run_command(cmd)
>   File "/usr/local/lib/python2.7/distutils/dist.py", line 971, in run_command
>     cmd_obj.ensure_finalized()
>   File "/usr/local/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
>     self.finalize_options()
>   File "setup.py", line 59, in finalize_options
>     from cryptography.hazmat.primitives import constant_time, padding
>   File "cryptography/hazmat/primitives/constant_time.py", line 25, in <module>
>     """)
>   File "/usr/local/lib/python2.7/site-packages/cffi/api.py", line 102, in cdef
>     self._parser.parse(csource, override=override)
>   File "/usr/local/lib/python2.7/site-packages/cffi/cparser.py", line 154, in parse
>     self._internal_parse(csource)
>   File "/usr/local/lib/python2.7/site-packages/cffi/cparser.py", line 159, in _internal_parse
>     ast, macros = self._parse(csource)
>   File "/usr/local/lib/python2.7/site-packages/cffi/cparser.py", line 124, in _parse
>     ast = _get_parser().parse(csource)
>   File "/usr/local/lib/python2.7/site-packages/cffi/cparser.py", line 31, in _get_parser
>     _parser_cache = pycparser.CParser()
>   File "/usr/local/lib/python2.7/site-packages/pycparser/c_parser.py", line 103, in __init__
>     tabmodule=yacctab)
>   File "/usr/local/lib/python2.7/site-packages/pycparser/ply/yacc.py", line 3065, in yacc
>     signature = pinfo.signature()
>   File "/usr/local/lib/python2.7/site-packages/pycparser/ply/yacc.py", line 2800, in signature
>     from md5 import md5
>   File "/usr/local/lib/python2.7/md5.py", line 10, in <module>
>     from hashlib import md5
> ImportError: cannot import name md5
> *** [do-build] Error code 1
> 
> Stop in /usr/ports/security/py-cryptography.
> 
> ===>>> make failed for security/py-cryptography
> ===>>> Aborting update
> 

deluge depends on py-openssl, which since 0.14, uses py-cryptography

Having said that, it looks like your Python installation doesnt have
md5, which will be the root-cause of the issue above.

You'll want to isolate why that is the case.

--
Koobs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?531ABBE3.9080809>