Error: from uvicorn then stops the app launch

Good day,

During launching app at local host, all of a sudden the app stucked in running, unable to open then recieved a uvicorn message of app shutdown in the terminal.

python -m streamlit run main.py

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8503
  Network URL: http://192.168.8.113:8503

INFO:     Started server process [11908]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
ERROR:    [Errno 10048] error while attempting to bind on address ('127.0.0.1', 5000): only one usage of each socket address (protocol/network address/port) is normally permitted
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.

for your kind support if you have experience with similar issue.

thanks

updated view

loading page keeps in running and never load the page.

meanwhile, the terminal log

Local URL: http://localhost:8501
Network URL: http://192.168.8.113:8501

INFO: Started server process [1196]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:5000 (Press CTRL+C to quit)

1 Like

Resolved via new environment

1 Like

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