Re: Error running Jython3
Isaiah Peng <[email protected]>
| Newsgroups | gmane.comp.lang.jython.devel |
|---|---|
| Message-ID | <CAFxYmVpyPL0SnnpTRE1FLuL=_ZERduG7_jFWF6A1Tmc+XAUzTw@mail.gmail.com> |
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 <[email protected]> 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 <[email protected]> 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 >> >> > ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jython-dev