Error using ibm_db_dbi in Python.
Issue #122
resolved
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)
-
-
reporter Thanks much that fixed it!
-
- changed status to resolved
- Log in to comment
It seems you may have installed
ibm_db
withpip3
. For this package, you’ll want to install the RPM form instead. So uninstall withpip3
and thenyum install python3-ibm_db
and that should get you working.