ImportError: cannot open shared object file: No such file or directory

I’m trying to deploy an app that fetches data from my DB2 database.
I got an error that cannot be found.


Hi @AJmadea, welcome to the Streamlit community!! :wave: :partying_face:

This is a straightforward fix :slight_smile: libxml2 is an apt-get (system) dependency for the ibm_db Python package. i.e. ibm_db requires libxml2 to be installed on the machine.

To install it, create a packages.txt file in your repo containing the following entry:


Once you’ve made the change and have rebooted your app, ibm_db will be successfully imported. Let us know if that is not the case.

Happy Streamlit’ing! :balloon: