colorization icon indicating copy to clipboard operation
colorization copied to clipboard

Protobuf version incompatibility

Open skeeph opened this issue 8 years ago • 4 comments

Hello. I've cloned this repo and compiled it according to instructions. But there is raised error with following text when I try to run a training.

[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.2.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.2.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 1489510280 (unix time) try "date -d @1489510280" if you are using GNU date *** PC: @ 0x7f06e52e5428 gsignal *** SIGABRT (@0x3e8000032fd) received by PID 13053 (TID 0x7f06e7ff4740) from PID 13053; stack trace: *** @ 0x7f06e52e54b0 (unknown) @ 0x7f06e52e5428 gsignal @ 0x7f06e52e702a abort @ 0x7f06e60f884d __gnu_cxx::__verbose_terminate_handler() @ 0x7f06e60f66b6 (unknown) @ 0x7f06e60f6701 std::terminate() @ 0x7f06e60f6919 __cxa_throw @ 0x7f06de5d1647 google::protobuf::internal::LogMessage::Finish() @ 0x7f06de5d187d google::protobuf::internal::VerifyVersion() @ 0x7f06d5a1f0d4 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct::InitDefaultsImpl() @ 0x7f06de5d1f75 google::protobuf::GoogleOnceInitImpl() @ 0x7f06d5a19d85 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaults() @ 0x7f06d5a19db9 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptorsImpl() @ 0x7f06de5d1f75 google::protobuf::GoogleOnceInitImpl() @ 0x7f06d5a19e35 google::protobuf::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors() @ 0x7f06e7e0d4ea (unknown) @ 0x7f06e7e0d5fb (unknown) @ 0x7f06e7e12712 (unknown) @ 0x7f06e7e0d394 (unknown) @ 0x7f06e7e11bd9 (unknown) @ 0x7f06d750ef09 (unknown) @ 0x7f06e7e0d394 (unknown) @ 0x7f06d750f571 (unknown) @ 0x7f06d750efa1 dlopen @ 0x7f06e596c88d _PyImport_GetDynLoadFunc @ 0x7f06e59db4be _PyImport_LoadDynamicModule @ 0x7f06e59dc300 (unknown) @ 0x7f06e59dc5c8 (unknown) @ 0x7f06e59dd6db PyImport_ImportModuleLevel @ 0x7f06e5954698 (unknown) @ 0x7f06e59a01e3 PyObject_Call @ 0x7f06e5a76447 PyEval_CallObjectWithKeywords Aborted (core dumped)

https://github.com/richzhang/colorization/pullsFull log of training run is here. I use Ubuntu 16.04 LTS system. I tried to install Protobuf 3.2.0 from Ubuntu 16.10 ppa (https://launchpad.net/~maarten-fonville/), but error persists.

Is this bug? Or maybe I am doing something wrong? Where can find any information? Thanks

skeeph avatar Mar 14 '17 17:03 skeeph

Hi

You should install protobuf with v3.1.0, it will work

phongdinhv avatar Mar 25 '17 12:03 phongdinhv

Hi @skeeph , I had the same issue.

First check which version you are using: protoc ---version. It should show libprotoc 3.2.0.

If that is the case, then you should be set. Otherwise remove your old installation and install the later version.

(If you are familiar with anaconda, then a conda install would be easier. But of course, you would have to make sure that now the conda installed version is used by caffe, usually by putting the conda protobuf's location in PATH)

AruniRC avatar Apr 06 '17 19:04 AruniRC

I also experienced a similar issue, which was actually caused by me not having installed the python protobuf library. The error went away after pip install protobuf===3.1.0 in my case (you probably have to use 3.2.0). The error message was misleading in my case.

aaalgo avatar Jun 07 '17 21:06 aaalgo

This problem should be coused by the old version of lib installed by apt-get. Try to do sudo apt-get remove --purge libprotobuf-dev

VitoChien avatar Jul 30 '17 02:07 VitoChien