From owner-freebsd-python@FreeBSD.ORG Sat Mar 8 06:42:55 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E0DDA25 for ; Sat, 8 Mar 2014 06:42:55 +0000 (UTC) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 32614128 for ; Sat, 8 Mar 2014 06:42:55 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id rp16so5145659pbb.3 for ; Fri, 07 Mar 2014 22:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=qMmxJCF6oWTwImM0FCuN3lFe+wWcgkKulAobI1FbIbs=; b=tWl+1qPgAuyY56m9Egb6erHOmohdwR67uVppc+tidRKvm/p4I2+kwyC65Vg2h3vaj8 8HT5Gl91qcVuD2JWyOJtoySLtsuh+QwAn4c9n6gL9TbXKV4oeqdqduZE/qQhaUqW8hG1 s/azBHx8HCRSWViQES8JEWBKv1n8lPuY1JRceV9zITI6clDeLZVfuhXuEqVZb3oNp0SB XBAQUavy2yXQko5Jukv+UqXmhTihpTW2jsg5/9ynX1XYzGAJ6WFsDpKs7lnIe/HyYyvo 0osiw7H2XrMULaVgcPL57MfXv2DZYq/rlUL6Dmmlw16wWUZD7Ltpid2BQNZr5RunNM6i dVtg== X-Received: by 10.68.163.197 with SMTP id yk5mr26997461pbb.57.1394260974454; Fri, 07 Mar 2014 22:42:54 -0800 (PST) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id gj9sm43384768pbc.7.2014.03.07.22.42.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Mar 2014 22:42:53 -0800 (PST) Message-ID: <531ABBE3.9080809@FreeBSD.org> Date: Sat, 08 Mar 2014 17:42:43 +1100 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Thunderbird/27.0 MIME-Version: 1.0 To: "Kenta S." , python@freebsd.org Subject: Re: security/py-cryptography broken References: <20140308050804.A430920106@smtp.hushmail.com> In-Reply-To: <20140308050804.A430920106@smtp.hushmail.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2014 06:42:55 -0000 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 "", line 1, in > File "setup.py", line 131, in > "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 > """) > 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 > 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