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

can not import from _caffe #59

Open
czjzhang opened this issue Jan 31, 2018 · 0 comments
Open

can not import from _caffe #59

czjzhang opened this issue Jan 31, 2018 · 0 comments

Comments

@czjzhang
Copy link

After I downloaded the code,I try to run /project/caffe-b590f1d27eb5cbd9bc7b9157d447706407c68682/python/detect.py. But I can not improt from _caffe.
when come to the line in pycaffe.py
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
RMSPropSolver, AdaDeltaSolver, AdamSolver

/home/jane/anaconda3/bin/python3.6 /home/jane/pycharm-community-2017.3.2/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 42569 --file /home/jane/project/caffe-b590f1d27eb5cbd9bc7b9157d447706407c68682/python/detect.py
pydev debugger: process 5970 is connecting

Connected to pydev debugger (build 173.4127.16)
Backend Qt5Agg is interactive backend. Turning interactive mode on.
Traceback (most recent call last):
File "/home/jane/pycharm-community-2017.3.2/helpers/pydev/pydevd.py", line 1668, in
main()
File "/home/jane/pycharm-community-2017.3.2/helpers/pydev/pydevd.py", line 1662, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/jane/pycharm-community-2017.3.2/helpers/pydev/pydevd.py", line 1072, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/jane/pycharm-community-2017.3.2/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/jane/project/caffe-b590f1d27eb5cbd9bc7b9157d447706407c68682/python/detect.py", line 24, in
import caffe
File "/home/jane/project/caffe-b590f1d27eb5cbd9bc7b9157d447706407c68682/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/jane/project/caffe-b590f1d27eb5cbd9bc7b9157d447706407c68682/python/caffe/pycaffe.py", line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ModuleNotFoundError: No module named 'caffe._caffe'

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

1 participant