FS#57923 - [python-pipenv] [python-requests] cryptography>=1.3.4 distribution was not found

Attached to Project: Community Packages
Opened by oneup40 (oneup40) - Friday, 23 March 2018, 03:47 GMT
Last edited by Morten Linderud (Foxboron) - Saturday, 07 April 2018, 14:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: pipenv2 immediately exits with an error when I try to run it:

Traceback (most recent call last):
File "/usr/bin/pipenv2", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cryptography>=1.3.4' distribution was not found and is required by requests

Additional info:
* python2-pipenv version: 11.9.0-1

Steps to reproduce:

Install python2-pipenv. Execute pipenv2 --help. It immediately exits with the error pasted above.

Other notes:
This specific message goes away if I install python2-cryptography. Then the last line of the error changes to:

pkg_resources.DistributionNotFound: The 'pyOpenSSL>=0.14' distribution was not found and is required by requests

After also installing python2-pyopenssl, pipenv2 works as normal.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Saturday, 07 April 2018, 14:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 11.9.0-3
Comment by Eli Schwartz (eschwartz) - Sunday, 25 March 2018, 15:44 GMT
  • Field changed: Summary ([python2-requests] cryptography>=1.3.4 distribution was not found → [python-pipenv] [python-requests] cryptography>=1.3.4 distribution was not found)
  • Task reassigned to Felix Yan (felixonmars), Morten Linderud (Foxboron)
This is partially due to the fact that requests optionally depends on
pyOpenSSL>=0.14
cryptography>=1.3.4
idna>=2.0.0

for the "security" extension to requests, and partially due to the fact that pipenv depends on
requests[security]
thereby having a hard dependency on those optional deps.
Comment by Felix Yan (felixonmars) - Sunday, 25 March 2018, 17:13 GMT
I guess the dependencies need to be added to the pipenv package. I'll update the optdepends field for requests later.

Loading...