Error using ibm_db_dbi in Python.

Issue #122 resolved
Jason Olson created an issue

I’m trying to open a connection in a python program, but I keep getting this error,

ImportError: 0509-022 Cannot load module /QOpenSys/pkgs/lib/python3.6/site-packages/ibm_db.so.
0509-150 Dependent module libdb2.a(shr_64.o) could not be loaded.
0509-022 Cannot load module libdb2.a(shr_64.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /QOpenSys/pkgs/lib/python3.6/site-packages/ibm_db.so.
0509-150 Dependent module /QOpenSys/pkgs/lib/python3.6/site-packages/ibm_db.so could not be loaded.

What seems to be the problem here?

Comments (3)

  1. Jesse G

    It seems you may have installed ibm_db with pip3. For this package, you’ll want to install the RPM form instead. So uninstall with pip3 and then yum install python3-ibm_db and that should get you working.

  2. Log in to comment