Matplotlib not found in app

Summary

I run the app locally and get a ModuleNotFoundError for matplotlib but installed it. I also uninstalled, reinstalled, upgraded, checked pythonpath, etc. Still not working. It is in the requirements.txt file.

Steps to reproduce

Try to run this app:

Simple app with a sidebar and a plot on the mainpage.

Actual behavior:

I get the ModuleNotFoundError

Debug info

Working on Mac M1.

Requirements file

Using venv as the virtualenv.

Links

Hey @milappert,

I get the following error when I run your app locally:

ImportError: attempted relative import with no known parent package
2023-06-20 18:54:43.500 Uncaught app exception
Traceback (most recent call last):
  File "/Users/cfrasca/miniconda3/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/Users/cfrasca/Desktop/apps/BatteryValueModel/models/__init__.py", line 1, in <module>
    from .battery_value_models import AdvancedBatteryValueModel
ImportError: attempted relative import with no known parent package

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