Bug#825118: python-openssl: 'CompiledFFI' object has no attribute 'def_extern'

2016-07-16 Thread Sandro Tosi
control: reassign -n python-cryptography

the path producing the error is in  python-cryptography, reassigning accordingly

On Mon, May 23, 2016 at 8:22 PM, Nicola Spanti
 wrote:
> Package: python-openssl
> Version: 16.0.0-1
> Severity: important
>
> Dear Maintainer,
>
>
> Apps that use python-openssl do not work anymore. For example:
>
> # pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip 
> install -U
> Traceback (most recent call last):
>   File "/usr/bin/pip", line 9, in 
> from pip import main
>   File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 13, in 
> 
> from pip.exceptions import InstallationError, CommandError, PipError
>   File "/usr/lib/python2.7/dist-packages/pip/exceptions.py", line 6, in 
> 
> from pip._vendor.six import iteritems
>   File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, 
> in 
> vendored("cachecontrol")
>   File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, 
> in vendored
> __import__(modulename, globals(), locals(), level=0)
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/__init__.py",
>  line 9, in 
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/wrapper.py",
>  line 1, in 
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py",
>  line 3, in 
>   File 
> "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/__init__.py",
>  line 53, in 
>   File 
> "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py",
>  line 54, in 
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 
> 
> from OpenSSL import rand, crypto, SSL
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in 
> 
> from OpenSSL._util import (
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in 
> 
> from cryptography.hazmat.bindings.openssl.binding import Binding
>   File 
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
>  line 88, in 
> error=-1)
>   File 
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
>  line 77, in wrapper
> ffi.def_extern(name=name, **kwargs)(func)
> AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
> Traceback (most recent call last):
>   File "/usr/bin/pip", line 9, in 
> from pip import main
>   File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 13, in 
> 
> from pip.exceptions import InstallationError, CommandError, PipError
>   File "/usr/lib/python2.7/dist-packages/pip/exceptions.py", line 6, in 
> 
> from pip._vendor.six import iteritems
>   File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, 
> in 
> vendored("cachecontrol")
>   File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, 
> in vendored
> __import__(modulename, globals(), locals(), level=0)
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/__init__.py",
>  line 9, in 
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/wrapper.py",
>  line 1, in 
>   File 
> "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py",
>  line 3, in 
>   File 
> "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/__init__.py",
>  line 53, in 
>   File 
> "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py",
>  line 54, in 
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 
> 
> from OpenSSL import rand, crypto, SSL
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in 
> 
> from OpenSSL._util import (
>   File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in 
> 
> from cryptography.hazmat.bindings.openssl.binding import Binding
>   File 
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
>  line 88, in 
> error=-1)
>   File 
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
>  line 77, in wrapper
> ffi.def_extern(name=name, **kwargs)(func)
> AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
>
>
> Regards.
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
> Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages python-openssl depends on:
> ii  python-cryptography  1.3.1-2
> ii  python-six   1.10.0-3
> pn  python:any   
>
> python-openssl 

Bug#825118: python-openssl: 'CompiledFFI' object has no attribute 'def_extern'

2016-05-23 Thread Nicola Spanti
Package: python-openssl
Version: 16.0.0-1
Severity: important

Dear Maintainer,


Apps that use python-openssl do not work anymore. For example:

# pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install 
-U
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in 
from pip import main
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 13, in 
from pip.exceptions import InstallationError, CommandError, PipError
  File "/usr/lib/python2.7/dist-packages/pip/exceptions.py", line 6, in 
from pip._vendor.six import iteritems
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, in 

vendored("cachecontrol")
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, in 
vendored
__import__(modulename, globals(), locals(), level=0)
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/__init__.py",
 line 9, in 
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/wrapper.py",
 line 1, in 
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py",
 line 3, in 
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/__init__.py",
 line 53, in 
  File 
"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py",
 line 54, in 
  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 

from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in 
from OpenSSL._util import (
  File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in 
from cryptography.hazmat.bindings.openssl.binding import Binding
  File 
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
 line 88, in 
error=-1)
  File 
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
 line 77, in wrapper
ffi.def_extern(name=name, **kwargs)(func)
AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in 
from pip import main
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 13, in 
from pip.exceptions import InstallationError, CommandError, PipError
  File "/usr/lib/python2.7/dist-packages/pip/exceptions.py", line 6, in 
from pip._vendor.six import iteritems
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, in 

vendored("cachecontrol")
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, in 
vendored
__import__(modulename, globals(), locals(), level=0)
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/__init__.py",
 line 9, in 
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/wrapper.py",
 line 1, in 
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py",
 line 3, in 
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/__init__.py",
 line 53, in 
  File 
"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py",
 line 54, in 
  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in 

from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in 
from OpenSSL._util import (
  File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in 
from cryptography.hazmat.bindings.openssl.binding import Binding
  File 
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
 line 88, in 
error=-1)
  File 
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
 line 77, in wrapper
ffi.def_extern(name=name, **kwargs)(func)
AttributeError: 'CompiledFFI' object has no attribute 'def_extern'


Regards.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-openssl depends on:
ii  python-cryptography  1.3.1-2
ii  python-six   1.10.0-3
pn  python:any   

python-openssl recommends no packages.

Versions of packages python-openssl suggests:
pn  python-openssl-dbg  
pn  python-openssl-doc  

-- no debconf information