Deploying app taking too long

App is in the oven for hours. I tried to delete and redeploy and still same issue.

Here is app link. https://powerball-number-generator.streamlit.app/

It is already cooked now.

It throws error

ModuleNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/mount/src/powerball-app/app.py", line 3, in <module>
    import matplotlib.pyplot as plt

streamlit==1.38.0
pandas==2.2.2
numpy==2.0.0
matplotlib==3.8.4

above is my requirements.txt

Please can you share the complete log of your installation (reboot your app and copy the entire log up to the import error)? If some package did not install correctly, there could be a more specific error warning about package compatibility or Python version.

Here you go.

[ UTC ] Logs for powerball-number-generator.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[03:40:35] :desktop_computer: Provisioning machine…
[03:40:35] :control_knobs: Preparing system…
[03:40:35] :chains: Spinning up manager process…
[03:40:35] :rocket: Starting up repository: ‘powerball-app’, branch: ‘main’, main module: ‘app.py’
[03:40:35] :octopus: Cloning repository…
[03:40:35] :octopus: Cloning into ‘/mount/src/powerball-app’…

[03:40:35] :octopus: Cloned repository!
[03:40:35] :octopus: Pulling code changes from Github…
[03:40:36] :package: Processing dependencies…

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Using Python 3.13.7 environment at /home/adminuser/venv
Resolved 47 packages in 466ms
[03:40:35] :rocket: Starting up repository: ‘powerball-app’, branch: ‘main’, main module: ‘app.py’
[03:40:35] :octopus: Cloning repository…
[03:40:35] :octopus: Cloning into ‘/mount/src/powerball-app’…

[03:40:35] :octopus: Cloned repository!
[03:40:35] :octopus: Pulling code changes from Github…
[03:40:36] :package: Processing dependencies…

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Using Python 3.13.7 environment at /home/adminuser/venv
Resolved 47 packages in 466ms
[06:20:50] :rocket: Starting up repository: ‘powerball-app’, branch: ‘main’, main module: ‘app.py’
[06:20:50] :octopus: Cloning repository…
[06:20:51] :octopus: Cloning into ‘/mount/src/powerball-app’…

[06:20:51] :octopus: Cloned repository!
[06:20:51] :octopus: Pulling code changes from Github…
[06:20:51] :package: Processing dependencies…

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Using Python 3.13.7 environment at /home/adminuser/venv
Resolved 47 packages in 481ms
[07:06:17] :snake: Python dependencies were installed from /mount/src/powerball-app/requirements.txt using uv.
[07:06:19] :package: Processed dependencies!
[07:06:24] :red_exclamation_mark:
[15:57:51] :octopus: Pulling code changes from Github…
[15:57:51] :package: Processing dependencies…
[18:21:14] :rocket: Starting up repository: ‘powerball-app’, branch: ‘main’, main module: ‘app.py’
[18:21:14] :octopus: Cloning repository…
[18:21:14] :octopus: Cloning into ‘/mount/src/powerball-app’…

[18:21:14] :octopus: Cloned repository!
[18:21:14] :octopus: Pulling code changes from Github…
[18:21:15] :package: Processing dependencies…

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Using Python 3.13.7 environment at /home/adminuser/venv
Resolved 47 packages in 434ms
[19:06:37] :snake: Python dependencies were installed from /mount/src/powerball-app/requirements.txt using uv.
[19:06:39] :package: Processed dependencies!
[19:06:44] :red_exclamation_mark:
[20:58:48] :octopus: Pulling code changes from Github…
[20:58:48] :package: Processing dependencies…
[20:58:58] :electric_plug: Disconnecting…
[20:59:03] :desktop_computer: Provisioning machine…
[20:59:09] :control_knobs: Preparing system…
[20:59:16] :chains: Spinning up manager process…
[20:59:23] :balloon: Inflating balloons…
[20:59:30] :open_book: Unpacking Comic Sans RAR files…
[20:59:37] :construction: Loading “Under construction” GIF…
[20:59:44] :hammer_and_wrench: Compiling tags…
[20:59:50] :fax_machine: Initializing Java applet…
[20:59:56] :hourglass_not_done: Please wait…
[20:59:01] :rocket: Starting up repository: ‘powerball-app’, branch: ‘main’, main module: ‘app.py’
[20:59:01] :octopus: Cloning repository…
[20:59:01] :octopus: Cloning into ‘/mount/src/powerball-app’…

[20:59:01] :octopus: Cloned repository!
[20:59:01] :octopus: Pulling code changes from Github…
[20:59:01] :package: Processing dependencies…

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Using Python 3.13.7 environment at /home/adminuser/venv
Resolved 47 packages in 445ms

I have seen this before. It seems to be a bug in streamlit cloud. The logs just say “Resolved 47 packages”, but nothing about the installation of those packages. This should not happen: there should be messages telling you which specific packages are being installed and whether the installation of each package succeeded or not.

You have some quite old dependencis and I am guessing the cloud environment is trying to build them (that is why the cooking takes that long) and failing in such a catastropic way that the error messages can’t be properly displayed.

Switching to an older python or more recent dependencies might make your app work.