pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Lock Fails as Part of Install, Succeeds with Skipping Lock then Locking

Open CynthiaFeeney opened this issue 1 year ago • 3 comments

Issue description

pipenv install fails but pipenv install --skip-lock then pipenv lock succeeds. Attempts to reproduce this bug suggest that the issue might arise from installing categories that share dependencies.

Expected result

pipenv install succeeds and there is no difference in behavior for the two methods.

Actual result

pipenv install fails but pipenv install --skip-lock then pipenv lock succeeds.

Steps to replicate

Download the following files and remove the txt extension required to upload to GitHub: fail_Pipfile.lock.txt pass_Pipfile.lock.txt Pipfile.txt

In the directory with the Pipfile run pipenv install --categories "packages,torch_cpu". This should fail and produce a Pipfile.lock similar to the provided fail_Pipfile.lock. Run pipenv --rm to remove the failed environment and delete or rename the produced Pipfile.lock.

Again in the directory with the Pipfile, run pipenv install --categories "packages,torch_cpu" --skip-lock. This should succeed. Then run pipenv lock which should succeed and produce a Pipfile.lock similar to pass_Pipfile.lock.


$ pipenv --support support.txt

CynthiaFeeney avatar Feb 29 '24 21:02 CynthiaFeeney

Should be re-checked against: https://github.com/pypa/pipenv/pull/6282

matteius avatar Oct 26 '24 03:10 matteius

It happens more often now

alumni avatar Nov 06 '24 12:11 alumni

I believe this should not be an issue on 2026.0.0

matteius avatar Dec 10 '25 14:12 matteius