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.

OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

See original GitHub issue
from chatterbot.trainers import ChatterBotCorpusTrainer

chatbot = ChatBot('Ron Obvious')

# Create a new trainer for the chatbot
trainer = ChatterBotCorpusTrainer(chatbot)

# Train the chatbot based on the english corpus
trainer.train("chatterbot.corpus.english")

# Get a response to an input statement
chatbot.get_response("Hello, how are you today?")```




output as 


---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-f8d70b5b4e6a> in <module>
      2 from chatterbot.trainers import ChatterBotCorpusTrainer
      3 
----> 4 chatbot = ChatBot('Ron Obvious')
      5 
      6 # Create a new trainer for the chatbot

~\Anaconda3\lib\site-packages\chatterbot\chatterbot.py in __init__(self, name, **kwargs)
     26         self.logic_adapters = []
     27 
---> 28         self.storage = utils.initialize_class(storage_adapter, **kwargs)
     29 
     30         primary_search_algorithm = IndexedTextSearch(self, **kwargs)

~\Anaconda3\lib\site-packages\chatterbot\utils.py in initialize_class(data, *args, **kwargs)
     31         Class = import_module(data)
     32 
---> 33         return Class(*args, **kwargs)
     34 
     35 

~\Anaconda3\lib\site-packages\chatterbot\storage\sql_storage.py in __init__(self, **kwargs)
     18 
     19     def __init__(self, **kwargs):
---> 20         super().__init__(**kwargs)
     21 
     22         from sqlalchemy import create_engine

~\Anaconda3\lib\site-packages\chatterbot\storage\storage_adapter.py in __init__(self, *args, **kwargs)
     19 
     20         self.tagger = PosLemmaTagger(language=kwargs.get(
---> 21             'tagger_language', languages.ENG
     22         ))
     23 

~\Anaconda3\lib\site-packages\chatterbot\tagging.py in __init__(self, language)
     11         self.punctuation_table = str.maketrans(dict.fromkeys(string.punctuation))
     12 
---> 13         self.nlp = spacy.load(self.language.ISO_639_1.lower())
     14 
     15     def get_bigram_pair_string(self, text):

~\Anaconda3\lib\site-packages\spacy\__init__.py in load(name, **overrides)
     28     if depr_path not in (True, False, None):
     29         deprecation_warning(Warnings.W001.format(path=depr_path))
---> 30     return util.load_model(name, **overrides)
     31 
     32 

~\Anaconda3\lib\site-packages\spacy\util.py in load_model(name, **overrides)
    167     elif hasattr(name, "exists"):  # Path or Path-like to model data
    168         return load_model_from_path(name, **overrides)
--> 169     raise IOError(Errors.E050.format(name=name))
    170 
    171 

OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

5reactions
Bertik23commented, Oct 16, 2020

Oh never mind #2039 solved it

2reactions
ratnasankeerthanreddycommented, Oct 17, 2020

using the command “python -m spacy download en” still facing the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] OSError: [E050] Can't find model 'en'. It doesn't seem ...
OSError : [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
OSError: [E050] Can't find model 'de'. It doesn't seem to be a ...
It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. Everywhere, an explanation is...
Read more >
OSError: Can't find model 'en' · Issue #1 - GitHub
error: OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
OSError: [E050] Can't find model 'en'. It doesn't seem to be a ...
OSError : [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to...
Read more >
Spacy E050 Can't find model 'en core web sm' Solved
[ E050 ] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory....
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