From: Patrick P. <psy...@gm...> - 2018-01-04 02:47:21
|
I was able to find the Jython3 package on GitHub, so I coned the reposaitory. I built it with Ant like I did for Jython 2.7.2a1+ (seeing no other instructions in the README file). It reported a successful build. I am using the openJDK-9 (well, my system says: javac 9-internal). Could that be the reson? I've had no problems until now and works when building 2.7.2. When I execute ./jython, I get the following: java.io.FileNotFoundException: src/resources/frozen_importlib/_frozen_importlib.class (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at org.python.core.PySystemState.doInitialize(PySystemState.java:1152) at org.python.core.PySystemState.initialize(PySystemState.java:1007) at org.python.core.PySystemState.initialize(PySystemState.java:962) at org.python.core.PySystemState.initialize(PySystemState.java:957) at org.python.util.jython.run(jython.java:254) at org.python.util.jython.main(jython.java:141) Exception in thread "main" java.lang.NullPointerException at org.python.core.imp.import_next(imp.java:735) at org.python.core.imp.import_first(imp.java:770) at org.python.core.imp.load(imp.java:616) at org.python.core.Py.importSiteIfSelected(Py.java:1922) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:114) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:92) at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:39) at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:28) at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:68) at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:54) at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:34) at org.python.util.jython.run(jython.java:275) at org.python.util.jython. Should I build with a different Java? I have JDK1.8.0_151 and OpenJDK-8 also. My system is Ubuntu 16.04. Thanks, - *Patrick Palczewski* _VRS# 818.208.2344_ /Sent from Thunderbird Mail for Linux/ |
From: Isaiah P. <is...@gm...> - 2018-01-04 09:48:37
|
Hi Patrick, That's my fault, I forgot to commit the "frozen" module, also the path is hardcoded, but will handle that later. Will let you know when I have a fix. Regards, Isaiah On Thu, 4 Jan 2018 at 03:47 Patrick Palczewski <psy...@gm...> wrote: > I was able to find the Jython3 package on GitHub, so I coned the > reposaitory. > > I built it with Ant like I did for Jython 2.7.2a1+ (seeing no other > instructions in the README file). It reported a successful build. I am > using the openJDK-9 (well, my system says: javac 9-internal). Could that be > the reson? I've had no problems until now and works when building 2.7.2. > > When I execute ./jython, I get the following: > > java.io.FileNotFoundException: > src/resources/frozen_importlib/_frozen_importlib.class (No such file or > directory) > at java.io.FileInputStream.open0(Native Method) > at java.io.FileInputStream.open(FileInputStream.java:195) > at java.io.FileInputStream.<init>(FileInputStream.java:138) > at org.python.core.PySystemState.doInitialize(PySystemState.java:1152) > at org.python.core.PySystemState.initialize(PySystemState.java:1007) > at org.python.core.PySystemState.initialize(PySystemState.java:962) > at org.python.core.PySystemState.initialize(PySystemState.java:957) > at org.python.util.jython.run(jython.java:254) > at org.python.util.jython.main(jython.java:141) > Exception in thread "main" java.lang.NullPointerException > at org.python.core.imp.import_next(imp.java:735) > at org.python.core.imp.import_first(imp.java:770) > at org.python.core.imp.load(imp.java:616) > at org.python.core.Py.importSiteIfSelected(Py.java:1922) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:114) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:92) > at > org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:39) > at > org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:28) > at > org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:68) > at > org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:54) > at > org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:34) > at org.python.util.jython.run(jython.java:275) > at org.python.util.jython. > > Should I build with a different Java? I have JDK1.8.0_151 and OpenJDK-8 > also. > > My system is Ubuntu 16.04. > > > Thanks, > - *Patrick Palczewski* > *VRS# 818.208.2344 <(818)%20208-2344>* > *Sent from Thunderbird Mail for Linux* > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev > |
From: Isaiah P. <is...@gm...> - 2018-01-04 10:01:07
|
The file is actually there, but since it uses relative path, you have to execute the command with "dist/bin/jython". Hope it helps. On Thu, 4 Jan 2018 at 10:48 Isaiah Peng <is...@gm...> wrote: > Hi Patrick, > > That's my fault, I forgot to commit the "frozen" module, also the path is > hardcoded, but will handle that later. > Will let you know when I have a fix. > > Regards, > Isaiah > > On Thu, 4 Jan 2018 at 03:47 Patrick Palczewski <psy...@gm...> > wrote: > >> I was able to find the Jython3 package on GitHub, so I coned the >> reposaitory. >> >> I built it with Ant like I did for Jython 2.7.2a1+ (seeing no other >> instructions in the README file). It reported a successful build. I am >> using the openJDK-9 (well, my system says: javac 9-internal). Could that be >> the reson? I've had no problems until now and works when building 2.7.2. >> >> When I execute ./jython, I get the following: >> >> java.io.FileNotFoundException: >> src/resources/frozen_importlib/_frozen_importlib.class (No such file or >> directory) >> at java.io.FileInputStream.open0(Native Method) >> at java.io.FileInputStream.open(FileInputStream.java:195) >> at java.io.FileInputStream.<init>(FileInputStream.java:138) >> at org.python.core.PySystemState.doInitialize(PySystemState.java:1152) >> at org.python.core.PySystemState.initialize(PySystemState.java:1007) >> at org.python.core.PySystemState.initialize(PySystemState.java:962) >> at org.python.core.PySystemState.initialize(PySystemState.java:957) >> at org.python.util.jython.run(jython.java:254) >> at org.python.util.jython.main(jython.java:141) >> Exception in thread "main" java.lang.NullPointerException >> at org.python.core.imp.import_next(imp.java:735) >> at org.python.core.imp.import_first(imp.java:770) >> at org.python.core.imp.load(imp.java:616) >> at org.python.core.Py.importSiteIfSelected(Py.java:1922) >> at >> org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:114) >> at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:92) >> at >> org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:39) >> at >> org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:28) >> at >> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:68) >> at >> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:54) >> at >> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:34) >> at org.python.util.jython.run(jython.java:275) >> at org.python.util.jython. >> >> Should I build with a different Java? I have JDK1.8.0_151 and OpenJDK-8 >> also. >> >> My system is Ubuntu 16.04. >> >> >> Thanks, >> - *Patrick Palczewski* >> *VRS# 818.208.2344 <(818)%20208-2344>* >> *Sent from Thunderbird Mail for Linux* >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Jython-dev mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-dev >> > |
From: Jeff A. <ja...@fa...> - 2018-01-04 18:02:16
|
Hi Isaiah. Since that module stops Jython 3 running on Windows, it would be good to have a little account of how to build it from source. There's a section in the developer guide intended for that. (http://jython-devguide.readthedocs.io/en/jython/setup_jy.html#manually-regenerated-files) Generally we'd like to reduce/eliminate checked in blobs, but that's a longer work. Jeff Jeff Allen On 04/01/2018 10:00, Isaiah Peng wrote: > The file is actually there, but since it uses relative path, you have > to execute the command with "dist/bin/jython". Hope it helps. > > On Thu, 4 Jan 2018 at 10:48 Isaiah Peng <is...@gm... > <mailto:is...@gm...>> wrote: > > Hi Patrick, > > That's my fault, I forgot to commit the "frozen" module, also the > path is hardcoded, but will handle that later. > Will let you know when I have a fix. > > Regards, > Isaiah > |
From: Isaiah P. <is...@gm...> - 2018-01-04 18:13:23
|
Hi Jeff, That's not the problem that affects windows, i think on windows it requires the `winreg` module, which is not implemented. The `_frozen_importlib` is not normal blobs, it's the equivalent of cpython frozen module, which is the compiled code of the `importlib/_bootstrap` and `importlib/_bootstrap_external`, it's need to bootstrap the import machinery. The problem here is that it should use ClassLoader.getResourceAsStream to read the class file instead of using a hardcoded file reader. Cheers, Isaiah On Thu, 4 Jan 2018 at 19:02 Jeff Allen <ja...@fa...> wrote: > Hi Isaiah. > > Since that module stops Jython 3 running on Windows, it would be good to > have a little account of how to build it from source. There's a section in > the developer guide intended for that. ( > http://jython-devguide.readthedocs.io/en/jython/setup_jy.html#manually-regenerated-files > ) > > Generally we'd like to reduce/eliminate checked in blobs, but that's a > longer work. > Jeff > > Jeff Allen > > On 04/01/2018 10:00, Isaiah Peng wrote: > > The file is actually there, but since it uses relative path, you have to > execute the command with "dist/bin/jython". Hope it helps. > > On Thu, 4 Jan 2018 at 10:48 Isaiah Peng <is...@gm...> wrote: > >> Hi Patrick, >> >> That's my fault, I forgot to commit the "frozen" module, also the path is >> hardcoded, but will handle that later. >> Will let you know when I have a fix. >> >> Regards, >> Isaiah >> >> > |