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
python37Packages.tensorflow: 1.15.2 Fix #96273
Conversation
Maybe we should consider removing Tensorflow 1? It seems like even keeping Tensorflow 2 working is quite a burden. |
pkgs/top-level/python-packages.nix
Outdated
@@ -5095,6 +5095,8 @@ in { | |||
else | |||
callPackage ../development/python-modules/numpy { }; | |||
|
|||
numpy_1_18_5 = callPackage ../development/python-modules/numpy/1.18.5.nix { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon breaks the build.
numpy_1_18_5 = callPackage ../development/python-modules/numpy/1.18.5.nix { } | |
numpy_1_18_5 = callPackage ../development/python-modules/numpy/1.18.5.nix { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having another version of numpy is not an option.
In my opinion this expression needs to be removed. If you or anyone else needs older versions around, then you need to maintain them yourselves elsewhere.
That will likely need to be the path we go. One option off the top of my head would be to have a top_level attr, then apply an overlay so that there's valid python package sets for those packages:
however, this will likely lead to confusion as picking packages between |
Can you leave the breaking of compatibility (i.e. removing TF1) after 20.09 is released. |
The build has been broken for ~1.5 month, so I am not sure what value providing the Tensorflow 1 derivation as-is has (I propose to mark it broken now, see #96288 ). Also NixOS 20.03 also has Tensorflow 1.15.2 and it builds succesfully: https://hydra.nixos.org/build/125031248 So people who need it, but do not want to maintain their own Tensorflow 1 derivation can always compose a Python environment from release-20.03. |
I have tried to move numpy override inside tensorflow itself. I hope this will resolve this concern. |
The issue is that if somebody uses the tensorflow and numpy derivations, that two versions of numpy end up in Python's path. Python does not have versioned imports. |
Like @danieldk said. This is simply not going to work and we need to remove 1.15. |
ok. |
Motivation for this change
Fixing Broken python37Packages.tensorflow: 1.15.2 since
377324c
As per tensorflow/tensorflow#41061 (comment)
Numpy < 1.19 should fix the issue
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)