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.
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted.
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.
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!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.