Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

TypeError: parse_requirements() missing 1 required keyword argument: 'session' #72

Closed
avanov opened this issue Jan 13, 2015 · 2 comments

Comments

@avanov
Copy link

avanov commented Jan 13, 2015

Hello!

caniusepython3==2.2.0 and pip 6.0.6

Traceback (most recent call last):
  File "/vagrant/project/tests/py3_compatibility_test.py", line 11, in test_dependencies
    './project/configure/requirements.txt',
  File "/home/vagrant/pyenv/versions/latest-2/lib/python2.7/site-packages/caniusepython3/__init__.py", line 41, in check
    dependencies = main.projects_from_requirements(requirements_paths)
  File "/home/vagrant/pyenv/versions/latest-2/lib/python2.7/site-packages/caniusepython3/__main__.py", line 37, in projects_from_requirements
    for req in reqs:
  File "/home/vagrant/pyenv/versions/latest-2/lib/python2.7/site-packages/pip/req/req_file.py", line 19, in parse_requirements
    "parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'
@brettcannon
Copy link
Owner

Thanks for the report. Unfortunately Travis uses pip 1.5.6 still so I didn't notice the breakage introduced by pip 6.

It looks like parse_requirements() in pip 1.5.6 can take a session argument but it just isn't required, so passing in an instance of PipSession just like in pip 1.5.6 should fix the problem.

At worst I will have a fix out on Friday.

@avanov
Copy link
Author

avanov commented Jan 13, 2015

Thanks for the quick reply. Looking forward to it.

evilaliv3 added a commit to globaleaks/GlobaLeaks that referenced this issue Feb 9, 2015
evilaliv3 added a commit to globaleaks/GlobaLeaks that referenced this issue Feb 9, 2015
nathanleiby added a commit to Clever/kayvee-python that referenced this issue May 7, 2015
nathanleiby added a commit to Clever/kayvee-python that referenced this issue May 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants