From: SourceForge.net <no...@so...> - 2003-11-06 22:54:05
|
Bugs item #522006, was opened at 2002-02-24 08:13 Message generated for change (Comment added) made by pedronis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=522006&group_id=12867 Category: Jythonc compiler Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: --compiler NONE --package something bug Initial Comment: When the --compiler NONE and --package something options are set, you get a FileNotFoundException because main.py tries to move the expected .class files into the correct package directory but the .class files were never generated. [psurette@p3 jysources]$ jythonc --compiler NONE --package some.package some/package/Echo.py :java_readline-0.7.0/java_readline.jar LD_LIBRARY_PATH=/usr/local/jython-2.1/java_readline-0.7.0 "/usr/local/jdk1.3.1_01/jre/bin/java" -Dpython.home="/usr/local/jython-2.1" -classpath "/usr/local/jython-2.1/jython.jar:$CLASSPATH" "org.python.util.jython" "$@" processing Echo Required packages: java.lang Creating adapters: Creating .java files: Echo module Echo extends java.lang.Object Leaving .java files, no compiler specified Traceback (innermost last): File "/usr/local/jython-2.1/Tools/jythonc/jythonc.py", line 5, in ? File "/usr/local/jython-2.1/Tools/jythonc/main.py", line 301, in main File "/usr/local/jython-2.1/Tools/jythonc/main.py", line 262, in writeResults File "/usr/local/jython-2.1/Tools/jythonc/main.py", line 236, in copyclass java.io.FileNotFoundException: ./jpywork/some/package/Echo.class (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:64) at java.lang.reflect.Constructor.newInstance(Native Method) at org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructor.java) at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java) at org.python.core.PyJavaClass.__call__(PyJavaClass.java) at org.python.core.PyObject.__call__(PyObject.java) at main$py.copyclass$7(/usr/local/jython-2.1/Tools/jythonc/main.py:236) at main$py.call_function(/usr/local/jython-2.1/Tools/jythonc/main.py) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyFunction.__call__(PyFunction.java) at main$py.writeResults$8(/usr/local/jython-2.1/Tools/jythonc/main.py:262) at main$py.call_function(/usr/local/jython-2.1/Tools/jythonc/main.py) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyFunction.__call__(PyFunction.java) at main$py.main$9(/usr/local/jython-2.1/Tools/jythonc/main.py:301) at main$py.call_function(/usr/local/jython-2.1/Tools/jythonc/main.py) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyFunction.__call__(PyFunction.java) at org.python.core.PyObject.invoke(PyObject.java) at org.python.pycode._pyx0.f$0(/usr/local/jython-2.1/Tools/jythonc/jythonc.py:5) at org.python.pycode._pyx0.call_function(/usr/local/jython-2.1/Tools/jythonc/jythonc.py) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.__builtin__.execfile_flags(__builtin__.java) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java) at org.python.util.jython.main(jython.java) java.io.FileNotFoundException: java.io.FileNotFoundException: ./jpywork/some/package/Echo.class (No such file or directory) ---------------------------------------------------------------------- >Comment By: Samuele Pedroni (pedronis) Date: 2003-11-06 22:54 Message: Logged In: YES user_id=61408 specifying --deep too works around the bug. the patch for Tools/jythonc/main.py should fix it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=522006&group_id=12867 |