From: Samuele P. <ped...@bl...> - 2003-11-09 18:00:06
|
At 05:12 09.11.2003 -0800, Kevin Nardi wrote: >I have this problem: > ># A.py > >import B > >class A: > b = B() > ># B.py > >class B: > pass > >When I try to compile (using the JythonCAntTask), I get this error: > > Creating .java files: > File "c:\jython-2.1\Tools\jythonc\main.py", line 301, in main > File "c:\jython-2.1\Tools\jythonc\main.py", line 221, in >doCompile > A module > File "c:\jython-2.1\Tools\jythonc\compile.py", line 389, in >dump > File "c:\jython-2.1\Tools\jythonc\compile.py", line 325, in > preprocessModule > File "c:\jython-2.1\Tools\jythonc\compile.py", line 312, in > makeJavaProxy > File "c:\jython-2.1\Tools\jythonc\compile.py", line 58, in >getsig > File "c:\jython-2.1\Tools\jythonc\compile.py", line 84, in > insistJavaClass > ValueError: can not find class: B > >I've tried various compiler options, but I haven't been lucky enough to >find a solution that works. funny because A.py+B.py will never produce that traceback, it's more likely for something like: import java class A(java.lang.Object): def meth(x): "@sig public void meth(B x)" pass regards. |