Closed CMCDragonkai closed 5 years ago
This problem appears to be related (in the ordering of buildInputs): https://github.com/NixOS/nixpkgs/issues/38369#issuecomment-379935922
Both are Python related!
This isn't really a Nix problem, but a problem with upstream Python packages that have a resource/naming conflict. Should really be solved in the Python ecosystem. But we should report this on the manual about this edge case.
I had the same issue after installing it alone: nix-env -i awscli
.
It turned out that I had PYTHONPATH
set (and it was pointing to a site-packages dir for python3).
Issue description
It appears that
awscli
is not working when in the same shell as Keras.Steps to reproduce
Once you're in, run
aws s3
.It reports:
But if you do this instead:
It ends up working! However I fear that this would make Keras fail because it would then find the python 2.7 PyYAML instead of the Python 3 YAML.
It's because of the PYTHONPATH order.
I think this behaviour is really unexpected, can these dependencies be made more isolated? Also is this an aspect of nix-shell, and would not be something happens if you were to do nix-env?
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the results.