alexgkendall / caffe-segnet

Implementation of SegNet: A Deep Convolutional Encoder-Decoder Architecture for Semantic Pixel-Wise Labelling
http://mi.eng.cam.ac.uk/projects/segnet/
Other
1.08k stars 452 forks source link

ImportError: No module named google.protobuf.internal #115

Closed saviogeorge closed 7 years ago

saviogeorge commented 7 years ago

I tried to to test the Segnet using the tutorial. However i end up in this error even though i have installed the google.protobuf.

The environment variables required were also set in the .bashrc file and we also tried making changes to the makefile.config screenshot at 2017-06-19 13 52 55

saviogeorge commented 7 years ago

the protobuf version i use is 2.6.2 should i upgrade it 3 or later

saviogeorge commented 7 years ago

Issue solved

BigMonkey1990 commented 7 years ago

how did you solve the problem, can you give us some detail? Thank you!

saviogeorge commented 7 years ago

Yes Sure why not. The reason was protobuf was not installed and Sudo pip install protobuf should fix the error.

However for me it was a little more complicated because I was not able to install the protobuf because of a different reason. The reason my system was making use of a proxy network and and my login password had special characters in it. The following links will give a better idea on this https://github.com/pypa/pip/issues/3267 https://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/ https://www.cyberciti.biz/faq/linux-unix-bsd-appleosx-unicode-commandline-lookup/

So either you can encode your password using some commands such unum or else it is pretty straightforward change the password and avoid special characters.

well this resolved the problem and I was able to install the protobuf. Note: For a better understanding please have a look at the attachment The error that you get when you try to install using pip command (When your password has some special characters pip error proxy issue )