#jython IRC Log (v0.9)

Index

IRC Log for 2010-11-04

Timestamps are in GMT/BST.

[0:14] * intuition (~vaine0@69.84.253.197) has joined #jython
[0:15] <intuition> Hey, I'm trying to use jython as a scripting language and I can't figure out how to import modules into my jython scripts -- any idea why this might be?
[0:16] <intuition> As a simple example, I can import: import java.util.Random
[0:16] <intuition> but rng = Random() will crash within the script: NameError: Random
[0:17] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Ping timeout: 265 seconds)
[0:19] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) Quit (Remote host closed the connection)
[0:24] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[0:26] * thobe1 (~Adium@c83-249-247-186.bredband.comhem.se) has joined #jython
[0:27] * thobe (~Adium@83.249.247.186) Quit (Ping timeout: 272 seconds)
[0:42] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) has joined #jython
[0:44] * thobe1 (~Adium@c83-249-247-186.bredband.comhem.se) Quit (Ping timeout: 265 seconds)
[0:44] * thobe1 (~Adium@c83-249-247-186.bredband.comhem.se) has joined #jython
[0:46] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) Quit (Ping timeout: 255 seconds)
[0:47] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[0:51] * thobe1 (~Adium@c83-249-247-186.bredband.comhem.se) Quit (Ping timeout: 264 seconds)
[0:52] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) has joined #jython
[0:55] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Quit: Later)
[1:04] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[1:06] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[1:16] * thobe1 (~Adium@83.249.247.186) has joined #jython
[1:17] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) Quit (Read error: Operation timed out)
[1:18] * thobe1 (~Adium@83.249.247.186) Quit (Read error: Connection reset by peer)
[1:44] * eldragon (~eldragon@84.79.67.254) Quit (Ping timeout: 245 seconds)
[1:48] * thobe (~Adium@83.249.247.186) has joined #jython
[1:49] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[1:50] * eldragon (~eldragon@84.79.67.254) has joined #jython
[2:03] * intuition (~vaine0@69.84.253.197) Quit ()
[2:03] <agronholm> right, don't bother sticking around so someone could actually answer
[2:15] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 252 seconds)
[2:16] * jimbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[2:55] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[3:00] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[3:14] * verterok (~ggonzalez@190.188.243.32) has joined #jython
[3:14] * verterok (~ggonzalez@190.188.243.32) Quit (Changing host)
[3:14] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[3:58] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Quit: leaving)
[4:17] * pjenvey (~pjenvey@underboss.org) Quit (Quit: ZNC - http://znc.sourceforge.net)
[4:18] * pjenvey (~pjenvey@underboss.org) has joined #jython
[8:05] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[8:24] * raymondh (~raymond@76.89.181.64) Quit (Ping timeout: 260 seconds)
[8:39] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) has joined #jython
[8:56] * Imek (~joe@host-195-188-251-108.reversezone.co.uk) has joined #jython
[8:59] * raymondh (~raymond@76.89.181.64) has joined #jython
[9:02] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:08] * raymondh (~raymond@76.89.181.64) Quit (Ping timeout: 255 seconds)
[9:21] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) Quit (Remote host closed the connection)
[9:58] * juneau001 (~juneau@pool-72-69-197-59.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[10:03] * seberg (~sebastian@vpn-3078.gwdg.de) has joined #jython
[11:04] * juneau001 (~juneau@FESS-116326-2441078-dp.dhcp.fnal.gov) has joined #jython
[11:15] * thobe (~Adium@83.249.247.186) Quit (Quit: Leaving.)
[12:08] * seberg (~sebastian@vpn-3078.gwdg.de) Quit (Quit: Ex-Chat)
[13:08] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[14:19] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Ping timeout: 265 seconds)
[14:27] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[15:16] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[15:23] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Ping timeout: 264 seconds)
[15:25] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[15:42] * seberg (~sebastian@vpn-3044.gwdg.de) has joined #jython
[15:46] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[15:53] * seberg (~sebastian@vpn-3044.gwdg.de) Quit (Ping timeout: 240 seconds)
[16:22] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[16:24] * seberg (~sebastian@vpn-3072.gwdg.de) has joined #jython
[16:45] * raymondh (~raymond@76.89.181.64) has joined #jython
[16:47] * stakkars_ (~tismer@i59F7E852.versanet.de) has joined #jython
[16:50] * seberg (~sebastian@vpn-3072.gwdg.de) Quit (Quit: Ex-Chat)
[16:50] * stakkars (~tismer@i59F7E852.versanet.de) Quit (Ping timeout: 240 seconds)
[16:50] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 272 seconds)
[16:50] * stakkars_ is now known as stakkars
[16:53] * stakkars_ (~tismer@i59F7E852.versanet.de) has joined #jython
[16:57] * stakkars (~tismer@i59F7E852.versanet.de) Quit (Ping timeout: 264 seconds)
[16:57] * stakkars_ is now known as stakkars
[17:05] * adiroiban (~adiroiban@89.137.108.176) Quit (Ping timeout: 260 seconds)
[17:18] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Quit: Page closed)
[17:59] * headius (~headius@216.160.3.79) has joined #jython
[18:19] * shanka (~shashank@ucb-np1-77.colorado.edu) has joined #jython
[18:30] * Imek (~joe@host-195-188-251-108.reversezone.co.uk) Quit (Quit: Good night, and have a pleasant tomorrow.)
[18:39] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[19:14] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[19:18] * r0bby (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[19:19] * juneau001 (~juneau@FESS-116326-2441078-dp.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:29] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[19:56] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[20:38] * shanka (~shashank@ucb-np1-77.colorado.edu) Quit (Ping timeout: 276 seconds)
[20:42] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Remote host closed the connection)
[20:43] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[20:46] * Oti (~ohumbel@adsl-89-217-106-134.adslplus.ch) has joined #jython
[20:54] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[20:56] * adiroiban (~adiroiban@89.137.108.176) has joined #jython
[21:05] * juneau001 (~juneau@pool-72-69-74-162.chi01.dsl-w.verizon.net) has joined #jython
[21:18] * Noiano (~noiano@unaffiliated/noiano) has joined #jython
[21:18] <Noiano> hello everyone
[21:19] <Noiano> I need some help with a weird thing happening when using pydev
[21:19] <Oti> Noiano: hello
[21:19] <Noiano> I am using jython in order to use java lucene, right?
[21:19] <Noiano> Oti, hi
[21:20] <Noiano> I do execute an import statement like "from org.apache.lucene.store import FSDirectory" but strangely some static methods are hidden
[21:20] <Noiano> so I cannot invoke FSDirectory.getDirectory()
[21:21] <Noiano> but if I execute the script from the command line everything is ok
[21:21] <Noiano> quite strange I say...
[21:21] <Oti> do you see an error message?
[21:21] <Noiano> yes "Undefined variable from import: getDirectory"
[21:21] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[21:22] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[21:23] * stakkars (~tismer@i59F7E852.versanet.de) Quit (Ping timeout: 265 seconds)
[21:25] <agronholm> how can FSDirectory.getDirectory() give you an import error
[21:26] <Noiano> agronholm, the import error is reported in eclipse, using pydev
[21:26] <agronholm> Noiano: oh, don't mind those
[21:26] <agronholm> pydev gives a lot of false errors
[21:26] <agronholm> it has tons of bugs everywhere
[21:26] <Noiano> agronholm, any better ide to suggest?
[21:26] <agronholm> the issue backlog on its bug tracker is nothing short of gigantic
[21:27] <agronholm> no, unfortunately...I use it too :(
[21:27] <Noiano> the weird thing is : some methods are sown, other mysteriously hidden
[21:27] <agronholm> just ignore that...if the code runs, it's fine
[21:27] <Noiano> yeah, it does
[21:28] <Noiano> I just wanted to know if it was my fault
[21:28] <agronholm> pydev's jython support is even worse than its cpython support
[21:28] <Noiano> :)
[21:28] <Noiano> pycharm is supposed to support jython
[21:28] <Noiano> but I have no idea how to add external jars
[21:29] * stakkars (~tismer@i59F7F809.versanet.de) has joined #jython
[21:29] <agronholm> even in cpython mode, pydev constantly "loses" the stdlib modules, so it reports them as unresolved imports
[21:29] <Noiano> I see
[21:30] <agronholm> for jython, it cannot see enum constants for example
[21:31] <Noiano> :(
[21:56] * Noiano (~noiano@unaffiliated/noiano) Quit (Ping timeout: 272 seconds)
[21:58] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) Quit (Ping timeout: 245 seconds)
[22:20] * Noiano (~noiano@unaffiliated/noiano) has joined #jython
[22:24] * clajo04_ (~clajo04_@pool-74-108-95-175.nycmny.fios.verizon.net) has joined #jython
[22:30] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[22:39] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[22:39] * headius (~headius@216.160.3.79) has joined #jython
[22:39] * headius (~headius@216.160.3.79) Quit (Client Quit)
[22:42] * Noiano (~noiano@unaffiliated/noiano) Quit (Ping timeout: 272 seconds)
[23:23] * r0bby is now known as robbyoconnor
[23:32] <Oti> agronholm - regarding issue 1674: do you also expect a bdb.BdbQuit exception when evaluating set_trace()?
[23:33] <agronholm> not unless I quit the debugger
[23:33] <agronholm> but since it never does enter command mode, I won't get the chance
[23:35] <Oti> so you would consider that a success, if the eval("from pdb import set_trace; set_trace()") raises this quit exception?
[23:35] <agronholm> no
[23:36] <agronholm> if I run the very same script from PyInterpreter, it enters debug mode, as expected
[23:36] <agronholm> with jsr223, I just get that exception
[23:36] <Oti> sure
[23:38] <Oti> but if you write a java program, get the engine, and then eval this string, what's next - or in other words, can you give me a small java program which does not quit?
[23:40] <Oti> we run our junit tests with fork = true, so maybe there is a single vm for every test
[23:40] <Oti> i have to do the same in a standalone main program
[23:41] <Oti> but at least i have no TypeError any more
[23:46] <Oti> see a hacky __iter__() here: http://bugs.jython.org/file904
[23:46] <jimbaker> Oti: hi
[23:47] <Oti> jimbaker. hi!
[23:47] <jimbaker> so what do you think of promoting rc2 to 2.5.2 final?
[23:48] <agronholm> not until this is resolved
[23:48] <jimbaker> agronholm: this is the jsr223 problem?
[23:48] <agronholm> yes
[23:49] <jimbaker> what makes it severe enough to prevent final?
[23:49] <Oti> i am not sure about http://bugs.jython.org/issue1674 (what agronholm meant) and http://bugs.jython.org/issue1671
[23:50] <jimbaker> pdb is certainly nice to have, but it's a limited case
[23:50] <agronholm> well, pdb does not work at all, and classes implementing java interfaces become the proxies
[23:50] <Oti> agronholm - so there are 2 jsr223 problems, right? the interface stuff is on the mailing list
[23:50] <agronholm> yes
[23:51] <agronholm> I ran into the pdb issue while investigating the first
[23:51] <Oti> so if you don't mind, grab my patch which should lift you over the pdb (i hope)
[23:51] <agronholm> Oti: were you asking of me a java program which executes a python script so that it does not exit?
[23:52] <agronholm> that's easy using PythonInterpreter, but did you mean jsr223?
[23:52] <jimbaker> jsr223 functionality is a major reason for 2.5.2... but just don't want to get this release stuck
[23:52] <Oti> agronholm - yes I meant 223 - i cannot imagine what should happen after set_trace()
[23:53] <agronholm> Oti: the exact same thing as should happen with PythonInterpreter
[23:53] <agronholm> pdb kicks in
[23:53] <agronholm> isn't that right?
[23:54] <agronholm> http://pastebin.com/vNWJwzTb
[23:55] <agronholm> jimbaker: I just can't help but to think that something else must be broken too if pdb fails that miserably
[23:55] <agronholm> I wonder if I can even get a traceback
[23:56] <Oti> ok, i'll try that with jsr223, but honestly only after some sleep
[23:57] <Oti> agronholm - the obvious thing was PyScriptEngineScope not iterable (and this mimicks globals and locals)
[23:59] <Oti> jimbaker - it is hard for me to say how severe this really is
[23:59] <agronholm> the pdb issue is probably not a showstopper, but the proxy issue looks pretty severe

Index

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