#jython IRC Log (v0.9)

Index

IRC Log for 2010-10-08

Timestamps are in GMT/BST.

[0:25] * headius (~headius@216.160.3.79) has joined #jython
[0:26] * headius (~headius@216.160.3.79) Quit (Client Quit)
[0:29] * thobe1 (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) has joined #jython
[0:33] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) Quit (Ping timeout: 272 seconds)
[0:48] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) has joined #jython
[0:52] * stakkars (~tismer@i577B4588.versanet.de) Quit (Quit: stakkars)
[0:58] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) has joined #jython
[0:59] <jimbaker> pjenvey: i would like to see a release candidate by this weekend. we can delay if it makes sense. i don't see anything that should delay however
[1:02] <jimbaker> i'm meeting up with jeremy siek in just over a week to discuss jython performance and gradual typing. he has a new student that is interested in working with us on jython, so that's quite cool
[1:07] <jimbaker> re the student code-in - i think what we like about GHOPC is that it was very discrete. it's often easier for us to come up with bite-sized pieces of work, and especially easier to evaluate
[1:08] <jimbaker> the timing could be very good for jython 2.6 - i think we could immediately start updating stdlib to 2.6 and see what breaks, just like we did w/ 2.5
[1:17] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) Quit (Quit: jimbaker)
[1:28] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[1:38] * thobe1 (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) Quit (Quit: Leaving.)
[2:45] * sgithens (~sgithens@cpe-24-166-24-35.indy.res.rr.com) has joined #jython
[3:54] * stakkars (~tismer@i577B4588.versanet.de) has joined #jython
[3:58] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) has joined #jython
[3:58] <aleff> jimbaker: thanks
[3:58] <aleff> I'm still working on it
[4:01] <jimbaker> aleff: glad to hear. if you need any help, please ask here - you have a very cool project. also i have some experience with twisted. but the lack of a java specific reactor has meant it's been not so interesting unless there's some sort of java lib integration. i think your work makes it much more compelling
[4:04] <jimbaker> i think one thing we can look at it is to see if there's any opportunity to get more inlining for a specific usage pattern. 2.6 is going to explore that much further
[4:04] <aleff> jimbaker: yeah it seems it could be better than twisted
[4:05] <aleff> and faster
[4:05] <aleff> but it takes time
[4:05] <aleff> however, porting twisted protocols to niosted is easier now
[4:06] <aleff> with jython, it's even more powerful
[4:06] <aleff> and I like the idea of deploying .jar files :P
[4:07] <jimbaker> it's pretty slick, for sure
[4:07] <aleff> by the way, how can I make Lib/site-packages packages be part of PYTHONPATH within jars?
[4:08] <aleff> I tried __pyclasspath__ and other but couldn't manage to get it working
[4:08] <aleff> I'm using 2.5.2b
[4:10] <jimbaker> aleff: not certain what the issue here is - basically i would recommend any package you have use a standard setup.py to install itself into site-packages
[4:11] <jimbaker> this works well in conjunction w/ jars. OR conversely, with tools like virtualenv
[4:11] <aleff> that's what I've done
[4:12] <aleff> and if I create the jythonlib.jar it swill works, when python code is not within the same jar
[4:12] <jimbaker> i guess i need something more specific here on what you're doing
[4:12] <agronholm> aleff: http://packages.python.org/jython-swingutils/deployment.html
[4:12] <aleff> s/swill/still
[4:13] <aleff> agronholm: tks
[4:13] <agronholm> so if you have, say, "sqlalchemy" in site-packages, make a jar so that the sqlalchemy directory is in the top level of the jar
[4:14] <agronholm> you can put all your third party packages there
[4:14] <agronholm> the deployment instructions could probably be a bit more verbose
[4:14] <aleff> that's what I've been doing
[4:15] <agronholm> so what's the prob
[4:15] <agronholm> sorry for asking dumb questions
[4:15] <aleff> it works when the package is top level
[4:15] <agronholm> yeah?
[4:15] <agronholm> I don't really see it working any other way
[4:15] <aleff> but doesn't work when it's at Lib/site-packages/
[4:15] <agronholm> from within .jar files
[4:16] <agronholm> that is why the deployment instructions tell you to package them at the top level
[4:16] <aleff> the specific case is
[4:16] <aleff> I downloaded and installed jython
[4:16] <aleff> and used jython to install simplejson
[4:16] <aleff> ~/jython/Lib/site-packages/simplejson-something.egg
[4:17] <aleff> I then created jythonlib.jar and added Lib/
[4:17] <aleff> then I added my code to the same jar
[4:17] <agronholm> just package simplejson like you do with the rest
[4:17] <aleff> zip -r mymodule jythonlib.jar
[4:17] <aleff> mymodule uses simplejson
[4:17] <aleff> but it can't find the simplejson module
[4:17] <aleff> however, if mymodule is not in the jar, it works
[4:18] <agronholm> you have to package simplejson the same way you do the rest -- I doubt jython can find a zipped egg
[4:18] <agronholm> so unzip the egg and repackage it in a jar
[4:18] <aleff> I tried unzipping, didn't work either
[4:18] <agronholm> huh?
[4:18] <aleff> the only way it works is when I zip -r jythonlib.jar simplejson
[4:18] <aleff> to the root of the jar
[4:19] <agronholm> well that's what I said, didn't I
[4:19] <aleff> yes
[4:19] <aleff> that's also in the doc
[4:19] <agronholm> so what's the problem, again?
[4:19] <aleff> no problem, I knew that adding to the root level of the jar would work
[4:19] <aleff> I just asked why Lib/site-packages/ doesn't
[4:20] <agronholm> well, why would it
[4:20] <agronholm> you don't have an actual Lib/site-packages directory anymore
[4:20] <aleff> well, it works if mymodule is not in the same jar
[4:20] <aleff> hehe
[4:20] <agronholm> that is weird
[4:20] <aleff> very
[4:21] <agronholm> anyway, just go with the flow and package them at the root
[4:21] <aleff> first I tried to understand, then I realized adding to root level works
[4:21] <aleff> that's what I've been doing so
[4:22] <jimbaker> aleff: i'm not certain what's going on here, but ideally any jar should be importable when it's in site-packages too, since it's desirable to do that
[4:22] <jimbaker> but i admit, i'm not an expert on packaging
[4:23] <jimbaker> pjenvey or maybe one of the other devs probably has more insight
[4:23] <aleff> :)
[4:23] <aleff> np
[4:23] <agronholm> jimbaker: you got it the wrong way around I think
[4:23] <agronholm> site-packages is IN a jar file here, not vice versa
[4:24] <jimbaker> sure, but i can have my jars nested
[4:24] <jimbaker> basically i should be able to use pip to put together a set of packages, which may include jars
[4:25] <agronholm> then idk why this fails for aleff
[4:25] <jimbaker> yeah, i don't know either
[4:25] <jimbaker> but we can fix it :)
[4:31] <jimbaker> aleff: let's just get together a specific test case on what is happening here (so a setup.py etc), then we can determine what's going on
[4:32] <aleff> that's easy to reproduce
[4:32] <aleff> install simplejson
[4:32] <aleff> generate the jythonlib.jar
[4:32] <aleff> zip -r jythonlib.jar cyclone
[4:32] <aleff> then try to run java -cp niosted.jar -jar jythonlib.jar HelloWorld.py
[4:33] <aleff> http://github.com/fiorix/niosted
[4:33] <aleff> it will complain about not being able to import simplejson
[4:33] <aleff> but if cyclone is not in the jar, it works
[4:34] <aleff> HelloWorld imports cyclone, which imports simplejson
[4:34] <aleff> both cyclone and simplejson are in the same jar, but simplejson at Lib/site-packages and cyclone top level
[4:36] <agronholm> aleff: try creating your jars with the jar tool -- it adds the META-INF directory which may be necessary
[4:37] <aleff> hmm
[4:42] <jimbaker> yeah, best to use the jar tool, or java api equiv (use from jython!) what i would like to see here is this all done with respect to a standard setup. unfortunately it looks like jump is no longer available
[4:43] <jimbaker> basically there's not much here, the django-on-jython has similar support for creating WAR files that leo soto worked on a couple of years ago
[4:43] <jimbaker> easy enough to repurpose
[4:43] <agronholm> I wonder why Olli Wang stopped development of Jump (and made it unavailable)
[4:44] <agronholm> well
[4:44] <jimbaker> agronholm: not certain. some people don't grok open source however
[4:44] <agronholm> it's still here: http://pypi.python.org/pypi/jump/0.9.7.4
[4:44] <jimbaker> the download is - but we want source code in a VCS
[4:45] <jimbaker> aLso it's GPL, which isn't too bad for packaging, but we tend to avoid in general w/ jython
[4:54] <aleff> hmm I think I found it
[4:55] <aleff> I just copied jython.jar to cyclone.jar, jar uf cyclone.jar Lib/
[4:55] <aleff> java -jar cyclone.jar
[4:55] <aleff> from the console I imported sys
[4:55] <aleff> sys.path shows cyclone.jar/Lib
[4:55] <aleff> but not Lib/site-packages, for some reason
[4:58] <aleff> http://pastie.org/1206976
[4:59] <aleff> sys.path.append("jythonlib.jar/Lib/site-packages") works fine
[5:00] <aleff> then import simplejson works as well
[5:01] <aleff> but that makes sense
[5:01] <aleff> it shouldn't scan all sub-directories for other modules
[5:01] <aleff> hehe
[5:02] <aleff> unless Lib/site.py tries to append Lib/site-packages to pyclasspath
[5:02] <aleff> :P
[5:09] <aleff> http://pastie.org/1206995
[5:09] <aleff> this is probably fine
[5:19] <jimbaker> aleff: when it works, that sounds good to me! but we will still want to address this packaging question more going forward
[5:20] <aleff> nice
[5:33] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) Quit (Ping timeout: 245 seconds)
[6:21] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[6:29] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) has joined #jython
[8:15] * Imek (~joe@195.188.251.108) has joined #jython
[8:33] * Imek (~joe@195.188.251.108) Quit (Quit: Leaving)
[8:51] * adiroiban (~adiroiban@89.137.108.176) has joined #jython
[9:16] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[9:18] * adiroiban (~adiroiban@89.137.108.176) has left #jython
[9:25] * seberg (~sebastian@vpn-3008.gwdg.de) has joined #jython
[9:28] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[9:29] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) has joined #jython
[10:11] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[10:25] * stever_ (~stever@dsl78-143-230-39.in-addr.fast.co.uk) has joined #jython
[10:28] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) Quit (Ping timeout: 260 seconds)
[10:28] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[10:30] * stever_ is now known as stever
[10:43] * seberg (~sebastian@vpn-3008.gwdg.de) Quit (Quit: Ex-Chat)
[10:52] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[11:12] * juneau001 (~juneau@131.225.24.113) has joined #jython
[11:14] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[11:20] * Imek (~joe@195.188.251.108) has joined #jython
[11:40] * seberg (~sebastian@134.76.218.194) has joined #jython
[12:17] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) has joined #jython
[13:24] * sgithens (~sgithens@cpe-24-166-24-35.indy.res.rr.com) Quit (Ping timeout: 240 seconds)
[13:55] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[13:55] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[13:58] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Client Quit)
[14:36] * enebo (~enebo@184-97-208-251.mpls.qwest.net) has joined #jython
[14:37] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[14:54] * natlus (~simon@transgaming.de) Quit (Read error: Connection reset by peer)
[15:00] * natlus (~simon@transgaming.de) has joined #jython
[15:03] * jimbaker (~jbaker@c-76-24-26-118.hsd1.ma.comcast.net) Quit (Quit: jimbaker)
[15:07] * skay (~skay@209-206-253-154.stat.centurytel.net) has joined #jython
[15:32] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) Quit (Quit: Leaving.)
[15:34] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) has joined #jython
[15:45] * juneau001 (~juneau@131.225.24.113) Quit (Quit: juneau001)
[16:05] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) Quit (Quit: Leaving.)
[16:17] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[16:19] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) Quit (Quit: Leaving)
[16:40] * agronholm_ (demigod@nblzone-211-17.nblnetworks.fi) has joined #jython
[16:42] * agronholm (demigod@nblzone-211-17.nblnetworks.fi) Quit (Read error: Connection reset by peer)
[17:09] * Imek (~joe@195.188.251.108) Quit (Read error: Connection reset by peer)
[17:18] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[17:23] * seberg (~sebastian@134.76.218.194) Quit (Ping timeout: 264 seconds)
[17:33] * seberg (~sebastian@vpn-3060.gwdg.de) has joined #jython
[17:46] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) has joined #jython
[18:03] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) has joined #jython
[18:56] * enebo (~enebo@184-97-208-251.mpls.qwest.net) Quit (Quit: enebo)
[20:09] * seberg (~sebastian@vpn-3060.gwdg.de) Quit (Quit: Ex-Chat)
[20:21] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[20:38] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Ping timeout: 260 seconds)
[20:45] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: leaving)
[20:45] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[20:46] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Quit: Lost terminal)
[21:02] * pjenvey (~pjenvey@underboss.org) Quit (Quit: ZNC - http://znc.sourceforge.net)
[21:03] * pjenvey (~pjenvey@underboss.org) has joined #jython
[21:05] * verterok (~ggonzalez@190.191.129.183) has joined #jython
[21:05] * verterok (~ggonzalez@190.191.129.183) Quit (Changing host)
[21:05] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[21:43] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Quit: leaving)
[22:12] * stakkars (~tismer@i577B4588.versanet.de) Quit (Ping timeout: 272 seconds)
[22:19] * stakkars (~tismer@i577B7F9B.versanet.de) has joined #jython
[23:23] * yacc (~andreas@84.113.164.165) Quit (Ping timeout: 252 seconds)
[23:50] * lopex (lopex@chello089076044027.chello.pl) Quit ()

Index

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