Your message dated Thu, 14 Apr 2016 16:13:42 -0300
with message-id <[email protected]>
and subject line Re: Bug#821030: cryptography.hazmat.backends.default_backend:
'EntryPoint' object has no attribute 'resolve'
has caused the Debian Bug report #821030,
regarding cryptography.hazmat.backends.default_backend: 'EntryPoint' object has
no attribute 'resolve'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
821030: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821030
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ansible
Version: 2.0.1.0-2
Severity: normal
$ ansible-vault create foo.yml -vvv
Using /etc/ansible/ansible.cfg as config file
New Vault password:
Confirm New Vault password:
ERROR! Unexpected Exception: 'EntryPoint' object has no attribute 'resolve'
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible-vault", line 86, in <module>
sys.exit(cli.run())
File "/usr/lib/python2.7/dist-packages/ansible/cli/vault.py", line 120, in run
self.execute()
File "/usr/lib/python2.7/dist-packages/ansible/cli/__init__.py", line 114, in
execute
fn()
File "/usr/lib/python2.7/dist-packages/ansible/cli/vault.py", line 152, in
execute_create
self.editor.create_file(self.args[0])
File "/usr/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py",
line 344, in create_file
self._edit_file_helper(filename)
File "/usr/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py",
line 312, in _edit_file_helper
enc_data = self.vault.encrypt(tmpdata)
File "/usr/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py",
line 136, in encrypt
b_enc_data = this_cipher.encrypt(b_data, self.b_password)
File "/usr/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py",
line 625, in encrypt
key1, key2, iv = self.gen_key_initctr(password, salt)
File "/usr/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py",
line 604, in gen_key_initctr
backend = default_backend()
File
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/__init__.py",
line 35, in default_backend
_default_backend = MultiBackend(_available_backends())
File
"/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/__init__.py",
line 22, in _available_backends
"cryptography.backends"
AttributeError: 'EntryPoint' object has no attribute 'resolve'
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ansible depends on:
ii python-crypto 2.6.1-6+b1
ii python-httplib2 0.9.1+dfsg-1
ii python-jinja2 2.8-1
ii python-netaddr 0.7.18-1
ii python-paramiko 1.16.0-1
ii python-pkg-resources 20.3.1-1
ii python-yaml 3.11-3+b1
pn python:any <none>
Versions of packages ansible recommends:
ii python-selinux 2.4-3+b1
Versions of packages ansible suggests:
pn sshpass <none>
-- no debconf information
--
Antonio Terceiro <[email protected]>
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
On Thu, Apr 14, 2016 at 03:56:36PM -0300, Antonio Terceiro wrote:
> Control: reassign -1 python-cryptography
> Control: found -1 1.3.1-1
> Control: retitle -1 cryptography.hazmat.backends.default_backend:
> 'EntryPoint' object has no attribute 'resolve'
>
> Actually this seems to be an issue in python-cryptography. I can
> reproduce with this very short test case:
>
> $ python
> Python 2.7.11+ (default, Mar 30 2016, 21:00:42)
> [GCC 5.3.1 20160323] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from cryptography.hazmat.backends import default_backend
> >>> default_backend()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/__init__.py",
> line 35, in default_backend
> _default_backend = MultiBackend(_available_backends())
> File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/__init__.py",
> line 22, in _available_backends
> "cryptography.backends"
> AttributeError: 'EntryPoint' object has no attribute 'resolve'
I could not reproduce this on a clean chroot just after installing
python-cryptography. I also couldn't reproduce it with a clean user
account on my main system, nor with python3 in my regular user account.
so I figured out that I had an old ~/.local/lib/python2.7/ lying
around.
Sorry for the noise.
signature.asc
Description: PGP signature
--- End Message ---