facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

Caffe2 Python import issue with Azure Data Science Virtual Machine (DSVM) for Ubuntu #431

Open mjohnst opened 7 years ago

mjohnst commented 7 years ago

I decided to try out the Azure Data Science Virtual Machine for Ubuntu which comes with Caffe2 pre-installed.

When I try to import caffe2.python.core in Python, I receive this error:

In [1]: from caffe2.python import core
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: dynamic module does not define module export function (PyInit_caffe2_pybind11_state_gpu)
Key 140159282863136 already registered.

And the Python shell immediately exists. Any ideas what's causing this?

leehomyc commented 7 years ago

any solution?

ilkarman commented 7 years ago

I think this issue is still going with the latest DSVMs

guozhongxin commented 7 years ago

I am also blocked by this issue. Does this issue only happen in Azure DSVM?

pjh5 commented 6 years ago

Do any of you still have this problem? @Yangqing has made changes to the cmake files lately for better Windows support. Have you tried since then?