Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat.get_session passes a tuple to pip where it should only pass the options group #56

Closed
techalchemy opened this issue Feb 26, 2020 · 0 comments · Fixed by #57
Closed
Labels
bug Something isn't working

Comments

@techalchemy
Copy link
Member

>>> pip_compat.get_session(install_cmd=cmd, options=cmd.cmd_opts)                                                                                                             
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/techalchemy/.virtualenvs/requirementslib-JzdulSRB/lib/python3.8/site-packages/pip_shims/compat.py", line 416, in get_session
    session = install_cmd._build_session(options)  # type: ignore
  File "/home/techalchemy/.virtualenvs/requirementslib-JzdulSRB/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 83, in _build_session
    assert not options.cache_dir or os.path.isabs(options.cache_dir)
AttributeError: 'OptionGroup' object has no attribute 'cache_dir'
@techalchemy techalchemy added the bug Something isn't working label Feb 26, 2020
techalchemy added a commit that referenced this issue Feb 26, 2020
- Fixes #56

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant