I have tried to connect to DB2 with python using JDBC with the code below but somehow it shows me the error
My code:
import jaydebeapi
import jpype
jaydebeapi.connect('com.ibm.db2.jcc.DB2Driver','jdbc:db2://host:port/database',['username','password'],'Location of jar db2jcc-db2jcc4.jar')
Error Error
To give more context on it I have used jaydebeapi package and also tried the solution provided in one of the stack overflow solution but still having the same issues. Error importing jpype module. Moreover I am using Pycharm as my IDE