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 install parsing wrong package name

See original GitHub issue

Issue description

After the latest patch for the incompatibility problem with pip 18.1, the pipenv parsing of the package name during installation no longer is working (it’s replacing . in the package name for a - and this leads to pip not finding the available versions).

This happens with pip 18.1 as well as 18.0.

Expected result

pipenv install zope.interface==4.5.0 should install from this package https://pypi.org/project/zope.interface/

Actual result

Instead it translates to zope-interface==4.5.0 and then it don’t find the package:

Could not find a version that satisfies the requirement zope-interface==4.5.0 (from versions: 4.4.0, 4.4.1, 4.4.2, 4.4.3)
No matching distribution found for zope-interface==4.5.0

Steps to replicate

create new virtualenv with latest pipenv version (2018.10.9) to see it break, and test it with the previews one (2018.7.1) where it’s still ok.

obs: I’m not sure if this is a bug in pip or pypi (not finding the correct version when replacing . with -), but since it started happening with the latest pipenv release then I believe it is actually related to pipenv.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:23
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

8reactions
xocasdashdashcommented, Oct 9, 2018

Another package is dogpile.cache (Related issue: https://github.com/pypa/pipenv/issues/2959)

7reactions
HAnthonyHoytcommented, Oct 11, 2018

This bug is actually adversely affecting me in a major way. I’ve had to update a ton of continuous integration jobs to reference the previous version to prevent this bug from failing all my deploys and deliveries. Please release a fix for this soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv WARNING: Invalid requirement, parse error at "'--extra-'"
I have a pipfile , and a pipfile.lock . I am deploying this repo to a remote Ubuntu server. When running this command:...
Read more >
Frequently Encountered Pipenv Problems
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 >
pipenv Documentation
This tutorial walks you through installing and using Python packages. It will show you how to install and use the necessary tools and...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
When you install a package with pipenv install , the Pipfile is ... Now let's look at some other error messages that populated...
Read more >
3. Resetting Database doesn't work at Section 3 with pipenv ...
(base) runycalmera@MacBook-Pro storefront % pipenv install ... ERROR: Couldn't install package: [Requirement(_name='asgiref', vcs=None, ...
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