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

import error #106

@haofanwang

Description

@haofanwang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions