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.

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mk2510commented, Jul 26, 2020

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!

1reaction
jbesomicommented, Jul 27, 2020

I’m closing this as it has been solved.

If it happens to you to have the same issue:

python -m spacy download en_core_web_sm

This will install en_core_web_sm

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am getting the following error when importing import texthero ...
I have been trying to load texthero into python but keep getting this error. I have already upgraded the gensim module. Error
Read more >
import texthero error · Issue #210 - GitHub
When I am trying to import texthero it throws and error saying : ModuleNotFoundError: No module named 'gensim.sklearn_api'.
Read more >
Getting started - Texthero
Import texthero and pandas. import texthero as hero import pandas as pd. Copy. Load the bbc sport dataset in a Pandas DataFrame.
Read more >
texthero - PyPI
Text preprocessing, representation and visualization from zero to hero. From zero to hero • Installation • Getting Started • Examples • API •...
Read more >
Texthero · spaCy Universe
Texthero is a python package to work with text data efficiently. It empowers NLP developers with a tool ... import texthero as hero...
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