I created a .pyd file as the module for my streamlit app. It worked very well locally. But when I deployed it on Streamlit Cloud, it couldn’t find the module and import it. The python version of building the .pyd file is consistent with the python environment with the deployment. An init.py file was also added. The module route and spelling are verified.
Does anyone have a similar experience and solution? Thanks a lot!
The solution is building the extension for Linux. pyd files are windows only.
Thanks very much @Goyo. Yes. you are right. I should make .so file for the module:-). I will try this solution.
Hi @Goyo, I made the .so file in a ubuntu system and tried again in streamllit cloud. But I still got ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32’ not found in streamlit cloud.
I also checked the streamlit cloud and it responds GLIBC version: GLIBC version: ldd (Debian GLIBC 2.31-13+deb11u10) 2.31.
Are there any hints of solving this problem? I tried to install GLIBC 2.31 in my ubuntu system but failed. Thanks a lot!
Sorry, no idea.
@Goyo Thanks also!
I finally succeeded in importing the .so file on Streamlit Cloud by making it using the Debian 11 system, which is consistent with the cloud.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.