#jython IRC Log (v0.9)

Index

IRC Log for 2012-05-02

Timestamps are in GMT/BST.

[0:07] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[0:07] * fwierzbicki_ (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[0:18] * enebo (~enebo@174-20-162-73.mpls.qwest.net) Quit (Quit: enebo)
[0:24] * shashank1 (~shashank@c-98-245-167-68.hsd1.co.comcast.net) Quit (Ping timeout: 276 seconds)
[1:17] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[1:17] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[1:21] * fwierzbicki_ (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[1:21] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[1:21] * fwierzbicki_ is now known as fwierzbicki
[1:24] * jek_ (~jek@204.62.14.172) Quit (Changing host)
[1:24] * jek_ (~jek@unaffiliated/jek) has joined #jython
[1:55] * fwierzbicki_ (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[1:55] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[1:55] * fwierzbicki_ is now known as fwierzbicki
[2:06] -kloeri- [Global Notice] Hi all. We're experiencing some technical problems and as a side-effect of that services email is currently down. This means that registering nicks and sending password reset emails won't currently work. The mails will be queued up but it's unknown when they'll be delivered. Thank you for using freenode.
[2:08] * shashank (~shashank@c-98-245-167-68.hsd1.co.comcast.net) has joined #jython
[3:16] * juneau001 (~juneau@50-103-25-160.dklb.il.frontiernet.net) Quit (Read error: Connection reset by peer)
[3:36] * juneau001 (~juneau@50-103-20-165.dklb.il.frontiernet.net) has joined #jython
[3:48] * juneau001 (~juneau@50-103-20-165.dklb.il.frontiernet.net) Quit (Read error: Connection reset by peer)
[3:55] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) Quit (Remote host closed the connection)
[3:55] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) has joined #jython
[5:58] * Oti (~ohumbel@adsl-89-217-230-138.adslplus.ch) Quit (Quit: Oti)
[6:07] * shashank (~shashank@c-98-245-167-68.hsd1.co.comcast.net) Quit (Ping timeout: 245 seconds)
[6:17] * shashank (~shashank@71-218-30-74.hlrn.qwest.net) has joined #jython
[6:45] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[6:49] * shashank (~shashank@71-218-30-74.hlrn.qwest.net) Quit (Ping timeout: 240 seconds)
[6:51] * seletz (~seletz@business-178-015-118-087.static.arcor-ip.net) has joined #jython
[7:38] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[7:55] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) Quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/)
[8:01] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) has joined #jython
[8:01] * ChanServ sets mode +o agronholm
[8:37] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) Quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/)
[8:38] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) has joined #jython
[8:38] * ChanServ sets mode +o agronholm
[8:39] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) Quit (Client Quit)
[8:40] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) has joined #jython
[8:40] * ChanServ sets mode +o agronholm
[9:22] * lheuer1 (~Adium@blfd-4d0832a1.pool.mediaWays.net) has joined #jython
[9:22] * lheuer (~Adium@blfd-5d82295d.pool.mediaWays.net) Quit (Ping timeout: 244 seconds)
[10:19] * stakkars is now known as ctismer_afk
[11:10] * juneau001 (~juneau@131.225.24.123) has joined #jython
[11:47] * verterok (~ggonzalez@91.189.93.65) Quit (Changing host)
[11:47] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[13:07] * wmeissner_ (~wmeissner@ppp59-167-223-31.static.internode.on.net) has joined #jython
[13:09] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) Quit (Ping timeout: 260 seconds)
[13:09] * wmeissner_ is now known as wmeissner
[13:59] * commandoline_ (~commandol@p4FF19EAF.dip0.t-ipconnect.de) has joined #jython
[14:01] <commandoline_> Hi I'm trying to use some existing java classes in Jython. When I initialize one, I get an ExceptionInInitializerError. Via .getException().printStackTrace(), I traced the error down to this line of code:
[14:01] <commandoline_> workDir = new File(LGM.class.getProtectionDomain().getCodeSource().getLocation().toURI());
[14:01] <commandoline_> now I think getProtectionDomain() returns null in Jython, does anyone know if that's a valid assumption and if, how can I change it?
[14:07] <commandoline_> (I prefer not to change the original java classes)
[14:09] <agronholm> a workaround is to load the classes through some other class loader if possible
[14:09] <agronholm> if jython is the entry point to your app...well
[14:09] <agronholm> then idk
[14:15] <commandoline_> The Jython code is the entry point at the moment, so other ideas are welcome.
[14:15] <commandoline_> I'll look into the workaround though, thanks agronholm :)
[14:16] <agronholm> I do question the wisdom of doing what you do anyway
[14:31] <commandoline_> agronholm, I'm building a small open source application which converts a complicated binary data format into, say, json. Another open source java project can already read that kind of files. Now I can ofcouse fork the project and copy the source I need (which is still quite a job due to all the imports I'd need to follow), but I prefer to keep the code intact. Another advantage is that bugs don't need to be fixed at two places.
[14:32] <commandoline_> I'm using Jython since my Python is much better than my Java, and I think a loosely typed language is also an advantage while constructing this json.
[14:35] <agronholm> loosely typed? that's a new one for me :)
[14:35] <agronholm> python is strongly typed like java is
[14:35] <agronholm> but dynamically, not statically
[14:36] <commandoline_> Yes, that's what I meant :(
[14:36] <commandoline_> I always get that wrong... :P
[15:04] * shashank (~shashank@71-218-56-25.hlrn.qwest.net) has joined #jython
[15:10] * wainersm (~wainersm@177.103.139.177) has joined #jython
[15:15] * wainersm (~wainersm@177.103.139.177) Quit (Quit: Ex-Chat)
[15:21] * wainersm (~wainersm@177.103.139.177) has joined #jython
[15:57] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Quit: Page closed)
[16:14] * DanC_ returns to the question of deployment of libraries such as pkg_resources and xlrd
[16:18] <DanC_> doesn't seem to be covered by "Easy deployment" in http://jython.extreme.st/talk/talk.html
[17:01] <commandoline_> DanC_, ok, thanks anyway.
[17:03] <commandoline_> I think I'll just 'fix' the issue in the java code. Custom class loaders for an unhandled exception in the code seems overkill...
[17:04] * commandoline_ (~commandol@p4FF19EAF.dip0.t-ipconnect.de) has left #jython
[17:46] <seletz> hi guys. I've started to add deployment docs for flask on jython/modjy, first draft here: https://github.com/nexiles/flask/blob/jython-deployment-docs/docs/deploying/jython-modjy.rst
[17:47] <seletz> I'll continue and issue a pull request upstreams.
[18:01] * shashank (~shashank@71-218-56-25.hlrn.qwest.net) Quit (Ping timeout: 260 seconds)
[18:25] * Oti (~ohumbel@adsl-89-217-224-92.adslplus.ch) has joined #jython
[18:48] * juneau001 (~juneau@131.225.24.123) Quit (Quit: Take care...)
[19:15] * lheuer1 is now known as lheuer
[19:30] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[20:47] * makeawish (~makeawish@50-56-93-103.static.cloud-ips.com) has joined #jython
[21:56] * wainersm (~wainersm@177.103.139.177) Quit (Quit: Ex-Chat)
[21:57] * shashank (~shashank@ucb-np2-117.colorado.edu) has joined #jython
[22:40] <DanC_> is there a place I can just stick .jar files so that they'll be found by jython scripts?
[22:40] <DanC_> i.e. can I "install" them? in something like site-packages?
[22:40] <agronholm> the lib/ext directory in the JRE is the only such place
[22:41] <DanC_> hmmm
[22:43] <DanC_> ok. thanks, that works.
[22:44] <DanC_> `jython -m doctest foo.py` acts pretty strangely. in particular, it does the same whether I append the -v option or not
[22:46] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) Quit (Remote host closed the connection)
[22:46] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) has joined #jython
[23:06] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[23:07] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[23:15] <Arfrever> Jython fails to build for me: http://dpaste.com/741717/
[23:16] <Arfrever> agronholm || fwierzbicki: Do you know how to fix this problem?
[23:16] * shashank (~shashank@ucb-np2-117.colorado.edu) Quit (Ping timeout: 248 seconds)
[23:16] <agronholm> never seen that one
[23:16] <agronholm> what revision are you trying to build
[23:18] <Arfrever> agronholm: The newest revision from default branch (currently 23d0189442da).
[23:19] <Arfrever> agronholm: 2.5 branch fails with almost identical error message (line numbers slightly different).
[23:19] <fwierzbicki> Arfrever: that's very odd - trunk builds for me... have you modified it in any way?
[23:20] <Arfrever> fwierzbicki: I have made 0 changes.
[23:20] <fwierzbicki> Arfrever: so this is a fresh clone?
[23:21] <Arfrever> fwierzbicki: Yes.
[23:21] <Arfrever> fwierzbicki: I'm currently using IcedTea JDK 7.2.1. I have seen the same error with Sun JDK 1.6.0.31.
[23:22] <fwierzbicki> hmmm - do you have CLASSPATH set (long shot - I think our build.xml clears that...)
[23:23] <Arfrever> fwierzbicki: CLASSPATH environmental variable is not set.
[23:23] <fwierzbicki> I'm trying to think of a way that an older asm
[23:23] <fwierzbicki> might get invoked - it sounds a little like that
[23:24] <fwierzbicki> or if there is an extra .py file in Lib?
[23:24] <fwierzbicki> Arfrever: if you issue "hg status" do you see anything?
[23:24] <Arfrever> fwierzbicki: No.
[23:25] <agronholm> Arfrever: are you sure you don't have asm.jar in lib/ext of your JRE?
[23:25] <agronholm> or somewhere in the boot class path
[23:26] <Arfrever> agronholm: Which version of asm is needed?
[23:26] <agronholm> 4.x I think
[23:26] <agronholm> for 2.7
[23:26] <agronholm> an older asm is used for 2.5
[23:30] <fwierzbicki> Arfrever: for 2.5 -- it's asm 3.1
[23:34] <Arfrever> agronholm, fwierzbicki: I have asm 2 and 3 installed. They provide /usr/share/asm-2/lib/asm.jar and /usr/share/asm-3/lib/asm.jar respectively.
[23:34] <agronholm> could those be accidentally getting picked up
[23:34] <fwierzbicki> Arfrever: so that sounds like the trouble - somehow they are getting used in the build instead of the ones in extlibs I bet
[23:37] <Arfrever> Is there a way to force using of a jar from extlibs directory (equivalent of PYTHONPATH for Java)?
[23:41] * shashank (~shashank@c-98-245-167-68.hsd1.co.comcast.net) 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).