jython import

Kevin Dahlhausen kdahlhaus at yahoo.com
Fri Feb 13 15:22:05 EST 2004


Been digging and could not find the answer to this.
I'd be very grateful if someone could help.

I can't import a class from a packackge that is nested:
--
import sys
sys.path.append("hsqldb.jar")
import org.hsqldb

print dir(org.hsqldb)
v = org.hsqldb.View()
--
The output is a the dir listing of hsqldb, including View, and the
following error:

File "test.py", line 6, in ?
AttributeError: java package 'org.hsqldb' has no attribute 'View'
Signal 127

51 /testing:


Any idea why this fails?  I saw other people with the same problem,
but no reasons or ideas as to how to fix.



More information about the Python-list mailing list