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.

Any package requiring importlib-metadata breaks locking

See original GitHub issue

The most recent version of importlib-metadata is 2.0.0. This is the version that gets resolved when any package is installed that required importlib-metadata without an upper bound. For example: flake8.

The virtualenv library requires importlib-metadata < 2.0.

When project.get_environment() is called the dependencies for virtualenv are compared to the working set resolved for the Pipfile dependencies and a VersonConflict error is raised.

This is a very frustrating error because doing pipenv lock -v gives no indication of which package requires importlib-metadata < 2.0. Also inspecting pipenv graph gives no indication either.

A temporary fix would be to pin importlib-metadata == "1.7.0" in the Pipfile.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:46
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

35reactions
nicofuchsgcommented, Oct 1, 2020

With pip install -U pipenv was solved for me.

32reactions
scuerdacommented, Oct 14, 2020

The workaround of deleting the Pipfile.lock file and then re-running pipenv lock always seems to work but here is what I did for a more permanent fix.

  1. Destroy local pipenv virtualenv pipenv --rm
  2. Uninstall pipenv brew uninstall pipenv
  3. Upgrade virtualenv pip install -U virtualenv
  4. Reinstall pipenv pip install --user pipenv
  5. Recreate pipenv virtualenv pipenv install

Repeat runs of pipenv lock work as expected and do not re-trigger the conflict error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using importlib.metadata — Python 3.11.1 documentation
importlib_metadata is a library that provides access to the metadata of an installed Distribution Package, such as its entry points or its top-level...
Read more >
What Causes Brake Lock-Up - Les Schwab
There is a long list of reasons that one or all of the brakes on your vehicle might lock up. These can include...
Read more >
Sinking brake pedal/front brakes locking up on their own when ...
No Charging Required Car Jump Starter: https://amzn.to/2CthnUU 6. Battery Pack Car Jump Starter: http://amzn.to/2nrc6qR 7.
Read more >
Why Do Brakes Lock Up? - BuyBrakes
Locking brakes are most common when drum brakes are involved, but it can also happen with disc brakes. As with any mechanical system, ......
Read more >
What Causes Brakes to Lock Up? | Ira Subaru Danvers MA
Our service technicians will provide brake repair, including any necessary comprehensive fixes for the ABS system. If you have any questions for us,...
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