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

pip 20.3b1: TypeError: make_requirement_preparer() got an unexpected keyword argument 'wheel_download_dir' #1228

Closed
JulienPalard opened this issue Nov 17, 2020 · 8 comments
Labels
bug Something is not working

Comments

@JulienPalard
Copy link

Environment Versions

  1. OS: Debian Bullseye
  2. Python version: cpython 3.9.0, compiled myself.
  3. pip version: 20.3b1
  4. pip-tools version: 5.3.1

Steps to replicate

python3.9 -m venv .venv; source .venv/bin/activate
echo jedi > requirements-dev.in
pip install --upgrade --pre pip wheel setuptools pip-tools
pip-compile requirements-dev.in

Note that it does happen with jedi but not with black (had not tested other packages).

Result

  File "/tmp/.venv/bin/pip-compile", line 8, in <module>
    sys.exit(cli())
  File "/tmp/.venv/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmp/.venv/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmp/.venv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmp/.venv/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmp/.venv/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/scripts/compile.py", line 458, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/resolver.py", line 173, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/resolver.py", line 278, in _resolve_one_round
    their_constraints.extend(self._iter_dependencies(best_match))
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/resolver.py", line 388, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/repositories/local.py", line 75, in get_dependencies
    return self.repository.get_dependencies(ireq)
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/repositories/pypi.py", line 231, in get_dependencies
    self._dependencies_cache[ireq] = self.resolve_reqs(
  File "/tmp/.venv/lib/python3.9/site-packages/piptools/repositories/pypi.py", line 155, in resolve_reqs
    preparer = self.command.make_requirement_preparer(
TypeError: make_requirement_preparer() got an unexpected keyword argument 'wheel_download_dir'
/home/mdk/.local/lib/python3.9/tempfile.py:817: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpawdrn2ytsource'>
  _warnings.warn(warn_message, ResourceWarning)
/home/mdk/.local/lib/python3.9/tempfile.py:817: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmp3sv7im0lbuild'>
  _warnings.warn(warn_message, ResourceWarning)
/home/mdk/.local/lib/python3.9/tempfile.py:817: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmps3_jugijsource'>
  _warnings.warn(warn_message, ResourceWarning)
/home/mdk/.local/lib/python3.9/tempfile.py:817: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpfnqnztwpbuild'>
  _warnings.warn(warn_message, ResourceWarning)
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.0.0.13', 50038), raddr=('151.101.192.223', 443)>
@JulienPalard JulienPalard changed the title TypeError: make_requirement_preparer() got an unexpected keyword argument 'wheel_download_dir' pip 20.3b1: TypeError: make_requirement_preparer() got an unexpected keyword argument 'wheel_download_dir' Nov 17, 2020
@atugushev
Copy link
Member

Thanks, @JulienPalard for the issue! pip-20.3 support is on the way. See #1216.

@atugushev atugushev added the bug Something is not working label Nov 20, 2020
dirn added a commit to PyGotham/awards-2020 that referenced this issue Dec 17, 2020
The [pip-tools] [pre-commit] hook is being updated because the version
being used [runs into issues][issue] with older versions of pip.

[issue]: jazzband/pip-tools#1228
[pip-tools]: https://pypi.org/p/pip-tools
[pre-commit]: https://pre-commit.com
dirn added a commit to PyGotham/awards-2020 that referenced this issue Dec 18, 2020
The [pip-tools] [pre-commit] hook is being updated because the version
being used [runs into issues][issue] with older versions of pip.

[issue]: jazzband/pip-tools#1228
[pip-tools]: https://pypi.org/p/pip-tools
[pre-commit]: https://pre-commit.com
@zhangchi1
Copy link

It seems like pip==21.1.2 has the same issue? Not sure if we have another open ticket for this?

@atugushev
Copy link
Member

atugushev commented Jun 12, 2021

@zhangchi1 can't reproduce locally. Did you use the latest version of pip-tools?

@sergey-zakharov
Copy link

only pip-tools 5.4.0+ supports pip 20.3+
In my case update pip-tools-6.2.0 with pip-21.1.3 solved a problem

@Evergreenies
Copy link

@sergey-zakharov I have the same issue.
Does anybody found any solution?

@zhangchi1
Copy link

Are you using pip= 21.1.2? Maybe try pip upgrade to pip=21.1.3 or above? > @sergey-zakharov I have the same issue.

Does anybody found any solution?

@Evergreenies
Copy link

Using pip==21.2.4 and pip-tools==6.2.0.
I also tried, pip==21.2.3 with pip-tools==5.5.0.

@DOsinga
Copy link

DOsinga commented Sep 12, 2021

@Evergreenies pip==21.2.4 and pip-tools==6.2.0 worked for me ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

6 participants