Skip to content
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

Error encountered when verifying tensorflow on Rpi 4B #820

Closed
TCIII opened this issue Mar 22, 2021 · 2 comments
Closed

Error encountered when verifying tensorflow on Rpi 4B #820

TCIII opened this issue Mar 22, 2021 · 2 comments

Comments

@TCIII
Copy link
Contributor

TCIII commented Mar 22, 2021

SBC: Rpi 4B 4GB
OS: Buster Desktop
DC: v 4.1. from Master

I have run into a problem installing tensorflow during the installation of DC dependencies/modules on an Rpi 4B.
When I installed DC on a Rpi 3B+ a couple of weeks ago I had no problem installing the DC support software (dependencies/modules).
However I am installing the DC support software on a Rpi 4B and have received this error when verifying the tensorflow installation:

"from tensorflow.core.framework import function_pb2
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/core/framework/function_pb2.py", line 7, in
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'"

I have verified that the "protobuf" module has been installed:

"Requirement already satisfied: setuptools in /home/pi/env/lib/python3.7/site-packages (from protobuf) (54.1.2)
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf) (1.12.0)"

However, it looks like the import of tensorflow is looking for a "google.protobuf" module that has not been installed yet.

I have also found that the latest version of numpy (pip install numpy --upgrade) 1.20.1 does not work with tensorflow 2.3.1 for some reason.
Numpy must be greater than 1.15.1 but less than 1.19.1. for tensorflow 2.3.1.

@DocGarbanzo
Copy link
Contributor

@TCIII - can you check you still have these problems using master?

@TCIII
Copy link
Contributor Author

TCIII commented Jul 11, 2021

I no longer have an issue with tensorflow when using DC 4.2.1 on my 4B.

@TCIII TCIII closed this as completed Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants