Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PatrickFeeney opened this issue Feb 29, 2024 · 0 comments
Labels
dev constraints Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@PatrickFeeney
Copy link

PatrickFeeney commented Feb 29, 2024

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
@matteius matteius added Type: Possible Bug This issue describes a possible bug in pipenv. dev constraints labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev constraints Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

2 participants