Because plotly-graph-objects was not found in the package registry, I cannot deploy the app.


Using uv pip install.

Using Python 3.12.11 environment at /home/adminuser/venv

× No solution found when resolving dependencies:

╰─▶ Because plotly-graph-objects was not found in the package registry and

you require plotly-graph-objects, we can conclude that your requirements

are unsatisfiable.

Don’t try to install plotly-graph-objects.

The package name plotly-graph-objects doesn’t exist. The correct package is simply plotly, which includes graph_objects as a submodule.

Fix the requirements file:

Change from:

plotly-graph-objects

To:

plotly

Then in the code, import it as:

import plotly.graph_objects as go

The plotly package includes both plotly.graph_objects and plotly.express submodules by default. Install with pip install plotly or uv pip install plotly.

Let me know if it works.

The deployment works now. However, when I do streamlit run app.py in the terminal and open it in localhost, it works, but the app does not work like it did in the localhost when using the deployed streamlit public url.