Repository navigation
python310Packages.tensorflow: 2.11.1 -> 2.13.0 - #254362
GaetanLepage wants to merge 3 commits into
Conversation
346a628 to
1abb1fe
Compare
1abb1fe to
0969175
Compare
|
Currently, I am facing this error: |
|
I have no experience with these packages, so besides giving a 👍 for the changes (which currently look good) and run a |
0969175 to
d1aa725
Compare
natsukium
left a comment
There was a problem hiding this comment.
I found out that we need to disable the following system libs.
diff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nix
index 348f5197a9d6..816c96ccd2a0 100644
--- a/pkgs/development/python-modules/tensorflow/default.nix
+++ b/pkgs/development/python-modules/tensorflow/default.nix
@@ -261,22 +261,26 @@ let
# list of valid syslibs in
# https://github.com/tensorflow/tensorflow/blob/master/third_party/systemlibs/syslibs_configure.bzl
TF_SYSTEM_LIBS = lib.concatStringsSep "," ([
- "absl_py"
+ # ERROR: no such target '@absl_py//absl/flags:argparse_flags'
+ # "absl_py"
"astor_archive"
"astunparse_archive"
"boringssl"
# Not packaged in nixpkgs
- # "com_github_googleapis_googleapis"
# "com_github_googlecloudplatform_google_cloud_cpp"
- "com_google_protobuf"
+ # ERROR: no such target '@com_google_protobuf//:well_known_types_py_pb2_genproto'
+ # https://github.com/tensorflow/tensorflow/issues/60667
+ # "com_google_protobuf"
+ # ERROR: no such target '@com_google_absl//absl/functional:any_invocable
+ # "com_google_absl"
# Fails with the error: external/org_tensorflow/tensorflow/core/profiler/utils/tf_op_utils.cc:46:49: error: no matching function for call to 're2::RE2::FullMatch(absl::lts_2020_02_25::string_view&, re2::RE2&)'
# "com_googlesource_code_re2"
"curl"
@@ -284,7 +288,6 @@ let
"icu"
"jsoncpp_git"
"libjpeg_turbo"
- "lmdb"
"nasm"
"opt_einsum_archive"
"org_sqlite"f34ca9d to
1de8e4f
Compare
|
I still have the same |
1de8e4f to
bfd43cf
Compare
|
Here is the error I currently face: |
does removing flatbuffers from the system libs help? |
Ok, I tried removing |
|
I can build tensorflow on x86_64-linux with this patch. diff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nixdiff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nix
index 13f5379ff195..42e20927ad26 100644
--- a/pkgs/development/python-modules/tensorflow/default.nix
+++ b/pkgs/development/python-modules/tensorflow/default.nix
@@ -106,10 +106,10 @@ let
pythonEnv = python.withPackages (_:
[ # python deps needed during wheel build time (not runtime, see the buildPythonPackage part for that)
# This list can likely be shortened, but each trial takes multiple hours so won't bother for now.
- absl-py
+ # absl-py
astunparse
dill
- flatbuffers-python
+ # flatbuffers-python
gast
google-pasta
grpcio
@@ -215,7 +215,7 @@ let
# https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/tensorflow
nativeBuildInputs = [
- which pythonEnv cython perl protobuf-core
+ which pythonEnv cython perl # protobuf-core
] ++ lib.optional cudaSupport addOpenGLRunpath;
buildInputs = [
@@ -228,7 +228,7 @@ let
boringssl
curl
double-conversion
- flatbuffers-core
+ # flatbuffers-core
giflib
grpc
# Necessary to fix the "`GLIBCXX_3.4.30' not found" error
@@ -267,7 +267,7 @@ let
"boringssl"
# Not packaged in nixpkgs
# "com_github_googlecloudplatform_google_cloud_cpp"
- "com_github_grpc_grpc"
+ # "com_github_grpc_grpc"
# "com_google_protobuf"
# ERROR: no such target '@com_google_protobuf//:well_known_types_py_pb2_genproto'
# https://github.com/tensorflow/tensorflow/issues/60667
@@ -280,7 +280,7 @@ let
"cython"
"dill_archive"
"double_conversion"
- "flatbuffers"
+ # "flatbuffers"
"functools32_archive"
"gast_archive"
"gif"
@@ -310,7 +310,7 @@ let
# This is needed for the Nix-provided protobuf dependency to work,
# as otherwise the rule `link_proto_files` tries to create the links
# to `/usr/include/...` which results in build failures.
- PROTOBUF_INCLUDE_PATH = "${protobuf-core}/include";
+ # PROTOBUF_INCLUDE_PATH = "${protobuf-core}/include";
PYTHON_BIN_PATH = pythonEnv.interpreter;
@@ -399,7 +399,7 @@ let
sha256 = {
x86_64-linux = if cudaSupport
then ""
- else "sha256-4SAJ59bJQEjgKdDKlhOclxRIQbW2ITTPYNBbrzbDosk=";
+ else "sha256-aTqHZRNlNQv4THPO81aerHvTjYqTDT87aj2WLIyMQVw=";
aarch64-linux = "";
x86_64-darwin = "";
aarch64-darwin = "";However, we need more investigation to enable cudaSupport. |
bfd43cf to
d3c2730
Compare
d3c2730 to
0ee6d59
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
FYI, if disabling system packages is an option, this is how I got TF 2.13.0 to compile: bcc36f9 Maybe it helps with existing build issues. Didn't create a PR so far since I'm working on re-enabling system packages for the build. |
|
on aarch64-darwin I think this issue is related, but I'm not sure how to fix it. |
AFAIK, TF 2.13.0 actually uses an older version of BTW, I got it working with system |
|
Closing: the update effort is being continued in #255998 |
Description of changes
This is an attempt at updating
tensorflow(currently broken and vulnerable) to the latest version.Changelog: https://github.com/tensorflow/tensorflow/releases/tag/v2.13.0
This PR also updates
tensorboardandtensorboard-data-server.cc @abbradar
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)