Error when deploying app

Hello,

I keep getting this error when deploying

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
    exec(code, module.__dict__)File "/mount/src/fentanylapp/SOHIGHV3.py", line 1, in <module>
    import matplotlib

Any thoughts?

Thank you–

1 Like

You forgot to post the actual error message, but it seems you didn’t install matplotlib.

2 Likes

I installed it in the code space editor on Streamlit but then it continued to give me the same error. I also had it in my requirements file. But nothing kept getting the same issue

1 Like

Without seeing your actual github repo, we are poking around in the dark…

1 Like

@Franky1 is there a way to show you the repo in dm?

1 Like

Afaik in GitHub you have to move the repo into an organization to get fine grained user rights control.

  • do you have a requirements.txt file in the root folder of your GitHub repo?
  • if no, this is the problem
  • if yes, show us at least the content of this file
1 Like

This is what I have inside the .py file and then I have a very long requirements_all-1.txt file which has a bunch of libraries-- I sent a screenshot of that.

1 Like
  • the file name must be requirements.txt exactly
  • your requirements file has local references, this won’t work
  • your requirements file is crammed with unnecessary libraries, clean it up
1 Like