ModuleNotFoundError: No module named 'plotly'

Hi,

I am having an issue with a “ModuleNotFoundError: No module named ‘plotly’” when deploying through GitHub.

https://share.streamlit.io/trymaas/master-project/main/visualization.py

I made the requirements.txt file with pipreqs, so not sure how I could have done anything wrong on that front. Any pointers?

Hello @trymaas,

In your app, you should see a black sidebar with all the installation logs for your app. If you reboot your app and read the logs, can you see anything related to plotly?

I tried on my side, I can see:

Collecting matplotlib==1.5.1

  Downloading matplotlib-1.5.1.tar.gz (54.0 MB)

    ERROR: Command errored out with exit status 1:

     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5tii96y5/matplotlib_8af6ac0a2d024d35826310b8dcbfe1e9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5tii96y5/matplotlib_8af6ac0a2d024d35826310b8dcbfe1e9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg egg_info --egg-base /tmp/pip-pip-egg-info-4xbt2eex

         cwd: /tmp/pip-install-5tii96y5/matplotlib_8af6ac0a2d024d35826310b8dcbfe1e9/

    Complete output (68 lines):

    IMPORTANT WARNING:

        pkg-config is not installed.

        matplotlib may not be able to find some of its dependencies

    ============================================================================

    Edit setup.cfg to change the build options

So I actually removed the versions from the requirements.txt (master-project/requirements.txt at main · andfanilo/master-project · GitHub) and now it works https://share.streamlit.io/andfanilo/master-project/main/visualization.py. Maybe matplotlib 1.5.1 is a bit too old?

Cheers,
Fanilo

Thanks,

Yeah, seems like I was using some old versions