Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an error happened when import dlib and MxNet #13

Open
PuNeal opened this issue May 28, 2019 · 3 comments
Open

an error happened when import dlib and MxNet #13

PuNeal opened this issue May 28, 2019 · 3 comments

Comments

@PuNeal
Copy link

PuNeal commented May 28, 2019

When I run the ./example/get_face_align.py, an error happened. The error meassage is:

Segmentation fault: 11

Stack trace returned 10 entries:
[bt] (0) /root/anaconda3/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x40123a) [0x7f8a3cba723a]
[bt] (1) /root/anaconda3/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x3413b76) [0x7f8a3fbb9b76]
[bt] (2) /lib64/libc.so.6(+0x36280) [0x7f8b08f7b280]
[bt] (3) /root/anaconda3/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x2e69e) [0x7f8a1d80669e]
[bt] (4) /root/anaconda3/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x38739) [0x7f8a1d810739]
[bt] (5) /root/anaconda3/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x1ce83) [0x7f8a1d7f4e83]
[bt] (6) /root/anaconda3/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(PyInit_onnx_cpp2py_export+0xd6) [0x7f8a1d7f8946]
[bt] (7) python(_PyImport_LoadDynamicModuleWithSpec+0x185) [0x55583797ba45]
[bt] (8) python(+0x215c45) [0x55583797bc45]
[bt] (9) python(PyCFunction_Call+0x131) [0x555837878051]

It happened when importing mxnet and dlib, and I found that mxnet and dlib cannot be imported correctly in one python file. But it succeeded when importing mxnet or dlib alone. Could you tell me the version of mxnet and dlib installed in your environment ?
Thank you!

@becauseofAI
Copy link
Owner

Can you check the problem to import mxnet and dlib through python command line firstly?

@PuNeal
Copy link
Author

PuNeal commented May 29, 2019

Can you check the problem to import mxnet and dlib through python command line firstly?

Yes, I tried to import dlib and mxnet through python command line but failed. If i import mxnet successfully at first, then dlib cannot be imported correctly, and vice versa. As the screenshot shows below:
捕获

@becauseofAI
Copy link
Owner

Strangely!
If you haven't fixed it yet, I think the easiest way is to reinstall Anaconda3, MXNet and Dlib in an official manner. You can reference my README to install MXNet and Dlib after you have installed Anaconda3.

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

No branches or pull requests

2 participants