Title: Jython 2.2.1 - ImportError: cannot import name zxJDBC
Type: behaviour Severity: normal
Components: Jythonc compiler, zxjdbc Versions:
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, mju
Priority: Keywords:

Created on 2008-11-26.10:20:50 by mju, last changed 2009-03-14.02:37:07 by fwierzbicki.

msg3849 (view) Author: (mju) Date: 2008-11-26.10:20:49
After compiling with "jythonc --jar check.jar --all --core --compiler
"C:\Program Files\Java\jdk1.6.0_10\bin\javac.exe"" the
compilation shows no error.
The execution ""C:\Program Files\Java\jdk1.6.0_10\bin\java" -jar
check.jar HOST jdbc:oracle:thin:@ USER PASSWD"
runs into the following error:
Exception in thread "main" Traceback (innermost last):
  File "D:\", line 0, in main
ImportError: cannot import name zxJDBC
I have the same Problems on Windows and on Linux.
The code of
#/usr/bin/env jython
# -*- coding: utf-8 -*-

from com.ziclix.python.sql import zxJDBC
import sys
import string

argsDB = string.upper(sys.argv[1])
argsurl = sys.argv[2]
argsuser = sys.argv[3]
argspwd = sys.argv[4]

READoracleConn = zxJDBC.connect(argsurl, argsuser, argspwd,
READoracleCursor = READoracleConn.cursor()
READoracleCursor.arraysize = 50

READoracleCursor.execute("""SELECT 1 FROM dual""")
results = READoracleCursor.fetchall()
for line in results:
      print ofd

# Disconnect von Instance...
msg4287 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-14.02:37:07
jythonc is no longer maintained.
Date User Action Args
2009-03-14 02:37:07fwierzbickisetstatus: open -> closed
resolution: wont fix
messages: + msg4287
nosy: + fwierzbicki
2008-12-01 15:41:34mjusetcomponents: + zxjdbc
2008-12-01 15:40:34mjusetcomponents: + Jythonc compiler, - zxjdbc
2008-11-26 10:20:50mjucreate