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

pixi not installing explicit dependencies after irrelevant changes to pyproject/pixi.lock #2242

Open
2 tasks done
tfriedel opened this issue Oct 9, 2024 · 0 comments
Open
2 tasks done

Comments

@tfriedel
Copy link
Contributor

tfriedel commented Oct 9, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Sometimes, when a colleague changes the pyproject.toml / pixi.lock drastically just running "pixi install" is not creating the same pixi environment. I have observed that some packages are missing. E.g. just today pydantic was missing, even though it was an explicit dependency. In these situations I just delete .pixi and run "pixi install" again. This solves the problem. But I think there's a bug, because these packages shouldn't be missing.

I have exported two states of our pyproject.toml and pixi.lock here:
pixi_issue.tar.gz

How to reproduce the problem:

cp step1/* .
pixi install
pixi shell
python3 -c 'import pydantic' 

output: nothing

Then:

cp step2/* .
pixi install
pixi shell
python3 -c 'import pydantic' 

The output shouldn't show anything here either, but instead we see:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pydantic'

Note that in both pyproject.toml files we have pydantic = ">=2.4.2" as a pypi dependency.

This is with pixi 0.32.1

Issue description

Expected behavior

@tfriedel tfriedel changed the title pixi not installing explicit dependencies after irrelevant changes to pyproject/pixi.loc pixi not installing explicit dependencies after irrelevant changes to pyproject/pixi.lock Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant