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.

Pipenv is failing to install packages, due to an unexpected keyword argument 'absorb' in patched

See original GitHub issue
Expected result

Pipenv 11.3.2 can install stuff.

Actual result
Locking [dev-packages] dependencies…
   has_changed, best_matches = self._resolve_one_round()
  File "/tmp/tox/dj1.11-test-linux-db-sqlite-search-elastic/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 "/tmp/tox/dj1.11-test-linux-db-sqlite-search-elastic/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 297, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/tmp/tox/dj1.11-test-linux-db-sqlite-search-elastic/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 "/tmp/tox/dj1.11-test-linux-db-sqlite-search-elastic/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 "/tmp/tox/dj1.11-test-linux-db-sqlite-search-elastic/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'
Install packages

Django==2.0.3,django-haystack==2.8.0,django-haystack-elasticsearch==0.1.0,elasticsearch==5.5.2,pipenv==11.3.2,pytz==2018.3,urllib3==1.22,virtualenv==15.1.0,virtualenv-clone==0.3.0

Steps to replicate

pipenv install

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
benatkincommented, Jan 10, 2019

if you’re having trouble with this in 2019, upgrade pipenv to the latest version, and be sure to do it outside of a pipenv shell - I hit both this and https://github.com/pypa/pipenv/issues/2871 The three steps I needed to take:

  1. exit to exit out of the pipenv shell I was in
  2. pip install pipenv -U to upgrade pipenv
  3. pipenv shell to start a new shell

Now pipenv install should run without errors!

4reactions
LegoStormtrooprcommented, Mar 11, 2018

@kennethreitz Thanks again for being so responsive. I just want to say thanks for all of your work with in python community, pipenv is an amazing product. Its such an advancement on what was around before, and in such a short time that a few hiccups are bound to happen.

Thanks again for building this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix locking failed in pipenv? - Stack Overflow
It seems like a library is requiring a version >= importlib-metadata 2.0 . When I pinned the following dependencies it didn't work at...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment. Uninstall all existing ......
Read more >
snowflake-connector-python - PyPI
This package includes the Snowflake Connector for Python, which conforms ... Fixed an issue bug where _get_query_status failed if there was a network...
Read more >
Pipenv: promises a lot, delivers very little | Chris Warrick
It lacks support for splitting packages between production and development (as Pipenv and Poetry do). This means that pip freeze and pip install...
Read more >
Index of Portage & Programming - Gentoo Forums
Page:1 · "Glib causing related packages to fail build? ... "www-client/microsoft-edge-106.0.1370.34 install fails[fixed]" Page:1 · "Pacakge equivalent to ...
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