Hi,
I am trying to showcase our application on streamlit, our application is running fine on anaconda Jupyter. However the code
from scispacy.abbreviation import AbbreviationDetector
from scispacy.umls_linking import UmlsEntityLinker
gives error on streamlit
ModuleNotFoundError: No module named ‘scispacy.abbreviation’; ‘scispacy’ is not a package
Traceback:
File "c:\users\vikas\anaconda3\lib\site-packages\streamlit\ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__)
Hi!
Usually this means you don’t have it installed in the same environment.
Check the locations of python and streamlit, and jupyter
which python
which streamlit
which jupyter
My guess is you’ve used a different pip to your conda environment to install streamlit.
1 Like
Hi Ian,
Thanks for the reply, the problem got solved.
Actually the error i was making was the name of the python file where i have written the code, i named it as scispacy. After renaming the file problem got solved.
Thanks
Vikkas
1 Like
ModuleNotFoundError: No module named ‘docutils’
Traceback:
File "/usr/local/lib/python3.6/dist-packages/streamlit/script_runner.py", line 337, in _run_script
exec(code, module.__dict__)File "/home/ubuntu/gharwaala-streamlit-app/app.py", line 8, in <module>
import webscrapingFile "/home/ubuntu/gharwaala-streamlit-app/webscraping.py", line 3, in <module>
from docutils.nodes import row
i am facing this issue while hosting my streamlit app with aws ec2
thank you