-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
This program requires version 3.3.0 of the Protocol Buffer runtime library #5711
Comments
Have you solved this problem? |
Unfortunately not... |
This problem seems not caused by caffe, since i used to run caffe on protoc 2.6.1 I got this problem after install tensorflow, ant not solved |
Hey, the problem is solved by uninstalling the protobuf (version 3.3) : 至于 这么干以后tensorflow会不会崩,今朝有酒今朝醉吧。 |
Uninstalling didn't work for me:
|
sudo pip install protobuf solves it for me |
This problem should be caused by the old version of lib installed by apt-get. Try to do |
What I did:
The warning changed a bit:
So instead of 2.6.1 I now have 3.1.0 installed. However protobuf does not seem to be satisfied. I was looking for 3.3.0 and found this. But I could not install it:
So.. still no protobuf 3.3.0... |
@thomy800 |
Well I did as you suggested. I installed from source, however it seems to be version 3.3.2. I am not sure, though.
|
@thomy800 Then the problem should be that the path where the lib is is not included in the Makefile.config. Follow these steps:
this will list the libprotoc.so.13 file existing in your computer.Ignore the one that in the path that built the source, I got this in my computer:
3.Try to make it again. |
|
@thomy800 I've never met the problem before. I guess it may be caused by the higher version of protobuf. Try to build the v3.3.0 version. There are steps that you can switch the version: May you need wait for another solution or google it if this help nothing. |
Well, I did so:
However, still the same error:
It really looked promising, but now it's getting annoying... |
Your tips led me in the wrong direction. If you check Caffe, it doesn't really need any protobuf version above |
pip install --user --upgrade protobuf==3.1.0.post1 |
Problem is that when building Caffe, the C++ version of google protobuff is 2.6.1 with this command: P/S: I did as mkaraki48 but not able to fix this error. |
I have the same problem. I installed caffe, it was working fine but a day, due to some installations i go an error
|
I think this is because tensorflow ask you to install protobuf 3.3.0, but caffe uses protobuf 2.x (both 2.5.0 or 2.6.1 are okay). |
It worked for me after installing "libprotobuf-dev": |
The problem may cause by the version installed by 'sudo get-apt' is not as same as the 'pip install' version. |
so this problem not solved yet? still don't know how to fix it |
@Spbohai I repaired this problem according to @yungs2017(there is a small typo on the 5th line).
|
@feipan664 Thanks a lot, I solved by: |
yep, I have the same trouble.
I use gdb to get the backtrace, and it shows:
In another machine with libprotoc 2.6, it works well. I want to use caffe and tensorboard (required proto3). So what can I do? |
I followed what @hieudt-pixelz said and it totally works! Thanks!! |
@ShangxuanWu 你好,你按照hieudt-pixelz做的有效,是指tensorflow和caffe都可以正常运行吗?还是只是解决了caffe这个问题,tensorflow还能正常运行吗?谢谢! |
I'm having a very similar issue in this triangle between caffe, tensorflow and python. But it is currently saying that version 3.5 is required and that 3.1 is installed. I tried all of the above but it didn't work. When I do proto --version it says 3.5.1. And on pip I installed 3.5.2. I tried to downgrade without that it affected this message of 3.1. |
Thanks. @hieudt-pixelz @mkaraki48 It works. However, for tensorflow 1.8.0, it needs protobuf>=3.4.0. So i have to downgrade the tensorflow or other ways. Anyway, good answer. |
Can caffe support protobuf 3.6 version? |
Hi, I have written a simple python script which has only one line "import tensorflow as tf". I am calling the same script from my c++ code (Using Python.h header to call python script from c++ code). I am getting following error related to libprotobuf. [libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.5.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "external/protobuf_archive/src/google/protobuf/any.pb.cc".) I have tried following things but still it didn't solve my problem.
For your information, I am using Nvidia Jetson TX2 and I have installed tensorflow using command "pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp33 tensorflow-gpu". Please help me solve the above issue. Thanks in advance. |
Hi all, When I run the following script: I get the same error as you: I uninstall protobuf and reinstalled. After installation I can see that my version is 3.10.0: However, when I run my script I still get the same error. Any idea to solve this? Regards |
I have met the same question. I solved it by uninstall protobuf, and then install it by sh-4.2$ conda install protobuf
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.4.10
latest version: 4.9.1
Please update conda by running
$ conda update -n base conda
## Package Plan ##
environment location: /home/xxxx/anaconda3/envs/tf_py
added / updated specs:
- protobuf
The following packages will be downloaded:
package | build
---------------------------|-----------------
protobuf-3.4.0 | py36_0 475 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
libprotobuf-3.4.0 | 0 4.3 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
six-1.10.0 | py36_0 19 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
------------------------------------------------------------
Total: 4.8 MB
The following NEW packages will be INSTALLED:
libprotobuf: 3.4.0-0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
protobuf: 3.4.0-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
six: 1.10.0-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
Proceed ([y]/n)? y
Downloading and Extracting Packages
protobuf 3.4.0: ############################################################################################################################################################ | 100%
libprotobuf 3.4.0: ######################################################################################################################################################### | 100%
six 1.10.0: ################################################################################################################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done |
Hi. I installed caffe as described on https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide. I set WITH_PYTHON_LAYER := 1. Caffe runs fine except when I am trying to load a python layer. It then complains:
I0621 13:38:52.346406 21139 layer_factory.hpp:77] Creating layer data
2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.3.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/descriptor.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.3.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "google/protobuf/descriptor.pb.cc".)
*** Aborted at 1498045132 (unix time) try "date -d @1498045132" if you are using GNU date ***
PC: @ 0x7f48153ec428 gsignal
*** SIGABRT (@0x3e800005293) received by PID 21139 (TID 0x7f4818061ac0) from PID 21139; stack trace: ***
@ 0x7f48153ec4b0 (unknown)
@ 0x7f48153ec428 gsignal
@ 0x7f48153ee02a abort
@ 0x7f481620084d __gnu_cxx::__verbose_terminate_handler()
@ 0x7f48161fe6b6 (unknown)
@ 0x7f48161fe701 std::terminate()
@ 0x7f48161fe919 __cxa_throw
@ 0x7f4816744647 google::protobuf::internal::LogMessage::Finish()
@ 0x7f481674487d google::protobuf::internal::VerifyVersion()
@ 0x7f47e177de34 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct::InitDefaultsImpl()
@ 0x7f4816744f75 google::protobuf::GoogleOnceInitImpl()
@ 0x7f47e1779475 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaults()
@ 0x7f47e17794a9 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptorsImpl()
@ 0x7f4816744f75 google::protobuf::GoogleOnceInitImpl()
@ 0x7f47e1779525 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors()
@ 0x7f4817ed26ba (unknown)
@ 0x7f4817ed27cb (unknown)
@ 0x7f4817ed78e2 (unknown)
@ 0x7f4817ed2564 (unknown)
@ 0x7f4817ed6da9 (unknown)
@ 0x7f48032abf09 (unknown)
@ 0x7f4817ed2564 (unknown)
@ 0x7f48032ac571 (unknown)
@ 0x7f48032abfa1 dlopen
@ 0x7f4815a7488d _PyImport_GetDynLoadFunc
@ 0x7f4815ae34be _PyImport_LoadDynamicModule
@ 0x7f4815ae4300 (unknown)
@ 0x7f4815ae45c8 (unknown)
@ 0x7f4815ae56db PyImport_ImportModuleLevel
@ 0x7f4815a5c698 (unknown)
@ 0x7f4815aa81e3 PyObject_Call
@ 0x7f4815b7e447 PyEval_CallObjectWithKeywords
./train.sh: line 1: 21139 Aborted
I investigated three possible packages:
1] pips protobuf: originally 2.6 was installed. I changed to 3.3.0, recompiled caffe, still the same problem
2] libprotobuf-dev: it claims to be libprotobuf10 amd64 3.1.0
3] protobuf-compiler: it claims to be 2.6.1-1.3, a web search suggested there is currently a version maximum of 3.1.0
Any advice is highly appreciated.
Cheers,
Thomy800
The text was updated successfully, but these errors were encountered: