#jython IRC Log (v0.9)

Index

IRC Log for 2010-09-08

Timestamps are in GMT/BST.

[0:08] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[1:05] * classfoo (~classfoo@58.49.52.114) has joined #jython
[2:03] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[3:35] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 252 seconds)
[4:01] * classfoo (~classfoo@58.49.52.114) Quit (Read error: Connection reset by peer)
[4:01] * classfoo (~classfoo@58.49.52.114) has joined #jython
[4:21] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 264 seconds)
[4:26] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[4:37] * classfoo (~classfoo@58.49.52.114) Quit (Read error: Connection reset by peer)
[4:44] * juneau001_ (~juneau@pool-72-69-213-180.chi01.dsl-w.verizon.net) has joined #jython
[4:46] * juneau001 (~juneau@pool-72-69-74-175.chi01.dsl-w.verizon.net) Quit (Ping timeout: 245 seconds)
[4:46] * juneau001_ is now known as juneau001
[6:07] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[6:29] <jbaker_> just committed r7112, hopefully this addresses http://bugs.jython.org/issue1327
[6:31] <jbaker_> not too hopeful, i must say - this bug has been difficult to work with. so if anyone here has ideas, definitely would appreciate them!
[7:00] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[7:21] * jbaker_ (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jbaker_)
[7:24] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[7:27] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[7:48] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) has joined #jython
[8:31] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[8:37] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Ping timeout: 245 seconds)
[9:10] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:17] <Oti> pjenvey - on http://hudson.361315.n4.nabble.com/Set-my-build-number-td375043.html there is a description how to set the build number
[9:17] <Oti> maybe this would be worth trying?
[9:32] * seberg (~sebastian@vpn-3128.gwdg.de) has joined #jython
[9:33] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) has joined #jython
[9:35] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) Quit (Quit: Leaving.)
[10:01] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[10:18] * juneau001 (~juneau@pool-72-69-213-180.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[10:21] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 240 seconds)
[11:03] * lheuer (~heuer@unaffiliated/lheuer) Quit (Remote host closed the connection)
[11:05] * seberg (~sebastian@vpn-3128.gwdg.de) Quit (Quit: Ex-Chat)
[11:08] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[11:13] * juneau001 (~juneau@FESS-116326.dhcp.fnal.gov) has joined #jython
[12:20] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[12:53] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[13:15] * seberg (~sebastian@vpn-3063.gwdg.de) has joined #jython
[13:32] * tef (~tef@cpc2-sgyl1-0-0-cust1814.sgyl.cable.virginmedia.com) has joined #jython
[13:33] * fwierzbicki (~frank@64.34.151.178) has joined #jython
[13:34] <tef> Hi, I have a plugin with jython as a dependency -- I can load the interpreter just fine and run python scripts, but I can't seem to import csv from the standard library. I have got the standalone jar, and inspection reveals the Lib/* directory is included
[13:40] <tef> I'm getting a pastebin of a small example but it seems to work from the command line but not within a swt app
[13:53] * headius (~headius@216.160.3.79) has joined #jython
[14:17] <Oti> tef - plugin == eclipse plugin?
[14:17] <tef> yes
[14:18] <tef> ['Lib/', '/Work/workspace/com.fooo.jython/build/lib/Lib', '/Work/workspace/com.foooo.jython/build/lib/jython.jar/Lib', '__classpath__', '__pyclasspath__/'] is sys.path normally, and ['Lib/', '__classpath__', '__pyclasspath__/'] is the result within eclipse app
[14:18] <Oti> hm probably osgi classloading problem - let me search for a few minutes, i saw a workaround one day
[14:18] <tef> Yeah I thought it might be that, so looking at
[14:19] <tef> http://osdir.com/ml/lang.jython.user/2005-02/msg00065.html
[14:19] <tef> I wrapped the creation of the python interpreter in a loader singleton, and then change the classloaded
[14:19] <tef> Py.getSystemState().setClassLoader(new JythonClassLoader(getClass().getClassLoader()));
[14:19] <tef> (I found that just now after asking earlier)
[14:19] <tef> but to no avail
[14:21] <tef> I found this, that suggests using JSR223 http://stackoverflow.com/questions/1765802/using-jython-from-eclipse-plugin
[14:21] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[14:22] * jbaker_ (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[14:22] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Read error: Connection reset by peer)
[14:23] <tef> oh am I going to have to write an activator to get the bundle loader oh joy
[14:26] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[14:36] <Oti> tef - can you make sense of this: http://pylonshq.com/pasties/b6c39cea561a37e85bf593871f796a42 ? it is code from a bundle which uses the standalone jython.jar
[14:36] <tef> I can give it ago
[14:36] <Oti> (i just copied it - i have no experience writing eclipse plugins)
[14:36] <tef> that's a different osgi framrwork
[14:37] <tef> I think
[14:37] <tef> but yeah, I'm going to try and get the proper osgi classloader
[14:37] <tef> found this too http://blog.gmane.org/gmane.comp.lang.jython.devel/month=20071001
[14:37] <tef> but thanks :D
[14:38] <tef> http://permalink.gmane.org/gmane.comp.lang.jython.devel/3934
[14:38] <tef> aha
[14:39] <Oti> good luck!
[14:42] <tef> thanks
[14:46] <tef> aah I'm going to have to expose it as a service, joy.
[14:50] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 260 seconds)
[14:59] * fwierzbicki (~frank@64.34.151.178) Quit (Quit: Ex-Chat)
[15:12] <tef> allllmooost
[15:12] <tef> Oti: yeah a custom classloader seems like the right thing
[15:16] * seberg (~sebastian@vpn-3063.gwdg.de) Quit (Quit: Ex-Chat)
[15:23] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[15:43] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[15:56] * fwierzbicki (~frank@64.34.151.178) has joined #jython
[16:09] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[16:17] <tef> Oti: I think I have the root of the problem
[16:22] <Oti> tef: yes, and a solution?
[16:22] <tef> almost
[16:23] <tef> well the problem is osgi classloaders, and some built in magic
[16:24] <tef> so a sort of hack wherein I write a custom classloader and shim it in
[16:24] <tef> it doesn't look anywhere but the root of packages by default it seems.
[16:24] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) Quit (Quit: Leaving)
[16:25] <tef> and in when I run it in java, it knows where the jar is and can add it to the path
[16:26] <Oti> you mean the standalone detection?
[16:26] <Oti> (it finds out where jython.jar is, and adds it's /Lib folder to sys.path if present)
[16:30] <tef> AHAHA I HAVE DEFEATED IT
[16:31] <tef> the osgi loader won't look inside jars, so I have to, uh, add the lib folder to the enclosing plugin, and uh, put in a shim classloader that delegates to bundle.* and adds some paths to things
[16:39] <tef> http://pastie.org/1146174 <- for the curious
[16:39] <tef> tbh, it would be easier if jython could install as an osgi plugin :3
[16:49] <tef> Oti: thanks :D
[16:49] <Oti> you're welcome!
[16:51] <Oti> please let me know if you have an idea how we could improve this
[16:52] * jbaker_ (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jbaker_)
[17:01] <tef> well, the easiest thing would be an option in the installer to package a standalone osgi jar. inside the osgi jar you can export services like something to create an interpreter, or alternatively, create an activator that sets the default classloader to a special one, that looks inside the bundle's classloader, using known directory prefixes
[17:02] <tef> maybe in retrospective I should have used jydt
[17:04] <tef> it might take some thought on how to load bundles or somesuch or how to put bundles on the path
[17:48] * jimbaker (~jbaker@64.134.158.2) has joined #jython
[17:48] <headius> jruby uses bnd on its release jar...not sure if that's all that would be required for jython or not
[17:48] <headius> I don't think we're explicitly exporting any services
[17:49] <jimbaker> headius: we should at your osgi support
[17:49] <jimbaker> should look
[17:50] <headius> it's pretty minimal...none of us really know OSGi, but the GF guys needed us to do some stuff for them to ship JRuby support
[17:50] <headius> I'd love to do more, but since there's whole *tracks* devoted to OSGi I don't think I have time to learn it
[17:50] <jimbaker> right, i understand that!
[17:51] <jimbaker> our jsr223 support started with the work that jim white did for groovy, as i recall
[17:51] <headius> you guys ship your own 223 impl?
[17:51] <jimbaker> yes, it works well
[17:52] <headius> we do too, thanks to a herculean effort by yoko harada to implement a totally new embedding framework
[17:52] <headius> the default one Sun wrote was shit
[17:52] <jimbaker> sabi has been main person on this on our side
[17:52] <headius> though in their defense they didn't really understand jruby
[17:52] <jimbaker> pretty much was the same with the same for the one written for jython 2.1 - i don't think we reused any of it
[17:53] <jimbaker> i do know that jbrendel has been using quite successfully for a mule plugin he has been working on
[17:53] <jimbaker> this new jsr223 support that is
[17:53] <jimbaker> and we have gotten lots of useful bug reports that we have been using to tweak our support
[17:54] <jimbaker> pr3d4t0r: do you use the jsr223 stuff as well?
[17:55] <jimbaker> tef: nice looking paste. would it be possible for you to work with us to determine what our osgi support should be?
[17:56] <jimbaker> basically if we had a solid set of test cases, we could add to that to our test suite
[17:56] <jimbaker> and do TDD against it
[17:57] <headius> and I'd love to hear what those cases are too
[17:57] <tef> jimbaker: I'm interested, but I'm running off just now. I'll come back to you later on
[17:57] <jimbaker> tef: sounds good
[18:15] * stakkars (~tismer@i59F7D32A.versanet.de) Quit (Ping timeout: 272 seconds)
[18:21] * stakkars (~tismer@i59F7D17D.versanet.de) has joined #jython
[18:41] * jimbaker (~jbaker@64.134.158.2) Quit (Quit: jimbaker)
[19:03] * slestak (~sromanow@c-71-205-142-149.hsd1.mi.comcast.net) Quit (Ping timeout: 255 seconds)
[19:05] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) Quit (Ping timeout: 252 seconds)
[19:05] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) has joined #jython
[19:10] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[19:13] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) Quit (Ping timeout: 245 seconds)
[19:19] * juneau001 (~juneau@FESS-116326.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:20] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) has joined #jython
[19:22] * stever (~stever@dsl78-143-208-248.in-addr.fast.co.uk) has joined #jython
[19:23] * slestak (~sromanow@c-71-205-142-149.hsd1.mi.comcast.net) has joined #jython
[19:26] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) Quit (Ping timeout: 245 seconds)
[19:27] <pjenvey> Oti - oh and btw, I reset the build number and I think it's back to normal now. thanks
[19:29] * thijstriemstra (~thijstrie@h161140.upc-h.chello.nl) has joined #jython
[20:23] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) has joined #jython
[20:26] * juneau001 (~juneau@pool-72-69-213-180.chi01.dsl-w.verizon.net) has joined #jython
[20:29] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[20:29] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[20:51] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[20:52] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[20:56] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Ping timeout: 252 seconds)
[21:04] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) Quit (Quit: Leaving.)
[21:09] <juneau001> Moving the jython podcast site to jython.org now. I will make an announcement once complete.
[21:24] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) has joined #jython
[21:30] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[21:30] <Oti> pjenvey - thanks!
[21:31] * jimbaker (~jbaker@97-124-188-56.hlrn.qwest.net) has joined #jython
[21:31] <juneau001> jython podcast site should now be completely migrated over to jython.org. Using a redirect from jythonpodcast.hostjava.net for the time being.
[21:32] <jimbaker> juneau001: good to hear!
[21:33] <jimbaker> (and sorry about the inadvertent punning ;) )
[21:33] <juneau001> jimbaker: thanks, next will be the book site
[21:33] <juneau001> :) I like the pun
[21:33] <Oti> juneau001: and it works from iTunes: the ATTN sign is away
[21:34] <juneau001> oti: great to hear!
[21:38] <jimbaker> juneau001: please put a link to both the book and the podcast from the jython.org home page
[21:39] <juneau001> jimbaker: podcast link is at the bottom...I'll update it and make it a direct link
[21:40] <juneau001> jimbaker: I will add a direct link to the book on the jython.org homepage...good idea
[21:40] <jimbaker> thanks. we want to make this content as visible as possible to our jython users
[21:40] <jimbaker> and potential users too
[21:42] <juneau001> I definitely agree. Will try to update the site tonight/tomorrow morning
[21:45] * jimbaker (~jbaker@97-124-188-56.hlrn.qwest.net) Quit (Quit: jimbaker)
[21:47] * stever (~stever@dsl78-143-208-248.in-addr.fast.co.uk) Quit (Quit: Leaving)
[21:48] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) Quit (Quit: Leaving.)
[21:54] * jimbaker (~jbaker@sta-204-144-184-242.rockynet.com) has joined #jython
[22:00] <pjenvey> jython podcast FTW
[22:11] <Oti> running the installation tests on different platforms - looks good so far
[22:25] * Oti (~ohumbel@adsl-89-217-69-128.adslplus.ch) Quit (Quit: Oti)
[22:29] * Oti (~ohumbel@adsl-89-217-69-128.adslplus.ch) has joined #jython
[22:44] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 240 seconds)
[23:29] * fwierzbicki (~frank@64.34.151.178) Quit (Ping timeout: 240 seconds)
[23:30] <Oti> platforms are fine, but it is too dangerous for me to do commits (01:30 am) - good night
[23:58] * Oti (~ohumbel@adsl-89-217-69-128.adslplus.ch) Quit (Quit: Oti)

Index

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