#jython IRC Log


IRC Log for 2015-03-17

Timestamps are in GMT/BST.

[0:01] <FL328K> I've been trying to get Jython 2.7b4 working with the latest twisted. I had to play around with the package imports in the __init__ files to get the twisted packages to import. Has anybody had success running twisted in Jython?
[0:04] <nickmbailey> yeah i've got it somewhat running on twisted 14.0.0
[0:04] <FL328K> DId you have to do anything beyond fixing the imports?
[0:05] <nickmbailey> let me check
[0:06] <nickmbailey> yeah i had some issues with syslog
[0:06] <nickmbailey> is that what you are hitting?
[0:06] <nickmbailey> FL328K: ^
[0:07] <FL328K> I had to put all of the second level packages (i.e. internet, spread, web, etc.) in the twisted/__init__.py
[0:08] * AndyBotwin (~botwin@unaffiliated/andybotwin) has joined #jython
[0:08] <nickmbailey> well i had to mess with some __init__.py files but only to remove the twisted way of deprecating them
[0:08] <nickmbailey> maybe thats what you were hitting as well?
[0:09] <FL328K> probably
[0:10] <FL328K> Otherwise, it's working for you?
[0:10] <nickmbailey> http://pastie.org/10031830
[0:10] <nickmbailey> had to do that
[0:12] <nickmbailey> i also had to comment out some twisted code related to detecting linux pipe behavior that jython didn't like, remove that deprecation stuff from twisted/scripts/__init__.py, and modify the twisted syslog module to point towards jython's syslog
[0:12] <FL328K> The case I'm seeing is that Jython won't find the package twisted.internet because it's not imported in twisted/__init__.py
[0:12] <nickmbailey> yeah thats the deprecation stuff
[0:13] <FL328K> it didn't manifest in the way you showed it
[0:13] <FL328K> ... Maybe I did it wrong
[0:13] <nickmbailey> hmm well this was 14.0.0
[0:13] <FL328K> ah, I'm using 15.0.0
[0:13] <FL328K> but it's good to know that it's working
[0:13] <nickmbailey> i'd grep your twisted install for "deprecatedModuleAttribute",
[0:14] <FL328K> I didn't want to follow the rabbit down the rabbit hole
[0:14] <nickmbailey> jython doesn't like that when it hits it in one of the various __init__.py files
[0:14] <nickmbailey> but yeah for the most part it's working
[0:15] <FL328K> cool, thanks for the info
[0:16] <FL328K> another case where IRC is more helpful than google
[0:18] * ebarrett (~edd@host-92-23-232-109.as13285.net) has joined #jython
[0:23] * FL328K (60f14890@gateway/web/freenode/ip. Quit (Ping timeout: 246 seconds)
[2:42] <agronholm> jimbaker: I worked around my build problem: https://bpaste.net/show/3dd49e3528d9
[2:42] <agronholm> not elegant, but it works
[3:42] * ebarrett (~edd@host-92-23-232-109.as13285.net) Quit (Ping timeout: 256 seconds)
[3:43] * ebarrett (~edd@host-92-23-232-109.as13285.net) has joined #jython
[5:13] * AndyBotwin (~botwin@unaffiliated/andybotwin) Quit (Quit: Leaving)
[7:15] * ebarrett (~edd@host-92-23-232-109.as13285.net) Quit (Ping timeout: 252 seconds)
[7:17] * ebarrett (~edd@host-92-23-232-109.as13285.net) has joined #jython
[8:12] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 246 seconds)
[9:06] * koo6 (~koo5@236.152.broadband3.iol.cz) Quit (Ping timeout: 272 seconds)
[9:35] * koo6 (~koo5@236.152.broadband3.iol.cz) has joined #jython
[9:52] <koo6> agronholm, thanks, well it works for now, i will come asking again when setting it up on another machine
[10:11] * ebarrett (~edd@host-92-23-232-109.as13285.net) Quit (Ping timeout: 264 seconds)
[10:13] * ebarrett (~edd@host-92-23-232-89.as13285.net) has joined #jython
[10:17] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[12:17] <grey_> jython-2.7b4, no backslashes for me
[12:24] <grey_> http://bugs.jython.org/issue2275
[13:24] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[13:39] * xemdetia (xemdetia@nat/ibm/x-ikabrayxrwdkbuac) has joined #jython
[13:56] <jimbaker> grey_, should be fixed now
[13:56] <jimbaker> peke_, can you confirm? or grey_, if you can build from source?
[13:57] <jimbaker> https://wiki.python.org/jython/JythonDeveloperGuide
[14:32] * gthank (~gthank@unaffiliated/gthank) has joined #jython
[14:56] <agronholm> I'm building now and will try to test
[15:03] <agronholm> jimbaker: confirmed, it works now
[15:23] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 252 seconds)
[15:25] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[15:51] <jimbaker> agronholm, thanks!
[16:01] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[16:02] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Client Quit)
[16:02] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[16:03] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Client Quit)
[16:04] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[16:04] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Client Quit)
[16:05] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[16:46] <jimbaker> fwierzbicki, i'm completing the bug that Arfrever submitted on os.readlink - just need to write a good test and the site.py bug. once we can ensure $py.class files are generated, which is hopefully just some tuning of build.xml, we are ready
[16:47] <jimbaker> i can take a look at adding the install steps for ensurepip and using bin/jython.py if cpython is available
[16:47] <jimbaker> but completely nice to have
[16:48] <agronholm> are we going to ship both the .py files AND their compiled versions in the jar?
[16:50] <jimbaker> agronholm, yes
[16:50] <agronholm> that's going to add significant bloat to the jar
[16:50] <agronholm> even just replacing the .py files with their compiled version does that
[16:50] <agronholm> not to mention keeping the originals too
[16:50] <jimbaker> agronholm, that sounds like future tuning
[16:51] <jimbaker> reminds me - we need to post an ideas list for google summer of code
[16:51] <agronholm> jimbaker: here's a suggestion -- nix Lib/test from the jar
[16:51] <agronholm> that should somewhat reduce the size
[16:52] <jimbaker> agronholm, excellent point. i would hope people wouldn't expect that to be available. oth, i have used exactly these tests to test standalone in the past ;)
[16:53] <agronholm> couldn't you use them from outside the jar just as well though?
[16:55] <jimbaker> agronholm, very valid point
[16:56] <jimbaker> anyway, just so you know, it's not an issue i have thought through very much. i tend to spend my time in dev builds after all :) but i can put something together, and hopefully we can tune, to some extent now, and much more later
[17:54] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 240 seconds)
[18:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[19:06] * gthank is now known as gthank_away
[19:06] * gthank_away is now known as gthank
[19:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[19:48] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Client Quit)
[21:03] * AndyBotwin (~botwin@ has joined #jython
[21:03] * AndyBotwin (~botwin@ Quit (Changing host)
[21:03] * AndyBotwin (~botwin@unaffiliated/andybotwin) has joined #jython
[22:16] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:30] * Rondom (~rondom@nonmodosedetiam.net) Quit (Disconnected by services)
[23:31] * Rondom_ (~rondom@nonmodosedetiam.net) has joined #jython


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