You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when I'm trying to use modified version of python (to reduce its size) certain packages (for example FastAPI) cause conflict:
patching script interpreter paths in /nix/store/v9y6bsc2z6ssfbp1hblhaxr5kcgfwl9z-python3.10-fastapi-0.75.1
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
pythonCatchConflictsPhase
Found duplicated packages in closure for dependency 'idna':
idna 3.3 (/nix/store/k8w0mk8psvki90ylplc2w7mr1anygs9j-python3.10-idna-3.3/lib/python3.10/site-packages)
idna 3.3 (/nix/store/gcdq1dxfh5fb8cif8p80kc0a86439pq2-python3.10-idna-3.3/lib/python3.10/site-packages)
Found duplicated packages in closure for dependency 'tomli':
tomli 2.0.1 (/nix/store/daba3lfs9fgba574pkz4x6llbdhsq93b-python3.10-tomli-2.0.1/lib/python3.10/site-packages)
tomli 2.0.1 (/nix/store/pacf7w1vfl17pjskwphgxk8612llh5bp-python3.10-tomli-2.0.1/lib/python3.10/site-packages)
Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.
When inspecting closures it looks like one of package of each pair depends on python that is unmodified (e.g. pkgs.python310) and the other depends on the modified version.
Also I wanted to make the bug reproducible, so I removed every dependency one by one and I arrived to FastAPI. Interestingly FastAPI doesn't depend on tomli:
fastapi 0.75.1 FastAPI framework, high performance, easy to learn, fast to code, ready for production
├── pydantic >=1.6.2,<1.7 || >1.7,<1.7.1 || >1.7.1,<1.7.2 || >1.7.2,<1.7.3 || >1.7.3,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0
│ └── typing-extensions >=3.7.4.3
└── starlette 0.17.1
└── anyio >=3.0.0,<4
├── idna >=2.8
└── sniffio >=1.1
If an unmodified version of python is used everything works fine.
I think I observed this happening after major revamp that also extended build overrides that happened a while ago, although that could be a coincidence.
Additional context
I think this is the smallest reproducible version with the issue. I used <nixpkgs> which I just updated to latest while reporting this issue.
Describe the issue
So when I'm trying to use modified version of python (to reduce its size) certain packages (for example FastAPI) cause conflict:
When inspecting closures it looks like one of package of each pair depends on python that is unmodified (e.g.
pkgs.python310
) and the other depends on the modified version.Also I wanted to make the bug reproducible, so I removed every dependency one by one and I arrived to
FastAPI
. InterestinglyFastAPI
doesn't depend ontomli
:If an unmodified version of python is used everything works fine.
I think I observed this happening after major revamp that also extended build overrides that happened a while ago, although that could be a coincidence.
Additional context
I think this is the smallest reproducible version with the issue. I used
<nixpkgs>
which I just updated to latest while reporting this issue.default.nix
pyproject.toml
poetry.lock
The text was updated successfully, but these errors were encountered: