#jython IRC Log (v0.9)

Index

IRC Log for 2010-06-29

Timestamps are in GMT/BST.

[0:00] * juneau001 (~juneau@pool-72-69-198-204.chi01.dsl-w.verizon.net) has joined #jython
[0:56] * jfenwick (~jfenwick@pool-71-184-182-232.bstnma.east.verizon.net) has joined #jython
[1:27] * ttmrichter (~ttmrichte@221.234.132.188) has joined #jython
[1:37] * pnogueira (~pnogueira@189.102.106.129) has joined #jython
[1:38] * pnogueira (~pnogueira@189.102.106.129) Quit (Client Quit)
[1:38] * pnogueira (~pnogueira@189.102.106.129) has joined #jython
[1:38] * pnogueira (~pnogueira@189.102.106.129) Quit (Client Quit)
[2:28] * jimbaker (~jbaker@173-14-6-210-Colorado.hfc.comcastbusiness.net) has joined #jython
[2:44] * jimbaker (~jbaker@173-14-6-210-Colorado.hfc.comcastbusiness.net) Quit (Quit: jimbaker)
[2:48] * jimbaker (~jbaker@173-14-6-210-Colorado.hfc.comcastbusiness.net) has joined #jython
[2:49] * stakkars (~tismer@i577B642D.versanet.de) Quit (Ping timeout: 265 seconds)
[2:56] * stakkars (~tismer@i577B7985.versanet.de) has joined #jython
[2:57] * jimbaker (~jbaker@173-14-6-210-Colorado.hfc.comcastbusiness.net) Quit (Quit: jimbaker)
[3:21] <agronholm> pjenvey_, I would like to test my implementation of BZ2Decompressor but I'm not sure how to go about it
[3:21] <agronholm> what are these "derived" classes I'm seeing
[3:32] * jfenwick (~jfenwick@pool-71-184-182-232.bstnma.east.verizon.net) Quit (Quit: Leaving)
[4:31] * juneau001 (~juneau@pool-72-69-198-204.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[4:37] * jfenwick (~jfenwick@pool-71-184-182-232.bstnma.east.verizon.net) has joined #jython
[4:46] * jfenwick (~jfenwick@pool-71-184-182-232.bstnma.east.verizon.net) Quit (Quit: Leaving)
[5:05] * pigletto (~quassel@188.33.89.65) has joined #jython
[5:39] * Oti (~ohumbel@adsl-84-227-156-246.adslplus.ch) has joined #jython
[5:51] * nofearinc (~nofearinc@188.126.16.34) Quit (Ping timeout: 245 seconds)
[7:09] * Oti (~ohumbel@adsl-84-227-156-246.adslplus.ch) Quit (Quit: Oti)
[7:15] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[7:38] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) has joined #jython
[7:40] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[7:42] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Quit: Page closed)
[7:45] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[8:04] * nofearinc (~nofearinc@93-152-147-79.ddns.onlinedirect.bg) has joined #jython
[8:12] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[8:16] * mannaz (~mannaz@78.142.150.242) has joined #jython
[9:14] * ttmrichter (~ttmrichte@221.234.132.188) Quit (Read error: Connection reset by peer)
[9:15] * ttmrichter (~ttmrichte@221.234.132.188) has joined #jython
[9:25] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:28] <Oti> huh the next windows bug (http://bugs.jython.org/issue1624)
[10:28] * mannaz_ (~mannaz@78.142.150.242) has joined #jython
[10:31] * mannaz (~mannaz@78.142.150.242) Quit (Ping timeout: 245 seconds)
[10:31] * mannaz_ is now known as mannaz
[11:15] * juneau001 (~juneau@FESS-116326-2041710-dp.dhcp.fnal.gov) has joined #jython
[11:46] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[11:47] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Client Quit)
[12:33] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[12:41] <sabi> ugh :( might just want to think about porting the jruby launcher at some point
[12:44] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[12:53] * pigletto (~quassel@188.33.89.65) Quit (Remote host closed the connection)
[13:01] <Oti> sabi - i do as soon as possible
[13:04] <Oti> but this error IMHO has nothing to do with the launcher (to be verified)
[13:09] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[13:17] <sabi> ah ok
[13:30] <Oti> i only try to reduce the pressure imposed on me :-)
[13:31] <sabi> understood :)
[13:58] * ttmrichter (~ttmrichte@221.234.132.188) Quit (Read error: Connection timed out)
[13:59] * ttmrichter (~ttmrichte@221.234.132.188) has joined #jython
[14:20] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[14:33] * nofearinc (~nofearinc@93-152-147-79.ddns.onlinedirect.bg) Quit (Ping timeout: 248 seconds)
[14:51] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[15:03] * GuyFromHell (~GuyFromHe@146.115.38.3) has joined #jython
[15:04] <GuyFromHell> question, is it normal to have a jython-lib.jar that seems to contain the standard python library? like all of it?
[15:06] <Oti> GuyFromHell, where did you get it from?
[15:06] <Oti> it is quite normal to have the .py files deployed in a .jar, if you do not have access to the file system
[15:07] <GuyFromHell> Oti, no idea. it's been in the repo since a year before i got here.
[15:07] <Oti> ok, so i guess you have two .jar files: jython.jar and jython-lib.jar
[15:07] <GuyFromHell> indeed
[15:08] <GuyFromHell> Oti, indeed they are all .py files. how do you include them then. if i try java -classpath jython-lib.jar -jar jython.jar -c "import javaos" it fails.
[15:08] <GuyFromHell> (note: i am new to this whole "jar" and "java" dealio
[15:08] <Oti> ok, first of all take a deep breath
[15:08] <Oti> it may sound more complicated than it is
[15:08] <GuyFromHell> hokay....
[15:09] <Oti> when starting java, you cannot use both -classpath and -jar (well you can, but java ignores one of them)
[15:10] <GuyFromHell> so i add both to the classpath and invoke the jython main explicitly?
[15:10] <Oti> so the first thing i'd suggest is to try: java -classpath jython-lib.jar:jython.jar -c "import javaos"
[15:10] <Oti> (on windows, replace : with ;)
[15:10] <GuyFromHell> Unrecognized option: -c
[15:11] <Oti> sorry, how does this go: java -classpath jython-lib.jar:jython.jar org.python.util.jython -c "import javaos"
[15:12] <GuyFromHell> still says can't find the module
[15:12] <GuyFromHell> but at least that means it's invoking jython
[15:13] <Oti> what do you see if you say: java -jar jython.jar
[15:14] <GuyFromHell> I get a jython terminal (v 2.2a1 on java1.6.0_20)
[15:15] <Oti> that's ok, i was interested in your version
[15:16] <GuyFromHell> ah, 2.2a1 then :P
[15:16] <Oti> now it depends how you want to use jython: from the command line, or embedded in an application
[15:16] <GuyFromHell> It's going to be invoked on the command line to run a script. hopefully
[15:17] <Oti> ok, then i recommend the following:
[15:19] <Oti> goto http://www.jython.org/downloads.html and download (at least) 2.2.1, run the installer with java -jar jython_installer-2.2.1.jar
[15:19] <Oti> if you want the .py files inside a .jar, run the installer with the 'standalone' option -> this will create a self-contained jython.jar
[15:20] <Oti> then experiment with these two variants
[15:20] <Oti> good luck!
[15:21] <GuyFromHell> Meh. I can't really upgrade jython version without going through a lot of red tape :/. Thanks for pointing me in the direction of the problem though. I'll try some command line switches to get it to work
[15:22] <Oti> if you have to stick to your version, have a look how the installer puts together the standalone jython.jar, and then merge both of your jython-lib.jar and jython.jar into jython.jar the same way.
[15:23] <Oti> this should enable the import of the modules
[15:23] <Oti> even on your version (at least i hope)
[15:24] <GuyFromHell> I was hoping it was just going to be a command line arg to java rather than touching the jar's at all. I just got hired here like 2 weeks ago. I feel changing a major language component is not on my "You can do these and not get slain" list :P
[15:24] <GuyFromHell> Oti, I'll look into the installer though and see what it does. thanks
[15:25] <Oti> then you have to find out HOW the existing application is using jython ...
[15:25] <GuyFromHell> Oti, it's not :P nothing imports os
[15:25] <GuyFromHell> i'm the first to do it apparently
[15:25] <Oti> glad we talked about it :-)
[15:35] * shodan45 (~Administr@66.0.111.2) has joined #jython
[15:47] * mannaz (~mannaz@78.142.150.242) Quit (Quit: mannaz)
[15:51] * jabley_ (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[15:53] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Ping timeout: 245 seconds)
[15:53] * jabley_ is now known as jabley
[15:56] <agronholm> why use jython 2.2 then?
[16:02] <shodan45> I'm trying to use Sikuli (jython based) to automate entering lots of data from a mysql db into an app. Where/how do I use the "mysql connector" jar file?
[16:03] <shodan45> I know python just fine, I just don't use java much.
[16:06] <shodan45> or any other ideas to get some mysql data into a jython app would be welcome :)
[16:08] <pr3d4t0r> shodan45: Put it in your class path.
[16:14] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Quit: Page closed)
[16:19] <shodan45> pr3d4t0r, ok, I added -classpath mysql-foo.jar to the command line, but it isn't working :/
[16:19] <shodan45> how do I tell if it "took"?
[16:20] <shodan45> sys.path?
[16:20] <shodan45> hmm, well it isn't in there
[16:21] <sabi> shodan45: you can just try sys.path.append(...)
[16:21] <sabi> how you set the classpath at startup depends on how you're starting jython
[16:21] <shodan45> sabi, ahh that makes sense
[16:22] <shodan45> %JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -classpath mysql-connector-java-5.1.13-bin.jar -Dpython.path="%~d0%~p0sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %*
[16:22] <shodan45> that's from the windows batch file
[16:23] <sabi> well, you can just add it to -Dpython.path there too, then.
[16:23] <shodan45> interesting
[16:25] <shodan45> any idea what those %s are? or is that some funky windows batch language-ism?
[16:25] <shodan45> I normally run linux, so this 'doze stuff is actually foreign to me now
[16:28] <sabi> shodan45: yeah they're windows batch file stuff
[16:29] <sabi> it's a horrendous disaster. it makes shell scripts look sane
[16:29] <shodan45> yeah, looks like it o_O
[16:31] <shodan45> ok, looks like I got it in sys.path, but I still get a class not found on com.mysql.jdbc.Driver
[16:31] <shodan45> I don't suppose that there's a way to use the regular python mysql module?
[16:33] <agronholm> not with a java library.
[16:34] <agronholm> and the "regular" mysql module uses a C extension and is thus incompatible with Jython
[16:35] <sabi> yeah, check that that jar works
[16:35] <sabi> (with java, or at least by inspecting it with jar tf)
[16:37] <shodan45> sabi, yeah I already opened the jar to peek around, it looked fine to me
[16:37] <agronholm> anyone know how to use SSL with jython?
[16:37] <shodan45> then again, how would I know if it was fine? ;p
[16:38] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: No route to host)
[16:38] <agronholm> I'd like to do xmlrpc via https
[16:38] <agronholm> and ssl prior to python 2.6 was a joke
[16:39] <shodan45> http://pylonshq.com/pasties/5178eb5b78e11bd11987db8dec552663
[16:40] <shodan45> that's my simple test, am I doing it right?
[16:41] <agronholm> it's been years since I used bare jdbc
[16:41] <shodan45> hehe, I just need to run a few basic queries
[16:43] <shodan45> it's also crossed my mind to try doing some kind of RPC between jython & cpython
[16:43] <shodan45> but I'm trying to simplify things, not make it more complicated
[16:43] <agronholm> rpyc and execnet are perfect for those
[16:44] <agronholm> (pick one)
[16:46] * ttmrichter (~ttmrichte@221.234.132.188) Quit (Ping timeout: 260 seconds)
[16:52] <shodan45> both look so awesome :)
[16:53] <shodan45> hmmmm how would I go about installing an egg with jython?
[16:54] <shodan45> eh, lmgtfy ;)
[16:59] * mannaz (~mannaz@chello084113205242.2.14.vie.surfer.at) has joined #jython
[17:09] * nofearinc (~nofearinc@78.90.182.130) has joined #jython
[17:16] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[17:37] * aspiers (~adam@dsl-217-155-199-114.zen.co.uk) has joined #jython
[17:38] <aspiers> hi all, can anyone explain what is the point of ProxyMaker.java and proxies, or point me to some docs on the internal architecture of Jython regarding compilation and execution?
[17:40] <aspiers> our profiler says that PythonInterpreter.exec() is spending an awful lot of time building proxies, and we are wondering why this can't just be done once at compile-time rather than run-time
[17:40] <aspiers> Presumably something to do with the dynamic nature of Python, but would like to understand better.
[17:45] <agronholm> well yeah
[17:45] <agronholm> classes and functions are routinely created on the fly in Python
[17:52] <aspiers> Is it well known that 2.5.x is a fair bit slower than 2.1?
[17:53] <agronholm> 2.5.x has to support a lot more features than 2.1
[17:53] <aspiers> ah
[17:53] <agronholm> python has evolved greatly since then
[17:53] <agronholm> that's of course not to say that it's anywhere near optimal
[17:57] * headius (~headius@216-250-174-225.static.iphouse.net) has joined #jython
[18:01] <aspiers> agronholm: so are there any docs on the internals?
[18:01] <agronholm> I doubt that.
[18:01] <aspiers> :-(
[18:02] <agronholm> if there are, I sure haven't seen or heard of them
[18:02] <aspiers> ok
[18:02] <agronholm> proxy generation is one of the most difficult to understand parts of the internals
[18:33] <headius> hey, I started asking a question the other day and got distracted
[18:35] <headius> does the python world have anything like rubygems that handles building native code along with the install of that module?
[18:35] <headius> i.e. you gem install some_partly_native_thing and the native builds build while it installs
[18:37] <shodan45> so I'm getting 'socket must be in non-blocking mode' when trying to connect to a remote rpyc server with the client running jython
[18:38] <shodan45> and I see http://wiki.python.org/jython/SelectModule , but I'm not sure what I need to do to fix it
[18:47] * aspiers (~adam@dsl-217-155-199-114.zen.co.uk) Quit (Quit: Leaving)
[18:53] <shodan45> nm, after messing with it for a while I got it going
[18:55] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[18:57] * mannaz_ (~mannaz@chello084113205242.2.14.vie.surfer.at) has joined #jython
[18:57] * mannaz_ (~mannaz@chello084113205242.2.14.vie.surfer.at) Quit (Client Quit)
[19:00] * mannaz (~mannaz@chello084113205242.2.14.vie.surfer.at) Quit (Ping timeout: 265 seconds)
[19:01] * mannaz (~mannaz@chello084113205242.2.14.vie.surfer.at) has joined #jython
[19:01] * pigletto (~pigletto@dynamic-87-105-112-158.ssp.dialog.net.pl) has joined #jython
[19:14] <agronholm> ok I think I figured out how to use ssl properly
[19:14] <agronholm> in jython
[19:19] * juneau001 (~juneau@FESS-116326-2041710-dp.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:23] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[19:28] <jabley> headius: Do you get a response about Python's rubygems equivalent?
[19:28] <headius> jabley: I did not
[19:28] <headius> and hello
[19:28] <headius> :)
[19:28] <jabley> howdy :)
[19:29] <jabley> eggs, easy_install and pip would probably be the clostest
[19:29] <jabley> with virtual_env being like rvm, I guess
[19:30] <headius> hmm ok
[19:30] <jabley> I like pip and virtualenv
[19:30] <headius> so no one standard like rubygems
[19:31] <jabley> not played with bundler yet, so not sure how that compares
[19:31] <headius> we've been struggling with the native aspect of rubygems lately, like json lib for which we have an equivalent but we can't release it as "json"
[19:31] <headius> owner of a gem owns all platforms, even if they don't maintain all platforms
[19:31] <headius> I was wondering if jython folks had had to deal with that sort of thing yet
[19:31] * jabley MBP seems to be dying, cheers Apple
[19:32] <jabley> you mean the bus factor?
[19:33] <jabley> or like when why_ did one?
[19:37] <headius> jabley: not even that...just libraries that we either can't or really shouldn't have to depend on a C guy to release our Java version
[19:38] <headius> we bottleneck on one person who usually isn't the one maintaining the java stuff
[19:38] <jabley> Right
[19:38] <headius> and they bottleneck on us to do releases of the C lib
[19:39] <jabley> I believe bigger libs (like django) community are pretty receptive to sorting out Jython compatability
[19:39] <jabley> Guess it varies depending on who you deal with
[19:39] <sabi> yeah i don't think we've run into too many problems with libraries taking jython patches
[19:48] * enebo (~enebo@216-250-174-225.static.iphouse.net) has joined #jython
[19:53] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[19:53] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) Quit (Read error: Operation timed out)
[19:57] * GuyFromHell (~GuyFromHe@146.115.38.3) Quit (Remote host closed the connection)
[20:01] * thobe (~Adium@83.249.252.237) has joined #jython
[20:13] * thobe (~Adium@83.249.252.237) Quit (Quit: Leaving.)
[20:53] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[21:08] * pigletto (~pigletto@dynamic-87-105-112-158.ssp.dialog.net.pl) Quit (Remote host closed the connection)
[21:32] * mannaz (~mannaz@chello084113205242.2.14.vie.surfer.at) Quit (Quit: mannaz)
[21:56] * enebo (~enebo@216-250-174-225.static.iphouse.net) Quit (Quit: enebo)
[21:57] * headius (~headius@216-250-174-225.static.iphouse.net) Quit (Quit: headius)
[22:01] * agronholm (agronholm@nblzone-211-17.nblnetworks.fi) Quit (Read error: Connection reset by peer)
[22:01] * agronholm (agronholm@nblzone-211-17.nblnetworks.fi) has joined #jython
[22:09] * shodan45 (~Administr@66.0.111.2) Quit (Remote host closed the connection)
[22:19] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[22:46] * plankton (~peretto@189.58.64.88.dynamic.adsl.gvt.net.br) has joined #jython
[23:00] <sabi>
[23:00] <sabi> oops.
[23:01] * pr3d4t0r glares at sabi :)
[23:01] <sabi> that was one of those "i have no idea how this ssh session stayed open" things. i actually moved networks twice
[23:01] <sabi> yay tcp, i guess
[23:59] * plankton (~peretto@189.58.64.88.dynamic.adsl.gvt.net.br) Quit (Ping timeout: 276 seconds)

Index

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