Processed: Re: Bug#848065: python-cryptography: renders ansible unusable

2016-12-13 Thread Debian Bug Tracking System
Processing control commands:

> notfound -1 1.5.3-1
Bug #848065 [python-cryptography] python-cryptography: renders ansible unusable
No longer marked as found in versions python-cryptography/1.5.3-1.

-- 
848065: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848065
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#848065: python-cryptography: renders ansible unusable

2016-12-13 Thread Tristan Seligmann
Control: notfound -1 1.5.3-1

You have an installation of PyOpenSSL in
/home/pjs/.local/lib/python2.7/site-packages that is not compatible with
Cryptography 1.5.3; removing or upgrading this should solve your problem.

To avoid this kind of problem in future, I would recommend using virtualenv
rather than installing things to ~/.local, as packages in a virtualenv will
not interfere with the system Python like ~/.local / --user packages will.

On Tue, 13 Dec 2016 at 20:03 Paulo Silva  wrote:

> Package: python-cryptography
> Version: 1.5.3-1
> Severity: critical
> Justification: breaks unrelated software
>
> Upgrading python-cryptography from 1.5.2-1 to 1.5.3-1 renders ansible
> unusable:
>
> $ ansible-playbook -vvv playbook.yml
> ERROR! Unexpected Exception: 'module' object has no attribute 'SSL_ST_INIT'
> the full traceback was:
>
> Traceback (most recent call last):
>   File "/usr/bin/ansible-playbook", line 103, in 
> exit_code = cli.run()
>   File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line
> 159, in run
> results = pbex.run()
>   File
> "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py",
> line 89, in run
> self._tqm.load_callbacks()
>   File
> "/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py",
> line 177, in load_callbacks
> for callback_plugin in callback_loader.all(class_only=True):
>   File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py",
> line 394, in all
> self._module_cache[path] = self._load_module_source(name, path)
>   File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py",
> line 324, in _load_module_source
> module = imp.load_source(name, path, module_file)
>   File
> "/usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py",
> line 32, in 
> from ansible.module_utils.urls import open_url
>   File "/usr/lib/python2.7/dist-packages/ansible/module_utils/urls.py",
> line 150, in 
> from urllib3.contrib.pyopenssl import ssl_wrap_socket
>   File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py",
> line 47, in 
> import OpenSSL.SSL
>   File "/home/pjs/.local/lib/python2.7/site-packages/OpenSSL/__init__.py",
> line 8, in 
> from OpenSSL import rand, crypto, SSL
>   File "/home/pjs/.local/lib/python2.7/site-packages/OpenSSL/SSL.py", line
> 124, in 
> SSL_ST_INIT = _lib.SSL_ST_INIT
> AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
>
> Downgrading to python-cryptography to 1.5.2-1 fixes the issue:
>
> $ sudo dpkg -i
> /var/cache/apt/archives/python-cryptography_1.5.2-1_amd64.deb
> dpkg: warning: downgrading python-cryptography from 1.5.3-1 to 1.5.2-1
> (Reading database ... 575660 files and directories currently installed.)
> Preparing to unpack .../python-cryptography_1.5.2-1_amd64.deb ...
> Unpacking python-cryptography (1.5.2-1) over (1.5.3-1) ...
> Setting up python-cryptography (1.5.2-1) ...
>
> $ ansible-playbook -vvv playbook.yml
> PLAYBOOK: playbook.yml
> *
> (...)
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'oldstable-updates'), (500,
> 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1,
> 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages python-cryptography depends on:
> ii  libc62.24-8
> ii  libssl1.11.1.0c-2
> ii  python   2.7.11-2
> pn  python-cffi-backend-api-max  
> pn  python-cffi-backend-api-min  
> ii  python-enum341.1.6-1
> ii  python-idna  2.1-1
> ii  python-ipaddress 1.0.17-1
> ii  python-pyasn10.1.9-2
> ii  python-setuptools28.7.1-1
> ii  python-six   1.10.0-3
> pn  python:any   
>
> python-cryptography recommends no packages.
>
> Versions of packages python-cryptography suggests:
> pn  python-cryptography-doc  
> ii  python-cryptography-vectors  1.5.3-1
>
> -- no debconf information
>


Bug#848065: python-cryptography: renders ansible unusable

2016-12-13 Thread Paulo Silva
Package: python-cryptography
Version: 1.5.3-1
Severity: critical
Justification: breaks unrelated software

Upgrading python-cryptography from 1.5.2-1 to 1.5.3-1 renders ansible unusable:

$ ansible-playbook -vvv playbook.yml
ERROR! Unexpected Exception: 'module' object has no attribute 'SSL_ST_INIT'
the full traceback was:

Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 103, in 
exit_code = cli.run()
  File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 159, in 
run
results = pbex.run()
  File 
"/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 
89, in run
self._tqm.load_callbacks()
  File 
"/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py", line 
177, in load_callbacks
for callback_plugin in callback_loader.all(class_only=True):
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py", line 
394, in all
self._module_cache[path] = self._load_module_source(name, path)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py", line 
324, in _load_module_source
module = imp.load_source(name, path, module_file)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py", 
line 32, in 
from ansible.module_utils.urls import open_url
  File "/usr/lib/python2.7/dist-packages/ansible/module_utils/urls.py", line 
150, in 
from urllib3.contrib.pyopenssl import ssl_wrap_socket
  File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 
47, in 
import OpenSSL.SSL
  File "/home/pjs/.local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 
8, in 
from OpenSSL import rand, crypto, SSL
  File "/home/pjs/.local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 124, 
in 
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Downgrading to python-cryptography to 1.5.2-1 fixes the issue:

$ sudo dpkg -i /var/cache/apt/archives/python-cryptography_1.5.2-1_amd64.deb 
dpkg: warning: downgrading python-cryptography from 1.5.3-1 to 1.5.2-1
(Reading database ... 575660 files and directories currently installed.)
Preparing to unpack .../python-cryptography_1.5.2-1_amd64.deb ...
Unpacking python-cryptography (1.5.2-1) over (1.5.3-1) ...
Setting up python-cryptography (1.5.2-1) ...

$ ansible-playbook -vvv playbook.yml
PLAYBOOK: playbook.yml *
(...)

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

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

Versions of packages python-cryptography depends on:
ii  libc62.24-8
ii  libssl1.11.1.0c-2
ii  python   2.7.11-2
pn  python-cffi-backend-api-max  
pn  python-cffi-backend-api-min  
ii  python-enum341.1.6-1
ii  python-idna  2.1-1
ii  python-ipaddress 1.0.17-1
ii  python-pyasn10.1.9-2
ii  python-setuptools28.7.1-1
ii  python-six   1.10.0-3
pn  python:any   

python-cryptography recommends no packages.

Versions of packages python-cryptography suggests:
pn  python-cryptography-doc  
ii  python-cryptography-vectors  1.5.3-1

-- no debconf information