Error on Streamlit Sharing Deployment

Hi I am new to streamlit cloud and this is my first time deploying on Streamlit cloud.

The deployment works on my local environment, however when I am deploying it, I am getting this error

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.7/site-packages/nltk/corpus/", line 84, in __load

    root ="{self.subdir}/{zip_name}")

  File "/home/appuser/venv/lib/python3.7/site-packages/nltk/", line 583, in find

    raise LookupError(resource_not_found)



  Resource stopwords not found.

  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk



  For more information see:

  Attempted to load corpora/

  Searched in:

    - '/home/appuser/nltk_data'

    - '/home/appuser/venv/nltk_data'

    - '/home/appuser/venv/share/nltk_data'

    - '/home/appuser/venv/lib/nltk_data'

    - '/usr/share/nltk_data'

    - '/usr/local/share/nltk_data'

    - '/usr/lib/nltk_data'

    - '/usr/local/lib/nltk_data'


This is the link to my repository

I have added
import nltk‘stopwords’)

to the

This is my requirements file

type or paste code here

nltk is missing!?

Actually, it is part of pyreparser package. Because the pyreparser packages uses multiple NLP packages in the classes developed. So I’m not sure if calling pyreparser ‘auto’-installs the nltk package

I was able to fork and deploy your repo without encountering this error. Now that you’ve included‘stopwords’) in your app, I suspect deleting the app on Cloud and redeploying it will work.

Thank you, I will try it!