Message867
Jythonc (2.1 and 2.2a0) does not like it when -C option
and --package option is used together like below:
jythonc -C NONE -package net.mypackage
net/mypackage/*.py
Will result in a meaningless (and highly annoying)
exception like this:
C:\myprogram\python-test>jythonc -C NONE --package
net.mypackage *.py
processing PythonHello
Required packages:
net.mypackage
Creating adapters:
Creating .java files:
PythonHello module
PythonHello extends java.lang.Object implements
net.mypackage.PythonAction
Leaving .java files, no compiler specified
Traceback (innermost last):
File "C:\javalibs\jython-2.1\Tools\jythonc\jythonc.py",
line 5, in ?
File "C:\javalibs\jython-2.1\Tools\jythonc\main.py",
line 301, in main
File "C:\javalibs\jython-2.1\Tools\jythonc\main.py",
line 262, in writeResults
File "C:\javalibs\jython-2.1\Tools\jythonc\main.py",
line 236, in copyclass
java.io.FileNotFoundException: .\jpywork\net\mypackage
\PythonHello.class (The sy
stem cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>
(FileInputStream.java:106)
at java.io.FileInputStream.<init>
(FileInputStream.java:66)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInsta
nce(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance
(Constructor.java:274)
at
org.python.core.PyReflectedConstructor.__call__
(PyReflectedConstructo
r.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(C:\javalibs\jython-2.1
\Tools\jythonc\main.py:236)
at main$py.call_function(C:\javalibs\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(C:\javalibs\jython-2.1
\Tools\jythonc\main.py:2
62)
at main$py.call_function(C:\javalibs\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(C:\javalibs\jython-2.1
\Tools\jythonc\main.py:301)
at main$py.call_function(C:\javalibs\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
(C:\javalibs\jython-2.1\Tools\jythonc\jyth
onc.py:5)
at org.python.pycode._pyx0.call_function
(C:\javalibs\jython-2.1\Tools\jy
thonc\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\net\mypa
ckage\PythonHello.class (The system cannot find the
file specified)
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:16 | admin | link | issue813316 messages |
2008-02-20 17:17:16 | admin | create | |
|