I've run into this error when attempting to run "import caffe" in python (script and command line). This happens in Anaconda Python and standard Python v2.7.8 - i made a fresh install of everything including the OS (Ubuntu 14.04) to rerun on standard Python v2.7.8 to the same result. The error output after "import caffe" is below. I've had zero luck tracking down "
skimage.io" import error. It should be noted that I was able to "make pycaffe" successfully. I first ran into this issue when trying out the mnist example - which I was able to train successfully, I just ran into this error when attempting to run "classify.py".
I would also like to point out that the
caffe install page explicitly says not to add ~/caffe/python/caffe to your PYTHONPATH while the
Interfaces page explicitly says to add this directory to your PYTHONPATH. What gives?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/danielo/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/home/danielo/caffe/python/caffe/pycaffe.py", line 11, in <module>
File "/home/danielo/caffe/python/caffe/io.py", line 2, in <module>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/danielo/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/home/danielo/caffe/python/caffe/pycaffe.py", line 8, in <module>
File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
from . import add_newdocs
File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", line 58, in <module>
from numpy.testing import Tester
File "/usr/local/lib/python2.7/site-packages/numpy/testing/__init__.py", line 14, in <module>
File "/usr/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 15, in <module>
from tempfile import mkdtemp
File "/usr/local/lib/python2.7/tempfile.py", line 32, in <module>
File "/home/danielo/caffe/python/caffe/io.py", line 2, in <module>
Thanks everyone.