Issue1184

classification
Title: Jython 2.2.1 - ImportError: cannot import name zxJDBC
Type: behaviour Severity: normal
Components: Jythonc compiler, zxjdbc Versions:
Milestone:
process
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.

Messages
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" checkDB.py" the
compilation shows no error.
The execution ""C:\Program Files\Java\jdk1.6.0_10\bin\java" -jar
check.jar HOST jdbc:oracle:thin:@10.230.33.21:1521:devdb01 USER PASSWD"
runs into the following error:
Exception in thread "main" Traceback (innermost last):
  File "D:\checkDB.py", line 0, in main
ImportError: cannot import name zxJDBC
I have the same Problems on Windows and on Linux.
The code of checkDB.py:
-----------------------
#/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,
"oracle.jdbc.driver.OracleDriver")
READoracleCursor = READoracleConn.cursor()
READoracleCursor.arraysize = 50

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

# Disconnect von Instance...
close=READoracleConn.close()
msg4287 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-14.02:37:07
jythonc is no longer maintained.
History
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