question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'skimage'

See original GitHub issue

I want to add MXNet (GPU version), GluonNLP and GluonCV packages to docker file. But if I just try to build original dockerfile by running ./build I get ModuleNotFoundError: No module named 'skimage'.

Collecting git+git://github.com/scikit-image/scikit-image@31d9ecc2f0d8dd3373af3e80b2dcc7887ff2ca24
  Cloning git://github.com/scikit-image/scikit-image (to revision 31d9ecc2f0d8dd3373af3e80b2dcc7887ff2ca24) to /tmp/pip-req-build-5sjsxjj4
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  Complete output from command /opt/conda/bin/python /opt/conda/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp0yeyn_a9:
  Traceback (most recent call last):
    File "/opt/conda/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
      main()
    File "/opt/conda/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/opt/conda/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 115, in get_requires_for_build_wheel
      return _get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 101, in _get_build_requires
      _run_setup()
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 85, in _run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 222, in <module>
      **extra
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/core.py", line 137, in setup
      config = configuration()
    File "setup.py", line 137, in configuration
      config.add_subpackage('skimage')
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
      caller_level = 2)
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
      caller_level = caller_level + 1)
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
      config = setup_module.configuration(*args)
    File "skimage/setup.py", line 9, in configuration
      config.add_subpackage('_shared')
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
      caller_level = 2)
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
      caller_level = caller_level + 1)
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 918, in _get_configuration_from_setup_py
      ('.py', 'U', 1))
    File "/tmp/pip-build-env-6hfrqkax/overlay/lib/python3.6/site-packages/numpy/compat/py3k.py", line 147, in npy_load_module
      return importlib.machinery.SourceFileLoader(name, fn).load_module()
    File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
    File "<frozen importlib._bootstrap_external>", line 823, in load_module
    File "<frozen importlib._bootstrap_external>", line 682, in load_module
    File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
    File "<frozen importlib._bootstrap>", line 684, in _load
    File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 678, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "skimage/_shared/setup.py", line 5, in <module>
      from skimage._build import cython
  ModuleNotFoundError: No module named 'skimage'

Is there something I should do differently? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rosbocommented, Jan 30, 2019

The CPU build is now fixed.

0reactions
rosbocommented, Jan 30, 2019

Yes, the fix has been pushed to the master branch. Are you still having issue when running ./build fetching the latest changes from master? If yes, can you include the build error you are getting.

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import error No module named skimage - Stack Overflow
Apparently skimage is a part of Cython which in turn is a superset of python and hence you need to install Cython to...
Read more >
ModuleNotFoundError: No module named 'skimage' in Python
The Python "ModuleNotFoundError: No module named 'skimage'" occurs when we forget to install the scikit-image module before importing it or ...
Read more >
Modulenotfounderror: no module named skimage (Solved)
Modulenotfounderror : no module named skimage error occurs mainly because of the installation issue of scikit-image. Reinstallation of scikit-image module is ...
Read more >
No module named 'skimage' for OSX · Issue #4533 - GitHub
First I installed scikit-image with pip3 install scikit-image inside a ... ModuleNotFoundError: No module named 'skimage' for OSX #4533.
Read more >
ImportError: No module named 'skimage' - W3schools.blog
ModuleNotFoundError : No module named 'skimage'. pip install scikit. ImportError: No module named 'skimage'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found