Bug#813597: Versions

2016-02-03 Thread Daniel Monteiro Basso
Yep, that was it, I was using a local (pip installed) version of cffi.
I apologize for wasting your time guys. Thank you for the help.

Cheers,
Daniel

On Wed, 2016-02-03 at 15:53 +, Tristan Seligmann wrote:
> Could you check and report what versions of python-cffi and
> python-cffi-backend you have installed? (ie. dpkg -l python-cffi
> python-cffi-backend)

python-cffi & backend 1.5.0-1

> Also the output of "import cffi; cffi" from the same Python
> interpreter session as the one where you experience the import-time
> error.

import cffi; cffi

1.1.0



Bug#813597: python-openssl: exception when importing OpenSSL

2016-02-03 Thread Daniel Monteiro Basso
Package: python-openssl
Version: 0.15.1-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?

Just dist-upgrade'd my system. After that, anything that depends on pyopenssl
stopped working, including pip.

In [1]: import cryptography

In [2]: cryptography.__version__
Out[2]: '1.2.1'

In [3]: import OpenSSL
---
AttributeErrorTraceback (most recent call last)
 in ()
> 1 import OpenSSL

/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py in ()
  6 """
  7
> 8 from OpenSSL import rand, crypto, SSL
  9 from OpenSSL.version import __version__
 10

/usr/lib/python2.7/dist-packages/OpenSSL/rand.py in ()
  9 from six import integer_types as _integer_types
 10
---> 11 from OpenSSL._util import (
 12 ffi as _ffi,
 13 lib as _lib,

/usr/lib/python2.7/dist-packages/OpenSSL/_util.py in ()
  4 from six import PY3, binary_type, text_type
  5
> 6 from cryptography.hazmat.bindings.openssl.binding import Binding
  7 binding = Binding()
  8 ffi = binding.ffi

/usr/lib/python2.7/dist-
packages/cryptography/hazmat/bindings/openssl/binding.py in ()
 66 @ffi_callback("int (*)(unsigned char *, int)",
 67   name="Cryptography_rand_bytes",
---> 68   error=-1)
 69 def _osrandom_rand_bytes(buf, size):
 70 signed = ffi.cast("char *", buf)

/usr/lib/python2.7/dist-
packages/cryptography/hazmat/bindings/openssl/binding.py in wrapper(func)
 55 # def_extern() returns a decorator that sets the internal
 56 # function pointer and returns the original function
unmodified.
---> 57 ffi.def_extern(name=name, **kwargs)(func)
 58 callback = getattr(lib, name)
 59 else:

AttributeError: 'CompiledFFI' object has no attribute 'def_extern'



-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.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.2.1-1
ii  python-six   1.10.0-1
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