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 at [E050] Can't find model 'en_core_sci_sm '. It doesn't seem to be a Python package or a valid path to a data directory.

See original GitHub issue

This is somewhat related to issue# 337.

When I run my code in the debugger, everything works perfectly. When I use Jenkins to deploy/dockerize my application on an Ubuntu server, everything works perfectly. When I use Jenkins to deploy/dockerize my application on my Windows 10 laptop, everything was working perfectly until it wasn’t. The line spacy.load throws the exception:

_scispacy_data_model = "en_core_sci_sm"
_nlp = spacy.load(_scispacy_data_model)

Thoughts or suggestions?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
DeNeutoycommented, Mar 18, 2021

@phil-oxenberg are you installing the model package in your Dockerfile? You need both:

pip install scispacy
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.4.0/en_core_sci_sm-0.4.0.tar.gz

in there somewhere. If not, can you post the dockerfile?

0reactions
dakingggcommented, Mar 19, 2021

Glad we got it working 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: [E050] Can't find model 'en_core_web_sm ... - GitHub
It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. I tried several ways...
Read more >
OSError: [E050] Can't find model 'fr_core_web_md'. It doesn't ...
It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory." Despite the use of...
Read more >
Spacy | [E050] Can't find model 'en_vectors_web_sm' - Kaggle
[E050] Can't find model 'en_vectors_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data...
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 >
[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 >

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