question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

11.1.8+ broke pipenv lock/install of --dev -e .

See original GitHub issue

Sorry I don’t have the time for the full template dance, but I woke up to a broken pipenv update and could pinpoint it to:

  • pipenv install --dev -e .
  • pipenv lock if the Pipfile contains -e .
  • starting with 11.1.8

This is what I get with latest pipenv on lock:

Locking [dev-packages] dependencies…
ate(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 275, in _iter_dependencies
    for dependency in self.repository.get_dependencies(ireq):
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 182, in get_dependencies
    'Please run "$ pipenv-resolver {0!r} --verbose" to debug.'.format(str(ireq.req))
ValueError: Your dependencies could not be resolved.
Please run "$ pipenv-resolver 'None' --verbose" to debug.

This is what I get with latest pipenv on pipenv install --dev -e . :

Installing -e .…
Obtaining file:///Users/hynek/tmp/t
Installing collected packages: t
  Found existing installation: t 1.0
    Uninstalling t-1.0:
      Successfully uninstalled t-1.0
  Running setup.py develop for t
Successfully installed t

Adding -e . to Pipfile's [dev-packages]…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
ate(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 275, in _iter_dependencies
    for dependency in self.repository.get_dependencies(ireq):
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 182, in get_dependencies
    'Please run "$ pipenv-resolver {0!r} --verbose" to debug.'.format(str(ireq.req))
ValueError: Your dependencies could not be resolved.
Please run "$ pipenv-resolver 'None' --verbose" to debug.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:101 (101 by maintainers)

github_iconTop GitHub Comments

1reaction
hynekcommented, Mar 10, 2018
$ pipenv lock
Locking [dev-packages] dependencies…
nged, best_matches = self._resolve_one_round()
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 297, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 171, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 206, in get_legacy_dependencies
    result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)
  File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/pip/req/req_set.py", line 699, in _prepare_file
    self.requires_python = check_dist_requires_python(dist, absorb=False)
TypeError: check_dist_requires_python() got an unexpected keyword argument 'absorb'

Seems like you missed some import?

1reaction
kennethreitzcommented, Mar 10, 2018

i was doing something dumb

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix locking failed in pipenv? - Stack Overflow
I'm using pipenv inside a docker container. I tried installing a package and ... Locking [dev-packages] dependencies… Building requirements.
Read more >
Python Development Workflow for Humans.
Give you insight into your dependency graph (e.g. $ pipenv graph ). Streamline development workflow by loading .env files. You can quickly play...
Read more >
pipenv Changelog - PyUp.io
Solving issue where ``pipenv check`` command has been broken in the published ... Use ``packages`` as contraints when locking ``dev-packages`` in Pipfile.
Read more >
Pipenv: promises a lot, delivers very little | Chris Warrick
Pipenv is a Python packaging tool that does one thing reasonably well. ... limitations and a break-neck development process.
Read more >
pipenv Documentation - Read the Docs
pipenv install --dev -e . $ cat Pipfile ... [dev-packages]. "e1839a8" = {path = ".", editable = true} ... Note: All sub-dependencies will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found