base0
Posts: 6
Joined: Thu Jul 18, 2019 1:52 am

cannot build tensorflow from source

Fri Jul 19, 2019 2:47 pm

I am using Raspberry Pi 3 B+. The operating system is Raspbian 10. I installed docker and follow the instruction for building tensorflow from source https://www.tensorflow.org/install/source_rpi

Code: Select all

git clone https://github.com/tensorflow/tensorflow.git

cd tensorflow

git checkout r1.9

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 got the following error.

Code: Select all

Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate
The command '/bin/sh -c /install/install_deb_packages.sh' returned a non-zero code: 100
ERROR: docker build failed. Dockerfile is at /home/pi/tensorflow/tensorflow/tools/ci_build/Dockerfile.pi-python3

User avatar
rpdom
Posts: 14710
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: cannot build tensorflow from source

Fri Jul 19, 2019 3:33 pm

It should be noted that ffmpeg is available in the current Raspbian build, but as the compilation is taking place inside a Docker container it might be worth creating an issue on the tensorflow github page.

I see they say they support all Pi models up to Pi 3 and Raspbian "9 and above" but I'm not sure if they've been able to test it with Buster (10) yet..

base0
Posts: 6
Joined: Thu Jul 18, 2019 1:52 am

Re: cannot build tensorflow from source

Fri Jul 19, 2019 11:21 pm

Thank you. I posted the issue in TensorFlow github. https://github.com/tensorflow/tensorflow/issues/30891

Return to “General discussion”