Onnx: Segmentation fault

Created on 15 May 2018  路  4Comments  路  Source: onnx/onnx

1.When I install caffe2 and onnx with conda
conda install -c caffe2 caffe2
conda install -c conda-forge onnx
conda install -c conda-forge protobuf numpy

python -c "import onnx"
#### this error occurs
Segmentation fault

and
python
(1)import caffe2.python.onnx.frontend

this error occurs

   WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
   WARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'
   Segmentation fault

(2)import caffe2.python.onnx.backend

this error occurs

WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode
WARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'
Segmentation fault

My Python Environment

python 3.6.3
onnx 1.1.1

Could you please advice to solve out this error
Thank you

bug build

Most helpful comment

You can do:
from caffe2.python import onnx
from onnx import backend

All 4 comments

Check the conversation in this issue - https://github.com/onnx/onnx/issues/875

I think #1026 may be related to this.

You can do:
from caffe2.python import onnx
from onnx import backend

@sgarcia22 It works, but there is no prepare module:
AttributeError: 'module' object has no attribute 'prepare'

Was this page helpful?
0 / 5 - 0 ratings