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
ImportError: No module named caffe.layers.detectnet.clustering #1181
Comments
Can you post the actual log of the error? Also, just a thought, is the entry in your PYTHONPATH that contains caffe relative or absolute? |
sorry but I don't know what you mean by actual log of error, when I run the code it only gives me the two lines I said and then the program crashes.
(if that's what you mean) |
As an example: $ ls /not-a-directory
ls: cannot access '/not-a-directory': No such file or directory |
I'm sorry but I don't understand what this has to do with my question :( |
Please just post the command you tried to run, and the output that you got (including the error message). |
OK, I think the problem is with my IDE, I write the code in Qt and compile it, when I run it there (by pushing the run button!) I get this message: but when I open a terminal in my project folder and run the exe by ./EXEname, everything is okey, I haven't tried this before, I just copied the exe to caffe root. but now I see that the problem only occurs when I try to run it from my IDE, though I don't understand why it is like this. |
Then this is probably a generic IDE configuration issue and not related to Caffe specifically. |
I had same problem while in IDE (Spyder): ImportError: No module named layers.detectnet.clustering |
Hi everyone,
As the title suggests I'm getting the following error when I try to run my inference code for detectnet:
ImportError: No module named caffe.layers.detectnet.clustering
terminate called after throwing an instance of 'boost::python::error_already_set'
The error resolves when I copy the exe file to caffe root and execute it there, but remains otherwise.
I have added caffe_root/python to my PYTHONPATH and PATH and running the command:
python -c "import caffe; print caffe.file"
gives me this path:
/home/gpuserver/Moosavi/DIGITS/nv-caffe/python/caffe/init.pyc
which is the right one.
I'm using nvidia caffe version 0.15.13, and the inference code is written in cpp.
The text was updated successfully, but these errors were encountered: