By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,198 Members | 957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,198 IT Pros & Developers. It's quick & easy.

jpype and zxJDBC

P: n/a
I would love to be able to use jdbc drivers using the python db 2.0 api
and cpython.

Has anyone used jpype and zxJDBC (distributed with jython) together? I
am trying and what I have tried does not yet work. If I figure
anything out that works I will post it here.

Thanks

Apr 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
No luck yet with the python db api.

I keep getting this error when trying to create a
com.ziclix.python.sql.PyConnection object:

File "/usr/lib/python2.4/site-packages/jpype/_jpackage.py", line 53,
in __call__
raise TypeError, "Package "+self.__name+" is not Callable"
TypeError: Package com.ziclix.python.sql.PyConnection is not Callable

But if I use jython on the same machine and create the PyConnection
object (I checked and the jython jar file is loaded fine both times) it
works.

So, I decided to try to see if I could use jdbc from cpython using
jpype and that works great. It's quite a bit faster then using jython
and the db api on the same database my tests too.

Apr 10 '06 #2

P: n/a
benchline wrote:
So, I decided to try to see if I could use jdbc from cpython using
jpype and that works great. It's quite a bit faster then using jython
and the db api on the same database my tests too.


Did you compare jpype/jdbc with jython/jdbc? I wonder if the slowdown
might be in zxJDBC?

Kent
Apr 10 '06 #3

P: n/a
I haven't compared them, and you may be exacly right.

Paul

Apr 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.