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
Creating a python env containing dm-haiku and ml-collections causes conflicts in site-packages/docs/conf.py.
Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p 'python3.withPackages(ps: with ps; [ml-collections dm-haiku])'
The following error occurs.
error: collision between `/nix/store/qf6dgxfvz52bwg5nr8k7if1bsn2s3hsm-python3.10-dm-haiku-0.0.9/lib/python3.10/site-packages/docs/conf.py' and `/nix/store/n50rsvnzckm2vmqr6hrwpb6v4w17k8sz-python3.10-ml-collections-0.1.1/lib/python3.10/site-packages/docs/conf.py'
Expected behavior
get into nix-shell
Screenshots
Additional context
Looking into the setup.py of these two packages, I found that they use find_namespace_packages() instead of find_packages(), so that the source "docs/" is (unintentionally?) included in the "site-packages".
Note that there are 1178 python3 libraries in my nix store, although there are duplicates, and there are the only two that included docs in the site-packages.
I checked with these commands. echo /nix/store/*python3*/lib/python3*/site-packages | xargs -n 1 | wc -l fd conf.py /nix/store/*python3*/lib/python3*/site-packages/docs
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Describe the bug
Creating a python env containing
dm-haiku
andml-collections
causes conflicts insite-packages/docs/conf.py
.Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p 'python3.withPackages(ps: with ps; [ml-collections dm-haiku])'
Expected behavior
get into nix-shell
Screenshots
Additional context
Looking into the setup.py of these two packages, I found that they use
find_namespace_packages()
instead offind_packages()
, so that the source "docs/" is (unintentionally?) included in the "site-packages".https://github.com/deepmind/dm-haiku/blob/4b0401225221c2fba092903edfab15fc6e102642/setup.py#L49
https://github.com/google/ml_collections/blob/5cddb7e6dec24acf0f7e1d971fdd94422bd1065d/setup.py#L40
Note that there are 1178 python3 libraries in my nix store, although there are duplicates, and there are the only two that included docs in the site-packages.
I checked with these commands.
echo /nix/store/*python3*/lib/python3*/site-packages | xargs -n 1 | wc -l
fd conf.py /nix/store/*python3*/lib/python3*/site-packages/docs
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: