From: <no...@so...> - 2001-06-14 12:16:35
|
Bugs item #415933, was updated on 2001-04-13 10:04 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=415933&group_id=12867 Category: Jythonc compiler Group: None Status: Open Resolution: None Priority: 5 Submitted By: Finn Bock (bckfnn) >Assigned to: Samuele Pedroni (pedronis) Summary: dependency problem with jythonc Initial Comment: [Posted to jython-dev by Kexx] Here's a short failure scenario: -- module Main.py in root/current package -- # commented -- from amod.A import A from bmod.B import B B().bfunc() -- end Main.py -- -- module A.py in package/directory apkg -- class A: def afunc(self): return "kermits" -- end A.py -- -- module B.py in package/directory bpkg -- from apkg.A import A class B: def bfunc(self): print A().afunc() -- end B.py -- I also have 2 empty __init__.py files (one for apkg, the other for = bpkg). Now, "jython Main.py" works just fine ("kermits" is printed). Here's the output from "jythonc --deep" at compile time: -- start -- E:\projects\jytest\2>jythonc --deep Main.py processing Main processing bpkg.B processing apkg.A processing bpkg.__init__ Next, we go to "./jpywork" and do a "java Main" and get: -- start -- Java Traceback: Traceback (innermost last): File "E:\projects\jytest\2\Main.py", line 0, in main File "E:\projects\jytest\2\bpkg\B.py", line 0, in main ImportError: no module named apkg -- end -- ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=415933&group_id=12867 |