#jython IRC Log (v0.9)

Index

IRC Log for 2012-08-03

Timestamps are in GMT/BST.

[0:05] * juneau001 (~juneau@50-45-104-177.dklb.il.frontiernet.net) has joined #jython
[0:08] * jabley (u2487@gateway/web/irccloud.com/x-cwoynvdgqlaprvfp) has joined #jython
[0:08] * lopex (u4272@gateway/web/irccloud.com/x-iirsagsomezsniuu) has joined #jython
[0:14] * enebo (~enebo@174-20-162-39.mpls.qwest.net) has joined #jython
[0:20] * enebo (~enebo@174-20-162-39.mpls.qwest.net) Quit (Quit: enebo)
[0:23] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[0:26] * lopex (u4272@gateway/web/irccloud.com/x-iirsagsomezsniuu) Quit (Ping timeout: 248 seconds)
[0:29] * jabley (u2487@gateway/web/irccloud.com/x-cwoynvdgqlaprvfp) Quit (Ping timeout: 245 seconds)
[0:58] * lopex (u4272@gateway/web/irccloud.com/x-jadjiknkwgxbxoqv) has joined #jython
[1:05] * varialus (cfe0d5b3@gateway/web/freenode/ip.207.224.213.179) has joined #jython
[1:13] * lheuer (~Adium@blfd-4d08692a.pool.mediaWays.net) Quit (Ping timeout: 240 seconds)
[1:14] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[1:16] <varialus> I just discovered javax.script.ScriptEngine from the UserGuide. Very cool! I think I like it better than PythonInterpreter for embedding Jython in Java.
[2:34] * jabley (u2487@gateway/web/irccloud.com/x-wksekbhfwcwanavo) has joined #jython
[3:27] * vayer (~vayer@173-164-129-225-SFBA.hfc.comcastbusiness.net) Quit (Quit: Leaving)
[3:38] * varialus (cfe0d5b3@gateway/web/freenode/ip.207.224.213.179) Quit (Quit: Page closed)
[5:34] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[8:09] * agronholm (~agronholm@2001:1bc8:102:6f29:a806:86b:d0e0:c174) Quit (Ping timeout: 245 seconds)
[8:13] * agronholm (~agronholm@2001:1bc8:102:6f29:b089:f3d2:23e2:e92e) has joined #jython
[8:13] * ChanServ sets mode +o agronholm
[9:13] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) has joined #jython
[9:13] <Epona> hey I tried installing setuptools on the latest jython, but received an alarming error
[9:14] <Epona> (AttributeError:'NoneType' object has no attribute 'startwith'
[9:15] <Epona> this occurs when I run setup.py
[9:15] <Epona> im on the latest ubuntu
[10:04] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) has joined #jython
[10:13] <Epona> hey cla
[10:13] <Epona> clajo04_
[10:14] * juneau001 (~juneau@50-45-104-177.dklb.il.frontiernet.net) Quit (Quit: juneau001)
[10:22] <clajo04_> Epona: Yes?
[10:22] <Epona> do you think you could help me out with installing distutils on the latest jython?
[10:23] <Epona> im really struggling with this
[10:24] <Epona> I've got two vms up trying to do different django and jython configurations on each
[10:24] <Epona> it's just really painful
[10:25] <clajo04_> Epona: Okay- I'm a windows guy, so I am not sure I can help with this but I will try - what errors are you getting?
[10:25] <Epona> AttributeError:'NoneType' object has no attribute 'startwith'
[10:26] <agronholm> installing distutils?
[10:26] <clajo04_> Epona: I'm not sure I understand what you are asking for help with - distutils is part of the standard library - what version of Jython are you using?
[10:26] <agronholm> distutils is part of the standard library, no need to install it
[10:27] <Epona> 2.5.2 I believe
[10:27] <agronholm> can I ask why you're using django and jython together?
[10:28] <Epona> to make war files of web apps
[10:28] <clajo04_> Epona: And what happens when you execute a "import distutils" at the jython interactive prompt?
[10:28] <Epona> just trying to get a war of an app using mongodb to be exact
[10:28] <Epona> one moment
[10:29] <Epona> ok so that works o.o
[10:29] <Epona> now ill try using pip again
[10:29] <agronholm> pip requires distribute
[10:30] <Epona> no module names setuptools
[10:30] <agronholm> so install distribute
[10:30] <Epona> yea I've got that here too
[10:30] <Epona> ill give it a go again
[10:30] <agronholm> http://python-distribute.org/
[10:30] <agronholm> simple script to run (distribute_setup.py)
[10:31] <Epona> AttributeError:'NoneType' object has no attribute 'startwith'
[10:31] <Epona> ok the error was for distribute
[10:32] <agronholm> did you get a traceback for that error btw
[10:32] <Epona> I got them confused since its a fork
[10:32] <agronholm> distribute is a fork of setuptools, yes
[10:32] <Epona> yes but it's hard to copy paste between OS so hopefully a picture suffices?
[10:32] <agronholm> if it's readable
[10:34] <Epona> http://i.imgur.com/FqKic.png
[10:36] <agronholm> I'm curious -- why is distribute being executed from your Downloads directory?
[10:36] <agronholm> didn't you install it?
[10:36] <Epona> I downloaded it, so I could install it with jython
[10:37] <agronholm> but did you actually install it?
[10:37] <Epona> you mean for python?
[10:37] <agronholm> just running "jython distribute_setup.py" would install it
[10:39] <Epona> I didnt even notice that file
[10:39] <Epona> new error though
[10:40] * wmeissner (~wmeissner@121.91.116.78) has joined #jython
[10:41] <Epona> http://i.imgur.com/goCnH.png
[10:42] <agronholm> the way you start jython looks wrong
[10:42] <agronholm> there is a "jython" executable for starting jython
[10:42] <Epona> yea, jython.jar
[10:42] <Epona> that's how the jython installation instructions say to run your files
[10:42] <agronholm> no
[10:42] <agronholm> where?
[10:43] <Epona> http://wiki.python.org/jython/InstallationInstructions#id4
[10:43] <agronholm> there is bin/jython
[10:43] <agronholm> that you should be running
[10:43] <Epona> bin? which bin
[10:44] <agronholm> in the jython installation directory
[10:46] <agronholm> or did you perhaps use the standalone jar install?
[10:46] <Epona> I see Jython inside the bin
[10:46] <Epona> are you saying these errors might be caused by this?
[10:47] <agronholm> "Executing a script in the install directory, jython on Unix-like systems or jython.bat on Windows, will start up the Jython console, which can be used to dynamically explore Jython and the Java runtime, or to run Jython scripts."
[10:47] <agronholm> this is what the instructions tell you
[10:47] <agronholm> possibly
[10:49] <Epona> hm
[10:53] * wmeissner (~wmeissner@121.91.116.78) Quit (Ping timeout: 244 seconds)
[10:53] * kandinski (~kandinski@hiperactivo.com) Quit (Ping timeout: 240 seconds)
[10:53] * yanne (~jth@backport.reaktor.fi) Quit (Ping timeout: 240 seconds)
[10:53] * yanne (~jth@backport.reaktor.fi) has joined #jython
[10:53] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) Quit (Ping timeout: 240 seconds)
[10:54] * kandinski (~kandinski@hiperactivo.com) has joined #jython
[10:55] * Angel_ (~Angel@cpe-24-208-141-92.insight.res.rr.com) has joined #jython
[10:55] * Angel_ is now known as Epona
[10:55] <Epona> sorry about that clajo04_
[10:55] <Epona> disconnected at a pretty bad time
[10:55] <Epona> but yes, thankyou for that
[10:55] <Epona> er
[10:55] <Epona> agronholm,
[10:55] <Epona> I meant :D
[10:55] <Epona> but thanks for the conversaion anyway clajo04_
[10:55] <clajo04_> Epona: not a problem - did that resolve your problem
[10:57] <Epona> yes
[10:57] <Epona> pip just finished installing
[10:57] <clajo04_> Epona: good - glad to help anytime ;) (Thanks for stepping in agronholm).
[10:58] <Epona> do any of you play league of legends?
[11:00] <clajo04_> Epona: not me - but you could probably tell that from my inventive and terror inducing nick. ;)
[11:00] <Epona> well there's just this picture I found that is pretty awesome
[11:01] <Epona> I feel the urge to share it
[11:01] <Epona> http://rule34-data-000.paheal.net/_images/4188469be9cfe3cae40280b95a0fca30/897142%20-%20Ahri%20FBende%20Kayle%20akali%20league_of_legends%20lux%20miss_fortune%20nidalee%20riven%20sona%20zyra.jpg
[11:01] <Epona> but I really must be heading to bed now
[11:01] <Epona> I have so much work ahead of me
[11:01] <Epona> goodnight
[11:03] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) Quit (Quit: Leaving)
[11:13] * wmeissner (~wmeissner@121.91.116.78) has joined #jython
[11:15] * juneau001 (~juneau@131.225.24.168) has joined #jython
[11:48] * wainersm (wainersm@nat/ibm/x-ohuwbktdscawbusu) has joined #jython
[13:31] * sera_ (~sera@gentoo/developer/sera) has joined #jython
[13:34] * sera (~sera@gentoo/developer/sera) Quit (Ping timeout: 252 seconds)
[14:19] * wmeissner (~wmeissner@121.91.116.78) Quit (Ping timeout: 245 seconds)
[15:04] * enebo (~enebo@174-20-162-39.mpls.qwest.net) has joined #jython
[16:46] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) has joined #jython
[16:48] <DRayX> Quick question, how would I from Java code do the equivalent of PyImport_ImportModule in the C API? I suppose I could get the __import__ function from the builtins of my PySystemState object, but I wondered if there was a more direct approach.
[16:51] <DRayX> The ImportFrom method in the imp module looks sort of like what I am looking for, but I am unsure of how to get the PyFrame object.
[16:53] * Thunderbird (~roderick@wine/developer/Thunderbird) Quit (Remote host closed the connection)
[17:39] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) Quit (Ping timeout: 245 seconds)
[18:09] * vayer (~vayer@173-164-129-225-SFBA.hfc.comcastbusiness.net) has joined #jython
[18:16] * Rondom (~rondom@2a01:488:66:1000:b24d:4f2f:0:1) Quit (Quit: No Ping reply in 180 seconds.)
[18:17] * Rondom (~rondom@2a01:488:66:1000:b24d:4f2f:0:1) has joined #jython
[18:21] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Remote host closed the connection)
[18:22] * verterok (~ggonzalez@91.189.93.65) has joined #jython
[18:23] * verterok (~ggonzalez@91.189.93.65) Quit (Changing host)
[18:23] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[18:26] * juneau001 (~juneau@131.225.24.168) Quit (*.net *.split)
[18:26] * Guest43236 (~stevensmi@173-45-242-243.slicehost.net) Quit (*.net *.split)
[18:26] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) has joined #jython
[18:26] * juneau001 (~juneau@131.225.24.168) has joined #jython
[18:26] * Guest43236 (~stevensmi@173-45-242-243.slicehost.net) has joined #jython
[18:27] * CRUNK (~mike@50-79-215-253-static.hfc.comcastbusiness.net) has joined #jython
[18:28] <CRUNK> hey guys, im completely new to jython but it looks awesome. i was wondering: how hard would it be to "port" an existing python program (medium sized, 10+ modules) for use with jython inside of a java app?
[18:36] * maxb (~maxb@jabberwock.vm.bytemark.co.uk) Quit (*.net *.split)
[18:36] * henkelh_ (~henning@rps2.henkel.cx) Quit (*.net *.split)
[18:36] * [Arfrever] (~Arfrever@apache/committer/Arfrever) Quit (*.net *.split)
[18:36] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (*.net *.split)
[18:36] * Zougloub (~cJ@zougloub.eu) Quit (*.net *.split)
[18:36] * agronholm (~agronholm@2001:1bc8:102:6f29:b089:f3d2:23e2:e92e) Quit (*.net *.split)
[18:36] * Rondom (~rondom@2a01:488:66:1000:b24d:4f2f:0:1) Quit (*.net *.split)
[18:36] * lheuer (~Adium@unaffiliated/lheuer) Quit (*.net *.split)
[18:36] * JStoker (jstoker@unaffiliated/jstoker) Quit (*.net *.split)
[18:36] * aquarius1973 (~aquarius1@egress-frr.sf.nat.aol.com) Quit (*.net *.split)
[18:37] * juh^ (~juh^@hutcs.cs.hut.fi) Quit (*.net *.split)
[18:37] * ctismer (~ctismer@django.stackless.com) Quit (*.net *.split)
[18:37] * deepy (~deepy@c83-248-153-114.bredband.comhem.se) Quit (*.net *.split)
[18:37] * tcrawley-away (~tcrawley@redhat/jboss/tcrawley) Quit (*.net *.split)
[18:37] <DRayX> What is the equivalent of PyImport_ImportModule (from the c api) in Jython.
[18:37] * agronholm (~agronholm@2001:1bc8:102:6f29:b089:f3d2:23e2:e92e) has joined #jython
[18:37] * Rondom (~rondom@2a01:488:66:1000:b24d:4f2f:0:1) has joined #jython
[18:37] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[18:37] * [Arfrever] (~Arfrever@apache/committer/Arfrever) has joined #jython
[18:37] * maxb (~maxb@jabberwock.vm.bytemark.co.uk) has joined #jython
[18:37] * tcrawley-away (~tcrawley@redhat/jboss/tcrawley) has joined #jython
[18:37] * juh^ (~juh^@hutcs.cs.hut.fi) has joined #jython
[18:37] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[18:37] * henkelh_ (~henning@rps2.henkel.cx) has joined #jython
[18:37] * deepy (~deepy@c83-248-153-114.bredband.comhem.se) has joined #jython
[18:37] * ctismer (~ctismer@django.stackless.com) has joined #jython
[18:37] * aquarius1973 (~aquarius1@egress-frr.sf.nat.aol.com) has joined #jython
[18:37] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[18:37] <DRayX> ?
[18:37] * ChanServ sets mode +o agronholm
[18:38] <agronholm> DRayX: you want to import a python module in java code?
[18:39] * Zougloub (~cJ@zougloub.eu) has joined #jython
[18:40] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Ping timeout: 246 seconds)
[18:43] <diminoten> is 2.5.3b1 in maven?
[18:50] * sera_ is now known as sera
[18:50] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[18:52] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Client Quit)
[18:52] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[18:55] <DRayX> Agronholm: Yep, that is the goal. I suppose I could grab the __import__ function from the PySystemState builtins, but I was wondering if there was a more eligent way. The imp module looked close as well, but I couldn't quite figure that out.
[19:03] <agronholm> dray, just import org.python.core.imp
[19:03] <agronholm> and imp.load("your.module")
[19:08] <diminoten> I'm experiencing some different performance between Cpython and Jython's unittest module
[19:08] <diminoten> in 2.7a2
[19:08] <diminoten> not sure exactly what's causing it
[19:08] <diminoten> as the unittest Libs are identical
[19:09] <agronholm> different performance? jython ought to be slower
[19:09] <diminoten> not speed related
[19:10] <diminoten> unittest.TestLoader().discover behaves slightly differently
[19:15] <DRayX> agronholm: Oh I didn't see the load function. Does that work with a module in a package or not?
[19:15] <agronholm> both
[19:16] <DRayX> What I mean is if I do "your.module" is the returned object a reference to your with module in it, or module itself
[19:16] <agronholm> it's the module
[19:16] <DRayX> What I mean is if I do "foo.bar" is the returned object a reference to foo with bar in it, or bar itself (switched to use better metasyntactic variables)
[19:17] <DRayX> Perfect, thanks again agronholm
[19:17] <DRayX> One more question, if I want to call PyInterpreter.exec, how do I specify single input vs exec input?
[19:17] <agronholm> single input?
[19:18] <DRayX> Where isntead or returning the object it is printed to the screen
[19:19] <DRayX> as in the mode argument to compile and exec
[19:29] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) Quit (Ping timeout: 245 seconds)
[19:32] * juneau001 (~juneau@131.225.24.168) Quit (Quit: juneau001)
[20:27] * lheuer1 (~Adium@blfd-4db0e67c.pool.mediaWays.net) has joined #jython
[20:30] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 248 seconds)
[21:02] * wainersm (wainersm@nat/ibm/x-ohuwbktdscawbusu) Quit (Quit: Ex-Chat)
[21:04] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) has joined #jython
[21:05] <DRayX> If I do imp.load("foo") is that going to use the import hooks?
[21:23] <agronholm> it should
[21:32] * wmeissner (~wmeissner@121.91.217.144) has joined #jython
[21:39] * vayer (~vayer@173-164-129-225-SFBA.hfc.comcastbusiness.net) Quit (Quit: Leaving)
[21:47] * DRayX (cf4352fa@gateway/web/freenode/ip.207.67.82.250) Quit (Ping timeout: 245 seconds)
[22:07] * enebo (~enebo@174-20-162-39.mpls.qwest.net) Quit (Quit: enebo)
[22:38] * DRayx (cf4352fa@gateway/web/freenode/ip.207.67.82.250) has joined #jython
[22:39] <DRayx> Does Jython use the same opcodes as CPython?
[22:47] * DRayx (cf4352fa@gateway/web/freenode/ip.207.67.82.250) Quit (Ping timeout: 245 seconds)
[22:59] * enebo (~enebo@174-20-162-39.mpls.qwest.net) has joined #jython
[23:10] <agronholm> jython uses jvm bytecode
[23:10] <agronholm> I don't know the details
[23:10] <agronholm> there is a vm for interpreting cpython opcodes but it's experimental
[23:48] * wmeissner (~wmeissner@121.91.217.144) Quit (Ping timeout: 246 seconds)
[23:52] * enebo (~enebo@174-20-162-39.mpls.qwest.net) Quit (Quit: enebo)

Index

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