Message4824

Author tzellman
Recipients tzellman
Date 2009-06-19.15:45:02
SpamBayes Score 5.143108e-13
Marked as misclassified No
Message-id <1245426303.24.0.272103765524.issue1383@psf.upfronthosting.co.za>
In-reply-to
Content
I am using the Jython 2.5 release posted on SourceForge.
I am embedding the interpreter inside my Java code. 

Code that worked perfectly under Jython 2.2 is now failing with an
ImportError. Jython is failing to find Java-based modules after I import
* from a parent package. For example:

from my.java.package import *
from my.java.package.checks import *
from my.java.package.actions import *

Jython fails with this error message:
"ImportError: No module named checks"

If I instead strip out the * imports and import objects directly from
the modules, everything works normally.

A little more insight into what I am doing: I create the interpreter,
then pass it a string of Python code that essentially loads a
directory/module where Jython plug-in scripts are located. Those scripts
then import java modules available within the current Java process.
History
Date User Action Args
2009-06-19 15:45:03tzellmansetrecipients: + tzellman
2009-06-19 15:45:03tzellmansetmessageid: <1245426303.24.0.272103765524.issue1383@psf.upfronthosting.co.za>
2009-06-19 15:45:03tzellmanlinkissue1383 messages
2009-06-19 15:45:02tzellmancreate