tensorflow: Cannot build raspberry pi wheel for python 3.7
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
- OS Platform and Distribution: Ubuntu 18.04.3 LTS
- TensorFlow installed from (source or binary): source
- TensorFlow version: v2.1.0-rc1
I’m building using the docker image for a raspberry pi 3 build.
Describe the problem
I’m able to correctly build tensorflow-2.1.0rc1-cp35-none-linux_armv7l.whl
using:
CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.4" tensorflow/tools/ci_build/ci_build.sh PI-PYTHON3 tensorflow/tools/ci_build/pi/build_raspberry_pi.sh
I’m trying to do the same but with the python 3.7 docker images PI-PYTHON37
(tensorflow/tools/ci_build/Dockerfile.pi-python37
) but it fails with:
ERROR: /workspace/tensorflow/lite/python/interpreter_wrapper/BUILD:8:1: C++ compilation of rule '//tensorflow/lite/python/interpreter_wrapper:numpy' failed (Exit 1)
cc1plus: warning: command line option '-std=gnu11' is valid for C/ObjC but not for C++
In file included from bazel-out/armeabi-py2-opt/bin/external/local_config_python/python_include/Python.h:8:0,
from ./tensorflow/lite/python/interpreter_wrapper/numpy.h:49,
from tensorflow/lite/python/interpreter_wrapper/numpy.cc:17:
bazel-out/armeabi-py2-opt/bin/external/local_config_python/python_include/pyconfig.h:13:55: fatal error: arm-linux-gnueabihf/python3.5m/pyconfig.h: No such file or directory
# include <arm-linux-gnueabihf/python3.5m/pyconfig.h>
^
compilation terminated.
INFO: Elapsed time: 339.221s, Critical Path: 36.02s
INFO: 6204 processes: 6204 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Provide the exact sequence of commands / steps that you executed before running into the problem
cd tensorflow
git checkout v2.1.0-rc1
CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.4" tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 tensorflow/tools/ci_build/pi/build_raspberry_pi.sh
Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 17 (13 by maintainers)
PR is merged. You can build RPI3 PIP wheel for Python 3.7 as following.