Deploying app but cannot find spacy

Cannot find spacy when deploying my app on the streamlit shared platform. I have spacy in the requirements.txt and it installs but cannot be found by app.py

────────────────────────────────────────────────────────────────────────────────────────

[08:55:15] 📦 Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

2023-10-16 08:55:36.015 Uncaught app exception

Traceback (most recent call last):

  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script

    exec(code, module.__dict__)

  File "/mount/src/owa-underwater-app/app.py", line 4, in <module>

    import spacy

ModuleNotFoundError: No module named 'spacy'

2023-10-16 09:05:36.962 Uncaught app exception

Traceback (most recent call last):

  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script

    exec(code, module.__dict__)

  File "/mount/src/owa-underwater-app/app.py", line 4, in <module>

    import spacy

ModuleNotFoundError: No module named 'spacy'

Hi @nyaribari,

Thanks for posting!

Can you share your repo link and also the requirements.txt file so we can better troubleshoot it for you?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.