ImportError: libxml2.so.2: 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 libxml2.so.2 cannot be found.


repository

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:

libxml2

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:
Snehan