#jython IRC Log (v0.9)

Index

IRC Log for 2016-10-05

Timestamps are in GMT/BST.

[1:24] * AndyBotwin (~Gustavo@unaffiliated/andybotwin) has joined #jython
[1:25] * AndyBotwin (~Gustavo@unaffiliated/andybotwin) Quit (Read error: Connection reset by peer)
[1:26] * AndyBotwin (~Gustavo@unaffiliated/andybotwin) has joined #jython
[2:50] * AndyBotwin (~Gustavo@unaffiliated/andybotwin) Quit (Quit: Leaving)
[5:22] * jimklo (~jimklo@71-84-19-18.dhcp.trlk.ca.charter.com) has joined #jython
[6:19] * TomA (~TomA@107.18.38.242) has joined #jython
[6:32] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[6:32] * ChanServ sets mode +o Arfrever
[6:37] * TomA (~TomA@107.18.38.242) Quit (Remote host closed the connection)
[7:04] * jimklo (~jimklo@71-84-19-18.dhcp.trlk.ca.charter.com) Quit (Remote host closed the connection)
[8:02] * TomA (~TomA@107.18.38.242) has joined #jython
[8:29] * TomA (~TomA@107.18.38.242) Quit (Ping timeout: 248 seconds)
[9:53] * TomA (~TomA@107.18.38.242) has joined #jython
[9:58] * TomA (~TomA@107.18.38.242) Quit (Ping timeout: 264 seconds)
[11:41] * TomA (~TomA@107.18.38.242) has joined #jython
[11:45] * TomA (~TomA@107.18.38.242) Quit (Ping timeout: 252 seconds)
[13:20] * TomA (~TomA@107.18.38.242) has joined #jython
[13:25] * TomA (~TomA@107.18.38.242) Quit (Ping timeout: 272 seconds)
[13:29] * TomA (~TomA@aus.internal.datastax.com) has joined #jython
[14:31] * xemdetia (xemdetia@nat/ibm/x-jngswmdsczuunlih) has joined #jython
[14:49] * nickle (sid89854@gateway/web/irccloud.com/x-avbvccsqgbjsqwus) Quit (Ping timeout: 240 seconds)
[14:52] * nickle (sid89854@gateway/web/irccloud.com/x-jfjfgqglqxmfotsl) has joined #jython
[15:15] * mistafunk (d5f254a1@gateway/web/freenode/ip.213.242.84.161) has joined #jython
[15:20] * TomA (~TomA@aus.internal.datastax.com) Quit (Remote host closed the connection)
[15:20] * jimklo (~jimklo@192.12.16.110) has joined #jython
[15:42] * TomA (~TomA@aus.internal.datastax.com) has joined #jython
[15:42] * TomA (~TomA@aus.internal.datastax.com) Quit (Remote host closed the connection)
[16:11] <mistafunk> hi jython folks, i have an issue using jython 2.7 embedded in a java app on windows 7: for unknown reasons sys.builtin_module_names contains 'posix' instead of 'nt' and tries to use wrong os module calls
[16:11] <mistafunk> installing jython 2.7 on the same machine contains 'nt' in sys.builtin_module_names
[16:13] <mistafunk> any guesses why the embedded jython thinks it runs on a posix os?
[16:14] <mistafunk> python.os property returns 'nt' and os.name property returns 'Windows 7' as expected
[16:15] <mistafunk> but here's the full sys.builtin_module_names output: ('sys', 'gc', '_json', 'jffi', '_sre', '_threading', 'posix', '_bytecodetools', 'exceptions', '_csv', 'time', '_imp', '_py_compile', 'zipimport', 'struct', 'thread', '_functools', '_jythonlib', 'ucnhash', 'bz2', 'synchronize', 'binascii', '_codecs', '_random', '_systemrestart', 'cmath', '_marshal', 'cStringIO', '_io', '_ast', 'operator', 'jarray', 'math', 'errno', '_collections'
[16:17] <mistafunk> and this issue finally leads to an exception in site.py: if os.getegid() != os.getgid(): NotImplementedError: egid
[16:18] <mistafunk> 2.7b2 was working fine, but with 2.7.0 final it does not work anymore
[16:18] <mistafunk> thanks for your time
[16:34] <jimbaker> mistafunk, have you tried 2.7.1 ?
[16:34] <jimbaker> yes, it's not released yet
[16:34] <jimbaker> but we especially would want to know if that's a problem
[16:35] <jimbaker> yes, we keep putting off the RC... we are almost there, but i'm currently tied up getting ready for the openstack summit in barcelona later this month (completely unrelated to jython)
[16:37] <mistafunk> thanks, i'll try 2.7.1
[16:38] <mistafunk> i just found out that the problem does not happen with python.import.site = false but i'm not sure of the consequences of that one
[16:38] <mistafunk> is there a changelog for 2.7.1 somehwere?
[16:47] <jimbaker> https://hg.python.org/jython
[16:47] <jimbaker> we are currently working through one last SNI issue
[16:48] <jimbaker> #2446 is not finished yet
[16:48] <mistafunk> ok, 2.7.1b3 has the same problem
[16:49] <mistafunk> somehow our java environment (eclipse) makes jython thinks it runs in a posix os
[16:50] <mistafunk> if i understand correctly, i need python.import.site = true to get correct behavior of os.path.join etc
[16:51] <mistafunk> if i try to force it to use 'nt' in os.py it cannot find the 'nt' module (i cannot either in the sources)
[16:51] <jimbaker> right, i better understand what you are doing - the key piece is being embedded
[16:51] <jimbaker> so our detection logic for running on nt or not is not really being exercised here
[16:55] <jimbaker> iirc, and this is something i believe we fixed before 2.7.0 final - https://github.com/jythontools/jython/blob/master/src/shell/jython.py#L263
[16:55] <jimbaker> this detection logic is something you will just have to do equivalently in your embedding
[16:57] <jimbaker> mistafunk, feel free to file a bug+fix if you find a 100% way of doing this in java on windows. none of the jython devs are really windows devs, so we may have missed something
[16:58] <jimbaker> mistafunk, being able to use cpython to do this work for us instead seemed like a very nice way to get around this issue, at least for many users
[17:02] <jimbaker> also documented this last problem in http://bugs.jython.org/issue2446
[17:12] <mistafunk> thanks, is there documentation (or source location) where we can control the detection logic from the outside?
[17:12] <mistafunk> (i'm thinking special properties)
[17:16] <jimbaker> mistafunk, sadly not documented
[17:17] <jimbaker> we have decent docs for basic jython usage - http://www.jython.org/jythonbook/en/1.0/ - but not so much for more advanced cases
[17:18] <mistafunk> ok, no problem, i'll dig into the sources
[17:18] <jimbaker> for me personally, the only embedding i have done is through a war container - and that's fairly basic
[17:19] <mistafunk> the main worry is now the missing 'nt' modules - if i even have the right expectations
[17:19] <jimbaker> although the site packages support for that needs to be improved
[17:19] <jimbaker> http://bugs.jython.org/issue2143
[17:19] <jimbaker> mistafunk, yeah, i think you are on the right path here
[17:20] <jimbaker> we just broke things for you because we started relying on cpython for reliable detection
[17:21] <mistafunk> so, there must be a change between 2.7.0b2 and final which changed this...i'll peruse the changelog once more
[17:21] <jimbaker> for the embedding case, we can make this more nuanced - the reliable detection we were doing is with respect to running from a tty iirc
[17:21] <jimbaker> obviously java.lang.System is perfectly adequate for nt vs posix
[17:26] * eatkin (~eatkin@166.70.212.121) Quit (Quit: ZNC 1.6.2 - http://znc.in)
[17:26] * eatkin (~eatkin@166.70.212.121) has joined #jython
[17:28] * eatkin (~eatkin@166.70.212.121) Quit (Client Quit)
[17:28] * eatkin (~eatkin@166.70.212.121) has joined #jython
[17:45] * TomA (~TomA@aus.internal.datastax.com) has joined #jython
[18:14] * TomA (~TomA@aus.internal.datastax.com) Quit (Remote host closed the connection)
[19:24] * TomA (~TomA@aus.internal.datastax.com) has joined #jython
[19:26] * TomA (~TomA@aus.internal.datastax.com) Quit (Remote host closed the connection)
[19:44] * Cheaterman (~cheaterma@unaffiliated/cheaterman) Quit (*.net *.split)
[19:44] * cheaterman (~cheaterma@unaffiliated/cheaterman) has joined #jython
[19:45] * cheaterman is now known as Cheaterman
[20:31] * TomA (~TomA@aus.internal.datastax.com) has joined #jython
[20:51] * jimklo (~jimklo@192.12.16.110) Quit (Remote host closed the connection)
[21:18] * jimklo (~jimklo@192.12.16.110) has joined #jython
[21:24] * jimklo (~jimklo@192.12.16.110) Quit (Ping timeout: 256 seconds)
[21:37] * jimklo (~jimklo@192.12.16.110) has joined #jython
[21:42] * jimklo (~jimklo@192.12.16.110) Quit (Ping timeout: 264 seconds)
[21:57] * jimklo (~jimklo@192.12.16.110) has joined #jython
[22:07] * jimklo (~jimklo@192.12.16.110) Quit (Ping timeout: 264 seconds)
[22:17] * TomA (~TomA@aus.internal.datastax.com) Quit (Remote host closed the connection)
[22:17] * jimklo (~jimklo@192.12.16.110) has joined #jython
[22:17] * jimklo (~jimklo@192.12.16.110) Quit (Remote host closed the connection)
[22:22] * jimklo_ (~jimklo@71-84-19-18.dhcp.trlk.ca.charter.com) has joined #jython
[22:42] * xemdetia (xemdetia@nat/ibm/x-jngswmdsczuunlih) Quit (Ping timeout: 252 seconds)
[23:24] * jimklo (~jimklo@192.12.16.110) has joined #jython
[23:28] * jimklo_ (~jimklo@71-84-19-18.dhcp.trlk.ca.charter.com) Quit (Ping timeout: 256 seconds)
[23:35] * eatkin (~eatkin@166.70.212.121) Quit (Quit: ZNC 1.6.2 - http://znc.in)
[23:42] * eatkin (~eatkin@166.70.212.121) has joined #jython
[23:42] * eatkin (~eatkin@166.70.212.121) Quit (Remote host closed the connection)
[23:46] * eatkin (~eatkin@166.70.212.121) has joined #jython

Index

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