#jython IRC Log (v0.9)

Index

IRC Log for 2017-04-21

Timestamps are in GMT/BST.

[1:29] * xemdetia (~xemdetia@129.42.208.174) Quit (Ping timeout: 240 seconds)
[4:48] * Parisa (~parterda@2001:420:c0e0:1006::196) has joined #jython
[5:16] * Parisa (~parterda@2001:420:c0e0:1006::196) Quit (Ping timeout: 260 seconds)
[6:01] * Parisa (~parterda@72.163.220.10) has joined #jython
[6:25] <Parisa> hi All
[6:25] <Parisa> are pyc files compiled in Windows would be compatible with Linux?
[8:03] * Parisa (~parterda@72.163.220.10) Quit (Ping timeout: 268 seconds)
[8:17] * Parisa (~parterda@72.163.220.10) has joined #jython
[8:25] * girish946 (~gsjoshi@103.51.153.189) has joined #jython
[8:25] * girish946 (~gsjoshi@103.51.153.189) Quit (Max SendQ exceeded)
[8:26] * girish946 (~gsjoshi@103.51.153.189) has joined #jython
[8:26] * girish946 (~gsjoshi@103.51.153.189) Quit (Max SendQ exceeded)
[9:39] * Parisa (~parterda@72.163.220.10) Quit (Remote host closed the connection)
[9:39] * Parisa (~parterda@72.163.220.10) has joined #jython
[10:46] * Parisa (~parterda@72.163.220.10) Quit (Remote host closed the connection)
[10:46] * Parisa (~parterda@72.163.220.10) has joined #jython
[11:11] * Parisa (~parterda@72.163.220.10) Quit (Ping timeout: 260 seconds)
[11:42] * Parisa (~parterda@72.163.220.10) has joined #jython
[11:55] <Parisa> hi all
[11:55] <Parisa> i understood that there are some fixes available in latest code base
[11:55] <Parisa> for 65KB limitation of modules
[11:56] <Parisa> java.lang.RuntimeException: java.lang.RuntimeException:
[11:56] <Parisa> Encountered too large method code in
[11:56] <Parisa> so took latest code and tried to run the same
[11:56] <Parisa> then i found this error
[11:57] <Parisa> Please provide a CPython 2.7 bytecode file (.pyc) to proceed, e.g. run
[11:57] <Parisa> python -m py_compile __pyclasspath__/ucsmsdk/ucsmeta3.py
[11:57] <Parisa> and try again.
[11:57] <Parisa> so i created pyc file for module
[11:57] <Parisa> and retried
[11:57] <Parisa> where it says
[11:58] <Parisa> ImportError: No module named ucsmsdk.ucsmeta
[11:58] <Parisa> at org.python.core.Py.ImportError(Py.java:330)
[11:58] <Parisa> at org.python.core.imp.import_first(imp.java:871)
[11:58] <Parisa> at org.python.core.imp.import_module_level(imp.java:957)
[11:58] <Parisa> at org.python.core.imp.importName(imp.java:1043)
[11:58] <Parisa> at org.python.core.ImportFunction.__call__(__builtin__.java:1280)
[11:58] <Parisa> at org.python.core.PyObject.__call__(PyObject.java:450)
[11:58] <Parisa> at org.python.core.__builtin__.__import__(__builtin__.java:1232)
[11:58] <Parisa> at org.python.core.imp.importFromAs(imp.java:1135)
[11:58] <Parisa> at org.python.core.imp.importFrom(imp.java:1110)
[11:58] <Parisa> at ucsmsdk.ucscoreutils$py.f$0(__pyclasspath__/ucsmsdk/ucscoreutils.py:638)
[11:58] <Parisa> at ucsmsdk.ucscoreutils$py.call_function(__pyclasspath__/ucsmsdk/ucscoreutils.py)
[11:58] <Parisa> at org.python.core.PyTableCode.call(PyTableCode.java:167)
[11:58] <Parisa> at org.python.core.PyCode.call(PyCode.java:18)
[11:58] <Parisa> at org.python.core.imp.createFromCode(imp.java:432)
[11:58] <Parisa> at org.python.core.util.importer.importer_load_module(importer.java:116)
[11:58] <Parisa> at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:170)
[11:58] <Parisa> at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
[11:58] <Parisa> at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
[11:58] <Parisa> at org.python.core.imp.loadFromLoader(imp.java:591)
[11:58] <Parisa> at org.python.core.imp.find_module(imp.java:543)
[11:59] <Parisa> at org.python.core.PyModule.impAttr(PyModule.java:111)
[11:59] <Parisa> at org.python.core.PyModule.__findattr_ex__(PyModule.java:140)
[11:59] <Parisa> at org.python.core.PyObject.__findattr__(PyObject.java:965)
[11:59] <Parisa> at org.python.core.PyObject.__findattr__(PyObject.java:950)
[11:59] <Parisa> at org.python.core.imp.ensureFromList(imp.java:1004)
[11:59] <Parisa> at org.python.core.imp.ensureFromList(imp.java:978)
[11:59] <Parisa> at org.python.core.imp.import_module_level(imp.java:972)
[11:59] <Parisa> at org.python.core.imp.importName(imp.java:1043)
[11:59] <Parisa> at org.python.core.ImportFunction.__call__(__builtin__.java:1280)
[11:59] <Parisa> at org.python.core.PyObject.__call__(PyObject.java:450)
[11:59] <Parisa> at org.python.core.__builtin__.__import__(__builtin__.java:1232)
[11:59] <Parisa> at org.python.core.imp.importFromAs(imp.java:1135)
[11:59] <Parisa> at org.python.core.imp.importFrom(imp.java:1110)
[11:59] <Parisa> at ucsmsdk.ucshandle$py.f$0(__pyclasspath__/ucsmsdk/ucshandle.py:29)
[11:59] <Parisa> at ucsmsdk.ucshandle$py.call_function(__pyclasspath__/ucsmsdk/ucshandle.py)
[11:59] <Parisa> at org.python.core.PyTableCode.call(PyTableCode.java:167)
[11:59] <Parisa> at org.python.core.PyCode.call(PyCode.java:18)
[11:59] <Parisa> at org.python.core.imp.createFromCode(imp.java:432)
[11:59] <Parisa> at org.python.core.util.importer.importer_load_module(importer.java:116)
[11:59] <Parisa> at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:170)
[11:59] <Parisa> at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
[11:59] <Parisa> at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
[11:59] <Parisa> at org.python.core.imp.loadFromLoader(imp.java:5
[11:59] <Parisa> any input would be really helpful.. thank you
[12:47] * stewori (~stefan@ip-95-223-198-21.hsi16.unitymediagroup.de) has joined #jython
[12:50] <stewori> Parisa: I guess I didn't consider things like __pyclasspath__ that can occur in Jython paths
[12:51] <stewori> these seem to break the search mechanism for pyc-files
[12:52] <Parisa> while invoking java i have added all dependent module in classpath
[12:52] <Parisa> and internally this is how it resolve
[12:52] <stewori> Feel free to file a bug on this or maybe better bring it up at http://bugs.jython.org/issue527524
[12:53] <stewori> Unfortunately I must leave now, but will look into this issue again
[12:53] <stewori> (However cannot tell when)
[12:53] <Parisa> where it expets pyc file to be?
[12:53] <Parisa> expects*
[12:53] <stewori> in the same folder as the py file
[12:54] <Parisa> yes it is
[12:54] <Parisa> and that path is added to class path
[12:55] <Parisa> from same file is able to locate py file
[12:55] <Parisa> but not able to find pyc
[13:09] * xemdetia (xemdetia@nat/ibm/x-eatrraihcxhjqcyh) has joined #jython
[13:09] * stewori (~stefan@ip-95-223-198-21.hsi16.unitymediagroup.de) Quit (Quit: Leaving.)
[14:19] * Parisa (~parterda@72.163.220.10) Quit (Ping timeout: 240 seconds)
[19:39] * gsnedders (~gsnedders@5.2.16.23) Quit (Ping timeout: 240 seconds)
[20:20] * xemdetia (xemdetia@nat/ibm/x-eatrraihcxhjqcyh) Quit (Ping timeout: 245 seconds)
[21:33] * stewori (~stefan@ip-95-223-198-21.hsi16.unitymediagroup.de) has joined #jython
[23:16] <stewori> Parisa: When the path of the py-file contains __pyclasspath__, Jython doesn't trac its exact position, but just knows it's somewhere on the classpath. The search mechanism for pyc files currently doesn't consider that and breaks, if the path that Jython reports for the py-file contains that placeholder.
[23:17] <stewori> I implemented a possible fix for this: https://github.com/Stewori/jython/commit/343740e5a34afd90f4953ba0eab18ccf863da860
[23:17] <stewori> But so far find it tedious to test
[23:18] <stewori> So it would be nice if you could try it, e.g. be cloning my Jython fork at https://github.com/Stewori/jython
[23:18] <stewori> If that solves the problem I will merge it into the main repo
[23:54] * gsnedders (~gsnedders@5.2.16.23) has joined #jython
[23:58] * stewori (~stefan@ip-95-223-198-21.hsi16.unitymediagroup.de) Quit (Quit: Leaving.)

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).