Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

import error #106

Open
haofanwang opened this issue Jan 4, 2018 · 1 comment
Open

import error #106

haofanwang opened this issue Jan 4, 2018 · 1 comment

Comments

@haofanwang
Copy link

haofanwang commented Jan 4, 2018

When I run

import onnx
import onnx_caffe2.backend

I got

[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.4.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/any.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  This program requires version 3.4.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/any.pb.cc".)
Aborted (core dumped)`

However,when I check,

$ protoc --version
libprotoc 3.4.0

Besides,I can run import torch.onnx and import onnx_caffe2.backend independently,but cannot run together. Note that I have successfully installed caffe2 as instruction.

Anyone can help with it?

@houseroad
Copy link
Member

houseroad commented Jan 26, 2018

Looks like you have two different version of protobuf, 3.4.0 and 2.6.1. Try to only keep one protobuf. Build caffe2 from scratch again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants