Scispacy error

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.

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