import texthero error
See original GitHub issue[nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
[nltk_data] getaddrinfo failed>
⚠ Skipping model package dependencies and setting --no-deps
. You don’t seem to
have the spaCy package itself installed (maybe because you’ve built from
source?), so installing the model dependencies would cause spaCy to be
downloaded, which probably isn’t what you want. If the model package has other
dependencies, you’ll have to install them manually.
Traceback (most recent call last):
File “D:\ProgramFiles\Anaconda3\lib\site-packages\texthero\stopwords.py”, line 14, in <module>
spacy_model = spacy.load(“en_core_web_sm”)
File “D:\ProgramFiles\Anaconda3\lib\site-packages\spacy_init_.py”, line 30, in load
return util.load_model(name, **overrides)
File “D:\ProgramFiles\Anaconda3\lib\site-packages\spacy\util.py”, line 175, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can’t find model ‘en_core_web_sm’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “D:\ProgramFiles\Anaconda3\lib\site-packages\urllib3\connection.py”, line 171, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File “D:\ProgramFiles\Anaconda3\lib\site-packages\urllib3\util\connection.py”, line 56, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File “D:\ProgramFiles\Anaconda3\lib\socket.py”, line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11004] getaddrinfo failed
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Hi,
as far, as I can read from your error message you are missing the spacy package in your python. If you install spacy in your anaconda you will probably resolve this issue. Just let me know if it works for you!
Cheers!
I’m closing this as it has been solved.
If it happens to you to have the same issue:
This will install
en_core_web_sm