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

Python Caffe ImportError: dynamic module does not define module export function (PyInit__caffe) #6968

Open
za13 opened this issue Sep 11, 2020 · 1 comment

Comments

@za13
Copy link

za13 commented Sep 11, 2020

I use Python 3.6 and CUDA 11 in Ubuntu 16. I followed all the steps for building in http://tutorial.caffe.berkeleyvision.org/installation.html:

make all
make install
make runtest

and also uncommented the following lines in the `makefile.config:

PYTHON_LIBRARIES := boost_python3 python3.5m
PYTHON_INCLUDE := /usr/include/python3.5m \
             /usr/lib/python3.5/dist-packages/numpy/core/include

then I tried

make pycaffe
export PYTHONPATH=/home/me/Downloads/caffe/python:$PYTHONPATH

then in Python I type

import caffe

and get

ImportError: dynamic module does not define module export function (PyInit__caffe)

I get the same error if I try using cmake instead of makefile.config

can anyone help?

@jaeseongBae
Copy link

duplicated with #6054

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