$ jython jzJDBC.py --verify
Traceback (innermost last):
File "jzJDBC.py", line 3, in ?
DatabaseError: driver [org.postgresql.Driver] not found
On Sun, Dec 7, 2008 at 7:17 PM, Mike Hoy <mhoy06@...> wrote:
> I am trying to use a database with my program and I thought I would
> follow one example I found on the net:
> from com.ziclix.python.sql import zxJDBC
> db = zxJDBC.connect("jdbc:postgresql://localhost/racing/", "bzimmer",
> None, "org.postgresql.Driver")
> c = db.cursor()
> c.execute("select * from bz")
> for row in c:
> print row
> It results in error:
> Traceback (innermost last):
> File "jzJDBC.py", line 3, in ?
> DatabaseError: driver [org.postgresql.Driver] not found
> Do I have to install some additional software to make this work? I
> googled it and one answer was to use the --verify option. And that
> just spit:
> $ jython --verify jzJDBC.py
> jython: illegal option -- verify
> Any help or suggestions appreciated.