Hello, I am running a text compression code that I made in C++ on Streamlit, and it works when executing Streamlit through Colab, for example, because the packages I need (libc6 and libstdc++6) can be installed directly through Colab. However, when I deploy the project on the Streamlit website, it gives an error saying that the required version of the aforementioned packages cannot be found. Is there any way to overcome this error?
Are you installing them with packages.txt
? Do you have a link to your repo? What are the full error logs when installing libc6
and libstdc+6
?
Iโm installing it, but it needs a more updated version of the packages.
when you add a file and execute the program, it returns the following error:
Error executing the command: ./main a.txt --compress --max-bits 12
./main: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38' not found (required by ./main) ./main: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.35โ not found (required by ./main) ./main: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by ./main) ./main: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.32โ not found (required by ./main) ./main: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by ./main) ./main: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.36โ not found (required by ./main)
I just fixed the error after a few hours of trying, but the solution was not through Streamlit. I simply compiled my program with a flag that included the libraries I needed along with the executable. It must be complicated, but I think it would be good to have a more advanced option within Streamlit to allow updating the server system with newer packages.
Can you confirm if there are any related messages from when dependencies are installed? This looks like an error from when it tries to use it, so there may be an earlier hint.
Hey @Iago
Unfortunately right now we are running all apps on debian 11 which is probably missing your dependency.
For debian 12 our plan was to release it together with python3.13 which we hope to deliver by the end of year. You can find more details in this thread
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.