#jython IRC Log (v0.9)


IRC Log for 2012-02-24

Timestamps are in GMT/BST.

[2:17] * lheuer1 (~Adium@blfd-4d08f83e.pool.mediaWays.net) has joined #jython
[2:19] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 244 seconds)
[3:08] <juneau001> Looks like jython.org (python.org) is down
[4:46] * shashank (~shashank@63-228-87-227.hlrn.qwest.net) has joined #jython
[5:54] * Tiktalik is now known as Captain_Obvious
[5:55] * Captain_Obvious is now known as Tiktalik
[7:41] * shashank (~shashank@63-228-87-227.hlrn.qwest.net) Quit (Ping timeout: 265 seconds)
[7:45] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) has joined #jython
[8:24] * lheuer1 is now known as lheuer
[8:24] * lheuer (~Adium@blfd-4d08f83e.pool.mediaWays.net) Quit (Changing host)
[8:24] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[9:51] * ohumbel (5390f2dc@gateway/web/freenode/ip. has joined #jython
[11:10] * juneau001 (~juneau@ Quit (Quit: juneau001)
[11:41] * wainersm (~wainersm@ has joined #jython
[11:51] * stakkars (~tismer@p5DDB5D80.dip.t-dialin.net) Quit (Quit: stakkars)
[11:54] * stakkars (~tismer@p5DDB5D80.dip.t-dialin.net) has joined #jython
[11:55] * stakkars_ (~tismer@p5DDB5D80.dip.t-dialin.net) has joined #jython
[12:05] * clajo04_ (~clajo04_@pool-108-41-219-3.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[12:08] * clajo04_ (~clajo04_@pool-108-41-219-3.nycmny.fios.verizon.net) has joined #jython
[12:16] <agronholm> fwierzbicki: how far did you get with the testing?
[12:22] * juneau001 (~juneau@ has joined #jython
[13:27] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 248 seconds)
[13:49] * enebo (~enebo@75-168-50-253.mpls.qwest.net) has joined #jython
[15:23] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[15:44] * shashank (~shashank@63-228-87-227.hlrn.qwest.net) has joined #jython
[15:48] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[16:35] <fwierzbicki> agronholm: on windows 7 I got these failures: test_chdir test_jython_initializer test_os_jy test_shutil
[16:35] <fwierzbicki> test_sort
[16:35] <fwierzbicki> so actually not too bad and probably win7 specific (so probably easily fixed)
[16:35] <agronholm> do you need my help with those?
[16:37] <fwierzbicki> agronholm: If you want to have a look I'd love the help - I plan on looking too. Do you by chance have a different version of windows - it would be nice to know if other windows work
[16:37] <agronholm> I have an XP virtual machine
[16:38] <fwierzbicki> yeah if you could grab the beta and run the regression tests that would help - let me get the incantation (will need to figure out how to c&p from a dos window - funny how long it's been
[16:38] <agronholm> right click on it
[16:38] <agronholm> choose Mark
[16:38] <agronholm> select the area
[16:38] <agronholm> right click again
[16:38] <agronholm> and there you have it
[16:38] <fwierzbicki> ha sure - I meant I need to widen it - I figured it out :)
[16:39] <fwierzbicki> the last paste above was ugly
[16:39] <agronholm> if you do figure out how to make it wider, let me know too
[16:39] <fwierzbicki> and "quick edit" mode helps
[16:39] <fwierzbicki> agronholm: you click "properties"
[16:39] <fwierzbicki> and change the "layout"
[16:40] <agronholm> ah right
[16:41] <fwierzbicki> bbiab - daughter forgot a book gotta go drop it off at school :)
[16:41] <fwierzbicki> C:\JYTHON~1.3B1>bin\jython.bat -Dpython.console=org.python.util.InteractiveConsole Lib\test\regrtest.py --expected
[16:41] <fwierzbicki> agronholm: that's the way to run the tests so the console doesn't hose things up
[16:50] <ohumbel> i successfully ran the installer autotests on the following platforms:
[16:51] <fwierzbicki> w/o the -Dpython.console=... part the default console causes loads of test problems. Possibly a new version of jline would fix that
[16:51] <fwierzbicki> ohumbel: hey!
[16:51] <ohumbel> hey fwierzbicki!
[16:51] <ohumbel> that was the least i could do ...
[16:52] <ohumbel> Ubuntu 11.10 64-bit, java version "1.7.0_03", java version "1.7.0_147-icedtea", java version "1.6.0_24"
[16:52] <ohumbel> Mac OS X 10.7.3, java version "1.6.0_29"
[16:52] <ohumbel> Windows 7 64-bit: java version "1.7.0_03", java version "1.6.0_31", java version "1.5.0_22"
[16:52] <fwierzbicki> oh good - I was hoping java 1.5 still worked
[16:53] <ohumbel> fwierzbicki - thanks for building it this time!
[16:53] <fwierzbicki> ohumbel: no problem! I need to make the build.xml nicer - but the hg part turned out to be much less difficult than I had feared
[16:54] <agronholm> so are we going to get it in maven THIS time?
[16:54] <ohumbel> fwierzbicki - glad to hear
[16:54] <fwierzbicki> agronholm: I think so - I am looking at the directions on our release notes, it doesn't look too hard
[16:54] <fwierzbicki> agronholm: but probably not until a final release
[16:55] <agronholm> did 2.5.2 ever make it to maven?
[16:55] <fwierzbicki> though I could go through the exercise with 2.5.2....
[16:55] <fwierzbicki> guessing that answers your question :)
[16:55] <KevinH> fwierzbicki, did you get a chance to look at that self-contained example?
[16:55] <ohumbel> agronholm - i try to help; no 2.5.2 got stuck in my todo list
[16:55] <ohumbel> mea culpa
[16:55] <fwierzbicki> KevinH: sorry not yet - I'll take a look this morning
[16:55] <KevinH> ok, thanks!
[16:56] <ohumbel> fwierzbicki: i was trying to migrate the installer from svn to hg
[16:57] <fwierzbicki> ohumbel: ah - how is that going?
[16:57] <ohumbel> as pjenvey noted: it is involved, but i still hope i can have it suitable for building
[16:57] <ohumbel> the full detailed history is not so important, imho
[16:57] <fwierzbicki> ohumbel: I know pjenvey spent way too much time on the mercurial migration
[16:58] <ohumbel> that was surely ok for the main repo
[16:58] <fwierzbicki> ohumbel: sure - I think you are right
[16:59] <ohumbel> fwierzbicki: what about the website project - as far as i recall it would need conversion, too?
[16:59] <fwierzbicki> ohumbel: I discussed this with juneau001 - we think it's ok to just drop the website and docs in w/o history
[17:00] <fwierzbicki> so that will be easy once we get to it
[17:01] <ohumbel> fwierzbicki: i am dreaming if everything is in hg, we could write the build in python, since every developer needs to have it anyway :-)
[17:01] <juneau001> just updated the site, but I did not include an MD5 or SHA1 hash for the download
[17:02] <ohumbel> juneau001: hey!
[17:02] <juneau001> ohumbel: how have you been?
[17:02] <fwierzbicki> ohumbel: that would be nice - and there are nice python scripts that work better once all is in hg
[17:03] <juneau001> looking forward to having everything in hg
[17:03] <juneau001> do you want me to commit the most recent website changes to svn?
[17:03] <ohumbel> juneau001: in the past month not too well healthwise, now much better (gladly)
[17:03] <ohumbel> month/months
[17:04] <juneau001> ohumbel: sorry to hear about that???glad to hear you are doing better now
[17:05] <juneau001> ohumbel: Do you want to generate the MD5 and SHA1 hashes? If you do that then I can post them. I have not generated them before???sorry I am a bit behind the curve on doing that.
[17:06] <ohumbel> juneau001: and you? busy writing i suppose
[17:07] <juneau001> ohumbel: yes, keeping busy with work, the family, and the writing???always something going on. :)
[17:07] <juneau001> ohumbel: most recently, started writing a book on Java EE 7???looking forward to that release.
[17:08] <fwierzbicki> juneau001: wow you are really going crazy with the author thing :)
[17:08] <fwierzbicki> ohumbel: sorry to hear about your health issues, glad to hear you are doing better
[17:08] <juneau001> fwierzbicki: i find that it helps to keep me current with the latest???also helps to pay the bills
[17:09] <juneau001> fwierzbicki: I have not seen any royalty checks as yet though???I imagine that we will at some point :)
[17:10] * ohumbel (5390f2dc@gateway/web/freenode/ip. Quit (Ping timeout: 245 seconds)
[17:13] * Trundle (~andy@python/site-packages/trundle) Quit (Remote host closed the connection)
[17:14] <juneau001> jython.org is live with the updates???just let me know if you see anything that needs to be adjusted.
[17:14] <juneau001> I have added a new section to the front page entitled
[17:14] <juneau001> Latest Blogs and Interesting Stuff???can change that name if you like
[17:15] <juneau001> also cut off the news after a year???so now we will only list the news for the past year???hope that is okay. The front page was getting long...
[17:27] <fwierzbicki> juneau001: cutting off the news after a year sounds right to me
[17:28] * Oti (5390f2dc@gateway/web/freenode/ip. has joined #jython
[17:29] <Oti> juneau001: i'll try to look up the hashes on source forge
[17:30] <juneau001> oti: I just found them???guess I never clicked on the Info button by the download before
[17:30] <juneau001> Oti: thanks
[17:31] <juneau001> i will post the hashes to the site in a bit...
[17:31] <Oti> juneau001: cool
[17:33] <Oti> juneau001: and i think it would be a good idea to commit the latest changes to svn
[17:40] * shashank (~shashank@63-228-87-227.hlrn.qwest.net) Quit (Ping timeout: 260 seconds)
[17:41] <Oti> fwierzbicki: missed your last message, now see it in the log - thanks
[17:45] <Oti> juneau001: i recently started writing a python program with my eldest son (square root approximation algorithm) - love the emacs python mode :-D
[17:45] <fwierzbicki> juneau001: re: books - yeah I don't think anyone ever gets rich on tech books :)
[17:57] * Oti (5390f2dc@gateway/web/freenode/ip. Quit (Quit: Page closed)
[18:03] * shashank (~shashank@c-98-245-200-138.hsd1.co.comcast.net) has joined #jython
[18:39] * shashank (~shashank@c-98-245-200-138.hsd1.co.comcast.net) Quit (Ping timeout: 252 seconds)
[18:42] <juneau001> Oti: I will commit those changes to SVN
[18:42] <juneau001> Oti: That is cool to be writing a program with your son???not sure if any of my sons will be interested in programming when they get older.
[18:43] <jimbaker`> my daughter has played with scratch and alice... and C! should introduce her to python
[18:43] <jimbaker`> that is, the language C
[18:43] <juneau001> cool
[18:44] <jimbaker`> (the exclamation mark might be confusing there ;) )
[18:44] <juneau001> :)
[18:47] <juneau001> MD5 and SHA1 for 2.5.3b1 posted to the downloads page of jython.org
[18:53] <fwierzbicki> KevinH: probably it's just been a long time, but I can't seem to get the Jython 2.1 installer going. I get "Exception in thread "main" java.lang.ClassFormatError: Extra bytes at the end of class file jython-21"
[18:53] <fwierzbicki> (or anyone else here who knows how to get that crusty old thing running)
[18:53] <KevinH> that example uses 2.5
[18:53] <fwierzbicki> KevinH: right I just want to verify the regression - it will help me track down the problem (maybe)
[18:54] <KevinH> oh ok
[18:55] <fwierzbicki> the sad thing is that the knowledge of how 2.1 was built is sort of lost - so I'm not sure how much 2.1 will help
[18:55] <fwierzbicki> but if I can at least get a running version that would be nice - KevinH how do you install a 2.1?
[18:55] <KevinH> I just ran the 2.1 installer i found in an archive
[18:55] <fwierzbicki> I bet I've just forgotten something obvious
[18:56] <KevinH> I haven't actually tried to use it though, just dug around in the source to compare PyReflectedFunction
[18:56] <fwierzbicki> KevinH: 2.5 or 2.1?
[18:56] <KevinH> I have both installed, both via an installer that was essentially the same
[18:57] <KevinH> i think it was just a runnable jar that installed it to wherever you pointed it
[18:57] <fwierzbicki> KevinH: do you know where the installer came from? I tried to grab the Jython-21.class file from sourceforge
[18:57] <KevinH> hmm, i think it was sourceforge
[18:57] <fwierzbicki> KevinH: that describes the 2.5 installer
[18:57] <fwierzbicki> but I think the 2.1 installer was a runnable .class file
[18:57] <fwierzbicki> at least that's all I see right now
[18:58] <KevinH> let me check
[18:58] <juneau001> Just FYI???installer does not work well with the 1.7.0 openjdk release on OS X???there is no text
[18:58] <KevinH> aw crap
[18:58] <KevinH> I installed Jython 2.2
[18:58] <KevinH> not Jython 2.1
[18:58] <fwierzbicki> KevinH: oh! that's much easier
[18:58] <fwierzbicki> so the regression is from 2.2 to 2.5
[18:58] <KevinH> no
[18:58] <KevinH> the software definitely uses 2.1
[18:58] <fwierzbicki> does the bug appear in 2.2?
[18:59] <fwierzbicki> that is does it work as you expect on 2.2
[18:59] <KevinH> Great question... let me try it.
[18:59] <fwierzbicki> KevinH: thanks!
[18:59] <fwierzbicki> if it works on 2.2 but fails on 2.5 the tracking will be *much* easier
[19:02] <KevinH> bleh, my example has code that is specific to 2.5 in it that is now not compiling... may take some time to fix that. things like overriding __findattr_ex__(String) and the existence of CompileMode and CompilerFlags.getCompilerFlags()
[19:04] <KevinH> one minute...
[19:04] <fwierzbicki> KevinH: ah ok
[19:04] <KevinH> doesn't look too bad to fix
[19:06] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) Quit (Quit: wmeissner)
[19:08] <KevinH> fwierzbicki, it does not work as expected in 2.2 either
[19:09] <KevinH> SORRY
[19:09] <fwierzbicki> KevinH: drat - ok well that at least narrows the search scope down
[19:09] <KevinH> take that back, it DOES work as expected in 2.2
[19:09] <fwierzbicki> oh - no that's good news
[19:09] <KevinH> phew
[19:09] <fwierzbicki> and more along the lines of what I expected
[19:31] * shashank (~shashank@ucb-np2-207.colorado.edu) has joined #jython
[19:33] <fwierzbicki> KevinH: would you mind putting together another zip that works on 2.2 and 2.5?
[19:34] <KevinH> sure
[19:34] <KevinH> i'll give you what i ahve that works on 2.2
[19:34] <KevinH> with the 2.5 code commented out
[19:34] <fwierzbicki> ok
[19:34] <KevinH> then you can comment/uncomment/point to the jar version you want to test
[19:34] <fwierzbicki> once I can confirm it I'll put together a bug report and send you a link
[19:34] <fwierzbicki> or post a link here
[19:38] <KevinH> fwierzbicki, http://files.inductiveautomation.com/jython/JythonSSCEE2.zip
[19:39] <KevinH> it's setup to run against 2.2 currently
[19:39] <KevinH> with all the places to comment/uncomment for 2.5 documented in code
[19:39] <fwierzbicki> KevniH: ok thanks
[19:40] <KevinH> i am hoping that it turns out to be a problem with how i'm adding Java methods to PyReflectedFunction and the little ScriptManager/ScriptModule/ScriptPackage setup we have going
[19:40] <KevinH> and not a Jython 2.5 problem... but you'll have to tell me
[19:40] <KevinH> something definitely seems wrong about PyReflectedFunction in Jython 2.5.2 though
[19:41] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[19:42] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[19:42] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[19:43] <fwierzbicki> KevinH: yeah - getting a self bound to a static function sounds wrong
[20:00] <fwierzbicki> KevinH: ok so far it isn't as severe a bug as I had feared - doing "from Main import Example" and calling foo behaves the same in 2.2.1 and 2.5.3b1 -- so it probably does have something to do with direct use of PyReflectedFunction.
[20:00] <KevinH> ok
[20:02] <KevinH> fwierzbicki, I'm able to get things running against 2.5 by using this extension to PyReflectedFunction. it's a bit of a hack, but it works. maybe it will help shed some light. https://gist.github.com/c385f90afc6f0dd3c9cf
[20:03] <KevinH> Basically I'm faking out a
[20:03] <KevinH> 'self' object
[20:04] <fwierzbicki> KevinH: ah I see hmmm - I think I'll just need to look at what changed in PyReflectedFunction between 2.2 and 2.5
[20:22] <fwierzbicki> KevinH: ok I see some code that used to detect static calls which the original author considered "hacky" -- so I'm getting closer to at least understanding
[20:22] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 244 seconds)
[20:23] * juneau001 (~juneau@ Quit (Quit: Take care...)
[20:23] * wainersm (~wainersm@ Quit (Ping timeout: 240 seconds)
[20:23] <fwierzbicki> oops scratch that - the "hacky" comment is in the new version
[20:23] <fwierzbicki> hmmm
[20:26] * wainersm (~wainersm@ has joined #jython
[20:26] <KevinH> Yeah I see the "hacky" bit about calledStatically
[20:29] <pjenvey> hacky indeed (I wrote that)
[20:29] <pjenvey> if you revert it something will fail, I can't remember the details
[20:29] <pjenvey> i think it had to do with how we started passing ThreadState to __call__?
[20:31] <fwierzbicki> ha
[20:31] <fwierzbicki> but also :(
[20:34] <fwierzbicki> what this calls for is a further reduction of the example until I can get it down to a single java file example then I'll either see what's going on or I'll have a reasonable bug report / test case -- but that will probably need to wait until tonight. At least it's progress
[20:36] <KevinH> alright
[20:36] <pjenvey> is there a bug report
[20:37] <KevinH> I may have to go with my hacky extension to PyReflectedFunction for now so I can meet my impending doom... errr... release deadline.
[20:41] <KevinH> me right now: http://i.qkme.me/36awmp.jpg
[20:43] <fwierzbicki> ha
[20:44] <fwierzbicki> I wouldn't say 2.1 -> 2.5 would be easy :)
[20:44] <KevinH> yeah oh well
[20:44] <KevinH> almost done :)
[20:44] <fwierzbicki> cool - I'll start a bug
[20:44] <KevinH> thanks for your help
[20:45] <fwierzbicki> KevinH: here's the bug - just a placeholder for now: http://bugs.jython.org/issue1843
[20:45] <pjenvey> KevinH it seems like you're uh
[20:46] <pjenvey> mucking into some internals, for sure =]
[20:46] <fwierzbicki> KevinH: feel free to expand on it
[20:46] <pjenvey> it looks like you're taking all the static methods from a class and putting them in a namespace?
[20:46] <fwierzbicki> but as pjenvey is pointing out - you are deep in guts :)
[20:46] <KevinH> pjenvey, yes. and in the non-pared-down example we do it with non-static methods in some cases too
[20:47] <KevinH> well, i guess i mean the real implementation. it's not an example. lol
[20:48] <pjenvey> I think what you need to do is emulate the python property usage you would get when using regular java integration w/ classes
[20:49] <pjenvey> like if you do from java.lang import String; foo = String.valueOf
[20:50] <pjenvey> that should do a __get__(null, StringPYTHONTYPE)
[20:50] <KevinH> hmm
[20:50] <pjenvey> i think you need to do something similar, when you created a PyReflectedFunction, try doing new PyReflectedFunction(m).__get__(null, <pythontype>)
[20:51] <pjenvey> you might even be able to get away with null for <pythontype> there since I don't see a python type in that code anyway
[20:52] <pjenvey> otherwise probably can get it with Py.java2py(javaClass)
[20:53] * jimbaker` (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) Quit (Quit: Coyote finally caught me)
[20:53] * jimbaker (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) has joined #jython
[20:53] * jimbaker (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) Quit (Changing host)
[20:53] * jimbaker (~jbaker@canonical/jimbaker) has joined #jython
[20:55] <KevinH> pjenvey, doing a __get__(null,null) on the PyReflectedFunction I create and casting the returned object to PyReflectedFunction, then storing that and adding any over loads to it... worked
[20:55] <pjenvey> pardon me the python code would do __get__(None (not null) but null will work when you call the java method
[20:55] <pjenvey> KevinH - sweet?
[20:56] <KevinH> some voodoo black magic going on as far as i'm concerned
[20:56] <KevinH> lol
[20:57] <pjenvey> http://docs.python.org/howto/descriptor.html might shed some light on what's going on
[20:57] <pjenvey> PyReflectedFunction is definitely kind of a hackjob right now though
[20:57] <pjenvey> =]
[20:57] <KevinH> I'll give that a read
[20:58] <KevinH> I am *not* familiar with python internals or really even Jython. I inherited this scripting upgrade, was not the original author.
[20:58] <pjenvey> i can't really say why that would have worked in 2.2 or if that was even correct behavior really,id 'have to think about it
[20:58] <KevinH> this has been a journey
[21:00] <pjenvey> you might want to pass Py.java2py(javaClass) as arg 2 for good measure, that might break something else later
[21:00] <KevinH> ok
[21:10] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[21:11] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[21:23] * Trundle (~andy@python/site-packages/trundle) Quit (Ping timeout: 245 seconds)
[21:52] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 244 seconds)
[21:54] * pjenvey (~pjenvey@underboss.org) Quit (Quit: ZNC - http://znc.sourceforge.net)
[21:54] * pjenvey (~pjenvey@underboss.org) has joined #jython
[21:56] * wainersm (~wainersm@ Quit (Quit: Ex-Chat)
[22:18] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 240 seconds)
[23:19] * enebo (~enebo@75-168-50-253.mpls.qwest.net) Quit (Quit: enebo)


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