question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
sgarcia22commented, Jun 12, 2018

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

2reactions
haifenghancommented, Jul 10, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation fault - Wikipedia
Segmentation faults are a common class of error in programs written in languages like C that provide low-level memory access and few to...
Read more >
c++ - What is a segmentation fault? - Stack Overflow
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to...
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Core Dump (Segmentation fault) in C/C++ - GeeksforGeeks
When a piece of code tries to do read and write operation in a read only location in memory or freed block of...
Read more >
What is a segmentation fault in C/C++? - Tutorialspoint
A segmentation fault occurs when your program attempts to access an area of memory that it is not allowed to access.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found