Error running streamlit app on EC2

I am trying to host a Streamlit app on an AWS EC2 instance but I keep getting the following error when I run the app. must be installed for pthread_cancel to work

Streamlit attempts to launch the app and prints the Network URL and External URL, but it instantly crashes and the message above is the only error message I get.

I am able to successfully run the “streamlit hello” demo, but my custom app does not load.

Any ideas on how to help?

Thank you!

Hi @ejnunn, welcome to the Streamlit community!

GCC is a compiler, so it looks like one of the packages you are looking to import has some C code (I would guess) that needs something. GCC is installed using sudo apt install gcc or similar, depending on what flavor of Linux you are using.

I was able to fix my issue by running on a different EC2 instance. The error occured running on Amazon Linux, but my app runs successfully on an Ubuntu instance. Not sure why haha. Thanks for your help!

1 Like