ModuleNotFoundError: No module named 'thinc.neural.util'
See original GitHub issueI installed spaCy on my Mac OSX 10.11.6 into an Anaconda Python 3.6 environment with conda. I also was able to build thinc from source with ‘fab’.
$ conda --version
conda 4.3.29
$ python --version
Python 3.6.3
$ fab --version
Fabric 1.14.0
Paramiko 2.3.1
When I try to install the spaCy model I get this error:
python -m sense2vec.download
ModuleNotFoundError: No module named ‘thinc.neural.util’
I see util.py in thinc.neural package on github. There must be a conflict or version mismatch with what I downloaded from conda and what is in the latest version of ‘thinc’ on github. Any ideas?
From Conda: spacy: 2.0.4-py36_0 conda-forge thinc: 6.10.0-py36_0 conda-forge
$ conda list thinc
# packages in environment at /Users/davidlaxer/anaconda/envs/py36:
#
thinc 6.10.2 <pip>
thinc 6.10.0 py36_0 conda-forge
thinc 5.0.8 <pip>
(py36) David-Laxers-MacBook-Pro:sense2vec davidlaxer$ conda list spacy
# packages in environment at /Users/davidlaxer/anaconda/envs/py36:
#
spacy 2.0.5 <pip>
spacy 2.0.4 py36_0 conda-forge
spacy 0.101.0 <pip>
(py36) David-Laxers-MacBook-Pro:sense2vec davidlaxer$ python -m spacy validate
Traceback (most recent call last):
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/site-packages/spacy/__init__.py", line 4, in <module>
from .cli.info import info as cli_info
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/site-packages/spacy/cli/__init__.py", line 1, in <module>
from .download import download
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/site-packages/spacy/cli/download.py", line 10, in <module>
from .link import link
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/site-packages/spacy/cli/link.py", line 7, in <module>
from ..compat import symlink_to, path2str
File "/Users/davidlaxer/anaconda/envs/py36/lib/python3.6/site-packages/spacy/compat.py", line 11, in <module>
from thinc.neural.util import copy_array
ModuleNotFoundError: No module named 'thinc.neural.util'
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'thinc.neural'
Since a few versions ago thinc was reorganized. Classes and functions should now be imported from thinc.api .
Read more >ModuleNotFoundError: No module named 'thinc' - RoseIndia.Net
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'thinc' How to remove the ModuleNotFou.
Read more >No module named 'thinc.types' error - solved - Prodigy Support
In my Dockerfile I ran a pip install thinc --pre as suggested in the documentation, and notice that in my jupyter notebook, I...
Read more >thinc - PyPI
Thinc is a lightweight deep learning library that offers an elegant, type-checked, functional-programming API for composing models, with support for layers ...
Read more >explosion/spaCy - Gitter
I installed spacy, thinc with gpu support . I have installed cupy from Chainer as well. ... ModuleNotFoundError: No module named 'thinc.neural.gpu_ops'.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created a new python 3.6 virtual environment with conda and tried installing spacy with conda from scratch:
I solved the problem by updating Spyder.