Open heimalne opened 1 month ago
Maybe related to https://github.com/nix-community/poetry2nix/issues/1616 discussing how to separate build (i think poetry-core needs setuptools 70) from runtime dependencies.
I'm pretty sure the setuptools being used comes from nixpkgs.
Same issue here as well, trying to downgrade setuptools < 70.0.0:
Attempting uninstall: setuptools
Found existing installation: setuptools 70.0.0.post0
Not uninstalling setuptools at /nix/store/niacps3c0qx734l2sw9fgxl5gjm365xs-python3.11-setuptools-70.0.0/lib/python3.11/site-packages, outside environment /home/david/Dev/python/ann-experiments/venv
Can't uninstall 'setuptools'. No files were found to uninstall.
But it gets blocked by nix...
Quite often the setup tools incompatibility is minor and a quick patch to the package wanting a setup tools < 70 is all that is needed. Sometimes it's an entirely imaginary upper bound, and all you need is to patch it. (Not saying that's the case for torch though)
This is somewhat common in the python ecosystem, where the upper bounds need to be defined on release and can't be updated later on
Quite often the setup tools incompatibility is minor and a quick patch to the package wanting a setup tools < 70 is all that is needed. Sometimes it's an entirely imaginary upper bound, and all you need is to patch it. (Not saying that's the case for torch though)
This is somewhat common in the python ecosystem, where the upper bounds need to be defined on release and can't be updated later on
It’s requesting an import that isn’t there in setuptools 70.x. There is no version constraint.
I have an older
torch==1.10.1
package that needs an oldersetuptools<=70
version due to breaking changes.With
setuptools==70.0.0
i get the following error message, which isn't NixOS or Mac related (See https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15863#issuecomment-2125026282):Describe the issue
However, pinning an older
setuptools = { version = "<70" }
inpyproject.toml
andpoetry.lock
doesn't download that version. Apparently, eithernixpkgs
orpoetry2nix
overrides and sneaks in a newer70.0.0.post0
, which then later leads to an error withnix build
:How would you debug this and override the setuptools version that lands into the poetry2nix
venv
?Overriding the Nixpkgs
python
packages doesn't seem to work and overriding poetry2nix package set doesn't as well:Additional context
pyproject.toml
: