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.

Deploying to Heroku

See original GitHub issue

Is it possible to download the data from running spacy.en.download in a particular directory and have spacy use that directory? Would it be bad practice to commit this data to source control?

Background Info:

We are deploying an application to Heroku that relies on Spacy for some NLP work. We are having some trouble getting Spacy to work properly once it is deployed to Heroku because the Spacy data needs to be downloaded. We have tried logging into bash on Heroku by running heroku run bash and then running python -m spacy.en.download all from the remote machine. We tested that this actually installed the data by running a python interpreter and we are able to instantiate English() properly. However, when we use our web app it fails. Heroku logs show that it is failing because Spacy throws an exception saying that we should run python -m spacy.en.download.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Jeiwancommented, Jul 23, 2017
0reactions
lock[bot]commented, May 8, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying with Git - Heroku Dev Center
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your...
Read more >
Heroku Deploy – How to Push a Web App or Site to Production
Heroku Deploy – How to Push a Web App or Site to Production · Step 1 - Create the project · Step 2...
Read more >
Deploying a Back-End with Heroku - Codecademy
Deploying to Heroku ... Login to your Heroku account and click the New button in the upper right corner of you dashboard. Then...
Read more >
Deploying with Heroku - Apollo GraphQL Docs
Deploying with Heroku · Prerequisites · Set up a new Heroku application · Setting up the project · Deploying the project · Configuring...
Read more >
Deploying to Heroku - Slack | Bolt for JavaScript
When deploying an app to Heroku, you'll typically use the git push command. This will push your code from your local repository 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