- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was having some trouble installing the toolkit last week, so today I tried a fresh copy of Ubuntu and started working through the ‘Toolkit documentation’ instructions. Everything appeared to go well, except when it came time to run the ‘make check’ step verifying the installation I got two errors both relating to Caffe:
- Caffe Python Library: import error #1. Import not successful
- Caffe Python Library Import Error #2: import caffe_pb2
After investigating the scripts, I discovered the problem was with the bash variable $PYTHONPATH. To make a long story short, the path was automatically set to :/opt/movidius/caffe/python:, instead of /opt/movidius/caffe/python (note the two colons that shouldn’t be there in this case). When I corrected the path, the 'make check' step reported no errors.
- Tags:
- Caffe
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having the same issue, but am struggling a bit with changing the $PYTHONPATH successfully. Can you walk me through how you corrected the $PYTHONPATH to /opt/movidius/caffe/python.
Thanks much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try to change it in your ~/.bashrc file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@ddistasio In your Ubuntu home directory, edit your bashrc file with your favorite text editor. Once you have your bashrc file opened, scroll to the bottom and check to see if your PYTHONPATH environment variable is set. You should see export PYTHONPATH=$env:"/opt/movidius/caffe/python":$PYTHONPATH
. If it is not there, you can manually type in: export PYTHONPATH=$env:"/opt/movidius/caffe/python":$PYTHONPATH
and make sure to save your bashrc file. Also make sure to open a new terminal to refresh the newly set environment variables.
It is important to note that if you have another version of Caffe installed, you may edit the PYTHONPATH variable to point it to the directory where it is located and thus switch between different versions of Caffe. Like the previous step, just make sure to save the bashrc file, close the window and open a new terminal window to ensure that the PYTHONPATH is refreshed afterwards.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page