Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ImportError: No module named skimage.io #5716

Closed
tyrant0604 opened this issue Jun 28, 2017 · 2 comments
Closed

ImportError: No module named skimage.io #5716

tyrant0604 opened this issue Jun 28, 2017 · 2 comments

Comments

@tyrant0604
Copy link

Issue summary

  1. when I run 'make pytest'
    the Error is :
    ERROR: test_solver (unittest.loader.ModuleImportFailure)

ImportError: Failed to import test module: test_solver
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/xueding/caffe/python/caffe/test/test_solver.py", line 7, in
import caffe
File "caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "caffe/pycaffe.py", line 15, in
import caffe.io
File "caffe/io.py", line 2, in
import skimage.io
ImportError: No module named skimage.io


Ran 10 tests in 0.001s

FAILED (errors=10)
make[3]: *** [CMakeFiles/pytest] Error 1
make[2]: *** [CMakeFiles/pytest.dir/all] Error 2
make[1]: *** [CMakeFiles/pytest.dir/rule] Error 2
make: *** [pytest] Error 2

2.then run 'sudo pip install scikit-image'
the Error is :
Requirement already satisfied: scikit-image in /Users/xueding/anaconda3/lib/python3.6/site-packages
Requirement already satisfied: six>=1.7.3 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from scikit-image)
Requirement already satisfied: networkx>=1.8 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from scikit-image)
Requirement already satisfied: pillow>=2.1.0 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from scikit-image)
Requirement already satisfied: PyWavelets>=0.4.0 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from scikit-image)
Requirement already satisfied: decorator>=3.4.0 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from networkx>=1.8->scikit-image)
Requirement already satisfied: olefile in /Users/xueding/anaconda3/lib/python3.6/site-packages (from pillow>=2.1.0->scikit-image)
Requirement already satisfied: numpy>=1.9.1 in /Users/xueding/anaconda3/lib/python3.6/site-packages (from PyWavelets>=0.4.0->scikit-image)

Your system configuration

Operating system: Darwin APPLE.local 16.6.0 Darwin Kernel Version 16.6.0: root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Compiler:
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
python2.7 : /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
python3.6(default): /Users/xxxx/anaconda3/lib/python3.6

It seems that the dependencies have just been used by python3.6, so I don't know how to install the dependencies of python2.7.

@deepali-c
Copy link

Do you have the package python-skimage installed?

@Noiredd
Copy link
Member

Noiredd commented Feb 27, 2018

Installation of scikit-image might be non-obvious: consult the instructions.

I will close this issue as it is more installation/usage related. In case of further problems, please ask on the caffe-users list. All usage, installation, or modeling questions, or other requests for help should be asked there instead of Issues. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe. Please read the guidelines for contributing before submitting an issue or a pull request.

@Noiredd Noiredd closed this as completed Feb 27, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants