jmccormac / pySceneNetRGBD

Scripts showing how to work with the SceneNetRGBD dataset
GNU General Public License v3.0
178 stars 46 forks source link

No module named 'google' Error #12

Closed raymond30031 closed 6 years ago

raymond30031 commented 6 years ago

Hello,

After I make, i have the scenenet_pb2 module, but when i try to run the read_protobuf.py i get:

jkuo@jkuo-pc:~/plr/pySceneNetRGBD$ python read_protobuf.py Traceback (most recent call last): File "read_protobuf.py", line 1, in import scenenet_pb2 as sn File "/home/jkuo/plr/pySceneNetRGBD/scenenet_pb2.py", line 6, in from google.protobuf import descriptor as _descriptor ModuleNotFoundError: No module named 'google'

I am currently googling on how to solve this, but would just like to ask here in case anyone has any inputs.

Thanks.

jmccormac commented 6 years ago

This looks like protobuf has not been installed. If you have installed it with pip3 as in the readme, then maybe the issue is that you are running with python2 by default when running python which hasn't had protobuf installed? Have you tried running with:

python3 read_protobuf.py
raymond30031 commented 6 years ago

Thanks for getting back to me. Turns out i had another version of libprotobuf.so.9 in /usr/lib/x86_64-linux-gnu/libprotobuf.so.9 and it was being exported to the path, so my protobuf3.5 in the conda environment did not get used. After removing it from PATH, python read_protobuf.py works.

jmccormac commented 6 years ago

Thank you very much for reporting the solution! It may help someone else as well.