Message642

Author nobody
Recipients
Date 2004-01-08.21:45:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: NO 

I'm having similar problems using the xml.* libraries.  Sounds 
like the same problem?

Having trouble with package imports in jythonc, both jython 2.
1 and 2.2a0.  I've found various other people complaining of 
similar issues, but haven't seen a good resolution - is it an 
unavoidable issue?

Simplest case I've found is this two-liner, foo.py:

from xml.sax.drivers2.drv_xmlproc import create_parser
print create_parser()

After jythonc via:

d:/jython2-1a/jythonc --compiler c:/j2sdk1.4.2_03/bin/javac.
exe --deep --jar foo.jar foo.py

and run via:

c:/j2sdk1.4.2_03/bin/java -cp ./foo.jar;d:/jython2-1a/jython.
jar foo

it reports:

ImportError: cannot import name xmlval

If you use the slight variation:

from xml.sax.drivers2 import drv_xmlproc
print drv_xmlproc.create_parser()

you get:

ImportError: cannot import name drv_xmlproc
History
Date User Action Args
2008-02-20 17:17:05adminlinkissue542389 messages
2008-02-20 17:17:05admincreate