python2で書かれたコードをpython2コマンドで実行しようとすると、以下のエラーが発生します。
これはパスが通ってないことや環境構築がうまくいってないなどの単純な問題なのでしょうか。
それ以外にはどのような問題が考えられますでしょうか。
chainer自体はインストールされています。
ご教授ください。
Traceback (most recent call last): File "test.py", line 23, in <module> from chainer.links import caffe File "/usr/local/lib/python2.7/dist-packages/chainer/links/caffe/__init__.py", line 1, in <module> from chainer.links.caffe import caffe_function File "/usr/local/lib/python2.7/dist-packages/chainer/links/caffe/caffe_function.py", line 10, in <module> from chainer.links.caffe.protobuf3 import caffe_pb2 as caffe_pb File "/usr/local/lib/python2.7/dist-packages/chainer/links/caffe/protobuf3/caffe_pb2.py", line 7, in <module> from google.protobuf import descriptor as _descriptor File "/usr/local/lib/python2.7/dist-packages/protobuf-3.5.0-py2.7-linux-x86_64.egg/google/protobuf/descriptor.py", line 46, in <module> from google.protobuf.pyext import _message ImportError: /usr/local/lib/python2.7/dist-packages/protobuf-3.5.0-py2.7-linux-x86_64.egg/google/protobuf/pyext/_message.so: undefined symbol: _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_
あなたの回答
tips
プレビュー