Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662176 - sci-libs/tensorflow-1.9.0_rc1 - Build fails while creating Python API: "TypeError: argument of type 'NoneType' is not iterable"
Summary: sci-libs/tensorflow-1.9.0_rc1 - Build fails while creating Python API: "Type...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-07-26 11:28 UTC by Bas Weelinck
Modified: 2018-08-09 16:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the NoneType error which can cause the ebuild to fail. (0001-fix-nonetype-error.patch,1.85 KB, patch)
2018-07-26 11:28 UTC, Bas Weelinck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Weelinck 2018-07-26 11:28:36 UTC
Created attachment 541104 [details, diff]
Fixes the NoneType error which can cause the ebuild to fail.

This bug was actually fixed in TensorFlow 1.9.0-rc2. I was a bit surprised to see this ebuild bumped down back to a pre-rc2 source tree.

However, let's get to the point: Building this version of TensorFlow can fail with the error described in this bug report upstream:
https://github.com/tensorflow/tensorflow/issues/20233

I quote:
"/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc1/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 182, in get_api_init_text
    package not in module.__name__):
TypeError: argument of type 'NoneType' is not iterable
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 3202.457s, Critical Path: 83.98s
INFO: 4901 processes, local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Which is essentially the error I got when trying to compile the 1.9.0 ebuild.

This can be fixed by applying the patch I've attached, which is the commit taken from the TensorFlow master which fixes this bug.

I added this commit to my user patches and the error went away.
Comment 1 picnic.sun 2018-08-05 14:41:15 UTC
I have this error too.
Comment 2 Jason Zaman gentoo-dev 2018-08-09 16:22:14 UTC
This should be fixed in tensorflow-1.10.0