Recently, jaydebeapi updated and i now cannot connect with my old code. https://github.com/baztian/jaydebeapi
This is the docs from the jaydebeapi source on connection:
>>> import jaydebeapi
>>> conn = jaydebeapi.connect('org.hsqldb.jdbcDriver',
... 'jdbc:hsqldb:mem:.',
... ['SA', ''],
... '/path/to/hsqldb.jar',)
>>> curs = conn.cursor()
And this is how i am doing it:
53 curs, conn = None, None
54 try:
55 thisdir = os.path.dirname(os.path.abspath(__file__))
56
57 join = os.path.join
58 conn = jaydebeapi.connect('com.teradata.jdbc.TeraDriver',
59 ['jdbc:teradata://%s/CHARSET=UTF8' % system, username, password],
60 jars=[join(thisdir, 'lib/tdgssconfig.jar'),
61 join(thisdir, 'lib/terajdbc4.jar')])
62
63
64 curs = conn.cursor()
Error i got:
join(thisdir, 'lib/terajdbc4.jar')])
File "/app/.heroku/python/lib/python2.7/site-packages/jaydebeapi/__init__.py", line 380, in connect
jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs)
File "/app/.heroku/python/lib/python2.7/site-packages/jaydebeapi/__init__.py", line 199, in _jdbc_connect_jpype
return jpype.java.sql.DriverManager.getConnection(url, *dargs)
RuntimeError: No matching overloads found. at native/common/jp_method.cpp:121
My code was working before but with the new updates, it stopped. Can someone show me what changes i need to make to my code?