missing requirement cryptography

Bug #1395121 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

icira@test-delete-later:~/python-congressclient$ openstack --help | grep congress
Traceback (most recent call last):
  File "/usr/local/bin/openstack", line 6, in <module>
    from openstackclient.shell import main
  File "/home/nicira/python-openstackclient/openstackclient/shell.py", line 29, in <module>
    from openstackclient.common import clientmanager
  File "/home/nicira/python-openstackclient/openstackclient/common/clientmanager.py", line 193, in <module>
    'openstack.cli.base',
  File "/home/nicira/python-openstackclient/openstackclient/common/clientmanager.py", line 164, in get_plugin_modules
    __import__(ep.module_name)
  File "/home/nicira/python-openstackclient/openstackclient/image/client.py", line 19, in <module>
    from glanceclient.v1 import client as gc_v1_client
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/__init__.py", line 16, in <module>
    from glanceclient.v1.client import Client # noqa
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/client.py", line 16, in <module>
    from glanceclient.common.http import HTTPClient
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 39, in <module>
    from glanceclient.common import https
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/https.py", line 19, in <module>
    import OpenSSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
    from OpenSSL._util import (
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 3, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding

Revision history for this message
Steve Martinelli (stevemar) wrote :

That's funny, we list python-glanceclient in OSC dependencies (https://github.com/openstack/python-openstackclient/blob/master/requirements.txt)

And glanceclient lists pyOpenSSL in it's requirements (https://github.com/openstack/python-glanceclient/blob/master/requirements.txt)

Lastly, pyOpenSSL requires the cryptography package: https://github.com/pyca/pyopenssl/blob/master/setup.py#L37

Revision history for this message
Steve Martinelli (stevemar) wrote :

Also, how was this being installed? And which versions of openstackclient, python-glanceclient, and pyOpenSSL are installed?

Revision history for this message
Ian Cordasco (icordasc) wrote :

Hi Aaron,

Could you please tell us how and from where you installed the openstackclient?

Changed in python-openstackclient:
status: New → Incomplete
Revision history for this message
Ian Cordasco (icordasc) wrote :

Could you run the following and let me know what happens as well:

python -c 'import cryptography; print(cryptography.__file__)'
python -c 'import cryptography.hazmat; print(cryptography.hazmat.__file__)'
python -c 'import cryptography.hazmat.bindings; print(cryptography.hazmat.bindings.__file__)'
python -c 'import cryptography.hazmat.bindings.openssl; print(cryptography.hazmat.bindings.openssl.__file__)'
python -c 'import cryptography.hazmat.bindings.openssl.binding; print(cryptography..hazmat.bindings.openssl.binding.__file__)'

If any of them fails, there's no need to try the rest.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Due to inactivity, and no reply back, this bug will be marked as invalid. If the problem occurs feel free to re-open or submit a new bug.

Changed in python-openstackclient:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.