#jython IRC Log (v0.9)

Index

IRC Log for 2010-07-06

Timestamps are in GMT/BST.

[0:03] * lopex (lopex@chello089076044027.chello.pl) Quit (Ping timeout: 276 seconds)
[0:06] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[0:15] * ttmrichter (~ttmrichte@59.175.37.155) has joined #jython
[2:15] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[2:46] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[2:46] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[2:51] * r0bby is now known as robbyoconnor
[4:18] * Oti (~ohumbel@adsl-84-227-135-44.adslplus.ch) has joined #jython
[4:34] * juneau001 (~juneau@pool-72-69-223-203.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[4:36] * super__ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[4:39] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 265 seconds)
[4:56] * pigletto (~quassel@188.33.128.132) has joined #jython
[5:16] * noidea` (~noidea`@cpe-024-211-210-188.nc.res.rr.com) has joined #jython
[6:08] * Oti (~ohumbel@adsl-84-227-135-44.adslplus.ch) Quit (Quit: Oti)
[6:59] * pigletto_ (~quassel@109.243.101.226) has joined #jython
[7:00] * pigletto (~quassel@188.33.128.132) Quit (Ping timeout: 240 seconds)
[7:49] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[7:50] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[7:53] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Remote host closed the connection)
[7:54] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[9:01] * pigletto_ (~quassel@109.243.101.226) Quit (Read error: Connection reset by peer)
[9:03] * pigletto (~quassel@188.33.34.232) has joined #jython
[10:42] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[10:51] * juneau001 (~juneau@131.225.24.72) has joined #jython
[11:03] * pigletto_ (~quassel@94.254.154.231) has joined #jython
[11:03] * pigletto (~quassel@188.33.34.232) Quit (Ping timeout: 252 seconds)
[12:40] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[12:47] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[12:53] * pigletto_ (~quassel@94.254.154.231) Quit (Remote host closed the connection)
[13:54] * jabley_ (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[13:54] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Read error: Connection reset by peer)
[13:54] * jabley_ is now known as jabley
[13:58] * stakkars (~tismer@i59F7C737.versanet.de) Quit (Ping timeout: 260 seconds)
[14:04] * stakkars (~tismer@i59F7EDD9.versanet.de) has joined #jython
[14:05] <pr3d4t0r> Hoj.
[14:15] * skay (~skay@pat1.orbitz.net) has joined #jython
[14:18] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[14:22] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[14:37] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[14:50] * pitonew (~pm95875@nat/sun/x-cxdbrzhzkqoefxcg) has joined #jython
[14:53] <pitonew> hi. any pointer how to compile a java class that embeds jython interpreter (such as http://www.jython.org/archive/21/docs/embedding.html)?
[14:59] <pr3d4t0r> pitonew: javac YourClass.java
[15:00] <pr3d4t0r> pitonew: There's not much to do other than ensuring that jython.jar is somewhere in the class path.
[15:00] <pr3d4t0r> pitonew: You may also give longer strings to the PythonInterpreter than a single line.
[15:01] <pr3d4t0r> pitonew: Another (better?) alternative would be to use the scripting factory and bind jython from there.
[15:01] <pr3d4t0r> On that note... time to go for a run.
[15:03] <pitonew> thx, figured it out meanwhile. javac -cp /usr/share/java/jython.jar SimpleEmbedded.java
[15:03] <pitonew> not sure how portable this is, would like to have this accross OSes Linux, OSX, Windows, Solaris
[15:06] <pitonew> could you please elaborate on the scripting factory option you wrote about?
[15:06] <pitonew> is it something related to this : http://wiki.python.org/jython/UserGuide#using-jsr-223
[15:06] <pitonew> I would all in all, need at least jython.jar, right
[15:07] <pr3d4t0r> pitonew: It runs wherever you have a 100% Pure Java 6 run-time.
[15:07] <pr3d4t0r> pitonew: Right.
[15:08] <pr3d4t0r> pitonew: There's an option to build everything you need into a single jython.jar that you can distribute with your app.
[15:08] <pr3d4t0r> pitonew: If you're doing non-trivial work, consider using the scripting factory instead. javax.scripting is the package.
[15:09] <pr3d4t0r> pitonew: It's a bit more work but it'll give you more flexibility than PythonInterpreter since you can bind variables to go to/from your Python code.
[15:17] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[15:17] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Ping timeout: 240 seconds)
[15:19] <agronholm_> jython works with java 5 and up afaik
[15:21] <pitonew> thx pr3d4t0r :) i only have Jython 2.2.1 on java1.6.0_20 for my current test. jython 2.5.1 seems to be minimum for this JSR 233 javax.scripting interface
[15:21] <agronholm_> 2.5.1 has severe jsr233 bugs
[15:21] <sabi> pitonew: yes you need 2.5.1 for the new 223 javax.scripting, and you should try 2.5.2 beta 1
[15:21] <agronholm_> try 2.5.2b1 instead
[15:21] <sabi> because of what agronholm_ said. :) i fixed a bunch of stuff for that version
[15:30] <pitonew> thanks all for your help. I'll see tomorrow how things pan on funky platforms like Windows. If you have any pointers, i'd greatly appreciate too
[15:44] * headius (~headius@216.160.3.79) has joined #jython
[15:56] <pr3d4t0r> pitonew: Yeah.
[15:56] <pr3d4t0r> pitonew: Get the 2.5.2 beta or the latest 2.5.1 nightly and it'll work just fine.
[15:57] <pr3d4t0r> pitonew: It'll work fine under Windows/UNIX.
[15:57] <pr3d4t0r> pitonew: We rolled out Jython-based stuff that runs without issues under AIX and Windows for some insurance company in CT.
[16:00] <pr3d4t0r> pitonew: It's also cross-compatible with CPython on Windows; we always validate against CPython to guarantee portability.
[16:13] <pitonew> with jython2.5.2b1 i can make this work http://wiki.python.org/jython/UserGuide#using-jsr-223
[16:13] <pitonew> after installing the Pyro package, I'm able to run the sample Pyro example from here : http://www.xs4all.nl/~irmen/pyro3/example.html
[16:13] <pitonew> But when trying to call the 'engine.eval(args[0])' where args[0] is the full path to the original Pyro example.py script.
[16:13] <pitonew> But it fails with error :
[16:13] <pitonew> ...
[16:13] <pitonew> Caused by: File "<script>", line 1
[16:13] <pitonew> /tmp/pyro_mini.py
[16:13] <pitonew> ^
[16:13] <pitonew> SyntaxError: mismatched input '/' expecting EOF
[16:13] <pitonew> ...
[16:13] <pitonew> any ideas
[16:13] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[16:18] <pr3d4t0r> pitonew: Well, you posted two things, neither of which has a reference to anything in /tmp
[16:18] <pr3d4t0r> pitonew: http://eugeneciurana.com/pastebin <- paste your actual code here.
[16:26] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[16:32] * stakkars (~tismer@i59F7EDD9.versanet.de) Quit (Quit: stakkars)
[16:35] * stakkars (~tismer@i59F7EDD9.versanet.de) has joined #jython
[16:38] * ttmrichter (~ttmrichte@59.175.37.155) Quit (Quit: ...and I'm taking my ball with me!)
[16:41] * enebo (~enebo@174-20-33-44.mpls.qwest.net) has joined #jython
[17:09] <pitonew> actually, i found that in order to leverage Pyro native library from jython 2.52b1, i have to call jython with the magic -Dpython.path=/usr/lib/python2.6/site-packages... This is where the Pyro native library package 'Pyro' has been installed.
[17:09] <pitonew> So now, following works fine : jython -Dpython.path=/usr/lib/python2.6/site-packages /tmp/pyro_mini.py
[17:09] <pitonew> note pyro_mini.py is just a cut'n paste of http://www.xs4all.nl/~irmen/pyro3/example.html minimal Server
[17:09] <sabi> aiee, don't point jython at a CPython stdlib. it'll break in confusing ways
[17:10] <pitonew> now, i wrote a java class, where i implement the jsr223 javax.scripting engine to embed jython and call the same script file, but it fails...
[17:12] <pitonew> Ok, i thought this Cpython lib pointing was hairy, but at least from cmdline it worked. for now it doesn't work when embedding jython in a java class to call the exact same script.
[17:13] <pitonew> The original docs from Pyro with Python setup being unreachable to me, i looked into these instead http://www.bing.com/search?q=PyroAndJython++SettingUp&go=&form=QBLH&filt=all&qs=n&sk=
[17:14] <pitonew> but well, i'll call it a day, and leave this open if you have more insightful inputs. I'll check the #jython tomorrow
[17:14] <pitonew> cheers
[17:22] <agronholm_> what are you using pyro for
[17:29] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[17:31] * headius (~headius@216.160.3.79) has joined #jython
[17:35] <pr3d4t0r> I don't think he's listening.
[17:35] <pr3d4t0r> Plus, dude's using Bing.
[17:35] <pr3d4t0r> Scary.
[17:36] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[18:09] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[18:11] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[18:26] * pr3d4t0r is now known as pr3d4k4t
[18:37] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[19:01] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 265 seconds)
[19:01] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[19:26] * juneau001 (~juneau@131.225.24.72) Quit (Quit: juneau001)
[19:52] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[19:52] * enebo (~enebo@174-20-33-44.mpls.qwest.net) Quit (Quit: enebo)
[20:04] * skay (~skay@pat1.orbitz.net) Quit (Quit: skay)
[20:33] * pigletto (~quassel@dts201.neoplus.adsl.tpnet.pl) has joined #jython
[20:51] * headius (~headius@216.160.17.126) has joined #jython
[21:00] * pigletto (~quassel@dts201.neoplus.adsl.tpnet.pl) Quit (Remote host closed the connection)
[21:34] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[21:34] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Ping timeout: 260 seconds)
[22:09] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[23:35] * headius_ (~headius@216.160.17.126) has joined #jython
[23:36] * headius (~headius@216.160.17.126) Quit (Disconnected by services)
[23:36] * headius_ is now known as headius
[23:45] * lopex (lopex@chello089076044027.chello.pl) Quit (Ping timeout: 240 seconds)
[23:50] * lopex (lopex@chello089076044027.chello.pl) 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).