#jython IRC Log (v0.9)

Index

IRC Log for 2012-11-06

Timestamps are in GMT/BST.

[0:15] * jabley (uid2487@gateway/web/irccloud.com/x-witkyrolwldvmtsd) Quit (Remote host closed the connection)
[0:30] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[0:38] * ciziar (~textual@c-5eeaaa99-74736162.cust.telenor.se) Quit (Ping timeout: 246 seconds)
[0:48] * diametric (~diametric@38.127.139.148) Quit (Remote host closed the connection)
[0:57] * catmtking (~catmtking@dhcp-138-23-59-162.dyn.ucr.edu) Quit (Quit: catmtking)
[1:08] * jcz is now known as gay
[1:08] * gay is now known as Guest51342
[1:11] * Guest51342 is now known as kandinski
[1:27] * jabley (uid2487@gateway/web/irccloud.com/x-iqggpcljstihjdeh) has joined #jython
[2:15] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[2:48] * ciziar (~textual@94.234.170.153) has joined #jython
[3:21] * jlwestsr (~jlwestsr@2602:304:ab2a:7969:1492:346f:fb7c:3e2c) Quit (Ping timeout: 246 seconds)
[4:01] * Rhombix (~rhombix@81.174.255.71) has joined #jython
[4:02] <Rhombix> hey shits
[4:02] <Rhombix> let's get this party started
[4:02] <Rhombix> (defun average (x y) (/ (+ x y) 2))
[4:02] <Rhombix>
[4:02] <Rhombix> (defun average (x y) (/ (+ x y) 2))
[4:02] <Rhombix> no, that's not what i wanted to paste
[4:02] <Rhombix> hold on
[4:02] <Rhombix> http://www.plasticbrickautomaton.com/?id=3
[4:02] <Rhombix> that's the comic i'm on
[4:02] <Rhombix> where he takes the owl as drugs
[4:02] <Rhombix> where are you high
[4:03] <Rhombix> ?
[4:07] <Rhombix> guys
[4:07] <Rhombix> i need advice
[4:16] * Rhombix (~rhombix@81.174.255.71) has left #jython
[5:41] * diminoten (~diminoten@unaffiliated/diminoten) Quit (Quit: Bye!)
[5:43] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) has joined #jython
[5:46] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) Quit (Client Quit)
[5:46] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) has joined #jython
[5:52] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) Quit (Changing host)
[5:52] * diminoten (~diminoten@unaffiliated/diminoten) has joined #jython
[5:52] * diminoten (~diminoten@unaffiliated/diminoten) Quit (Quit: Bye!)
[5:52] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) has joined #jython
[5:53] * diminoten (~diminoten@2001:4800:780e:510:813:e2c8:ff04:73dd) Quit (Changing host)
[5:53] * diminoten (~diminoten@unaffiliated/diminoten) has joined #jython
[6:22] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[6:36] * [Arfreve1] (~Arfrever@minotaur.apache.org) has joined #jython
[6:36] * [Arfrever] (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 256 seconds)
[6:39] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[6:39] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[7:08] * Oti (~ohumbel@adsl-89-217-212-164.adslplus.ch) Quit (Quit: Oti)
[7:16] * [Arfreve1] (~Arfrever@minotaur.apache.org) Quit (Quit: leaving)
[7:21] * [Arfrever] (~Arfrever@apache/committer/Arfrever) has joined #jython
[9:02] * Thev00d00 (~v00d00@gentoo/developer/TheV00d00) Quit (Quit: No Ping reply in 120 seconds.)
[9:08] * srcerer_ (~chatzilla@dns2.klsairexpress.com) has joined #jython
[9:09] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Ping timeout: 244 seconds)
[9:30] * r0bby (~wakawaka@guifications/user/r0bby) Quit (Quit: Konversation terminated!)
[10:07] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[10:46] * wmeissner_ is now known as wmeissner
[11:14] * ciziar (~textual@94.234.170.153) Quit (Ping timeout: 244 seconds)
[11:34] * rihen (~rihnapsto@117.204.172.10) has joined #jython
[11:35] <rihen> hello
[11:35] <rihen> guys
[11:35] <rihen> !
[11:35] <rihen> :+)
[12:20] * TkTech (~TkTech@irc.tkte.ch) has left #jython
[12:32] * jlwestsr (~jlwestsr@2602:304:ab2a:7969:21f0:4b9f:fe8e:afd5) has joined #jython
[12:55] * rihen (~rihnapsto@117.204.172.10) Quit (Ping timeout: 252 seconds)
[13:07] * rihen (~rihnapsto@117.207.219.217) has joined #jython
[13:13] * rihen (~rihnapsto@117.207.219.217) Quit (Ping timeout: 252 seconds)
[13:25] * rihen (~rihnapsto@117.204.166.173) has joined #jython
[13:31] * rihen (~rihnapsto@117.204.166.173) Quit (Ping timeout: 264 seconds)
[15:16] * njoyce (~njoyce@109.203.113.22) has left #jython
[15:16] * jlwestsr (~jlwestsr@2602:304:ab2a:7969:21f0:4b9f:fe8e:afd5) Quit (Quit: Ex-Chat)
[15:37] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[16:07] * catmtking (~catmtking@dhcp-138-23-59-162.dyn.ucr.edu) has joined #jython
[16:10] * catmtking (~catmtking@dhcp-138-23-59-162.dyn.ucr.edu) Quit (Client Quit)
[16:11] * catmtking (~catmtking@dhcp-138-23-59-162.dyn.ucr.edu) has joined #jython
[16:53] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[17:26] * srcerer_ is now known as srcerer
[17:37] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Quit: ChatZilla 0.9.88.2 [Firefox 15.0/20120824154833])
[18:39] * Thev00d00 (~v00d00@pegasus.v00d00.net) has joined #jython
[18:39] * Thev00d00 (~v00d00@pegasus.v00d00.net) Quit (Changing host)
[18:39] * Thev00d00 (~v00d00@gentoo/developer/TheV00d00) has joined #jython
[18:59] * deepy\SIGSEGV (~deepy@c83-248-153-114.bredband.comhem.se) Quit (Changing host)
[18:59] * deepy\SIGSEGV (~deepy@wrongplanet/deepa) has joined #jython
[19:06] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[19:07] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[19:22] * gColossus (~tahoang@unaffiliated/gcolossus) has joined #jython
[19:35] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Ping timeout: 245 seconds)
[19:52] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[20:14] * ciziar (~textual@94.234.170.129) has joined #jython
[20:16] * jlwestsr (~jlwestsr@2602:304:ab2a:7969:60a0:644b:3406:121e) has joined #jython
[20:47] * ciziar (~textual@94.234.170.129) Quit (Quit: Computer has gone to sleep.)
[21:18] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[21:28] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) has joined #jython
[21:56] * wmeissner (~wmeissner@119.12.203.254) Quit (Ping timeout: 244 seconds)
[22:12] * Aprel (~cp@n128-227-2-81.xlate.ufl.edu) has joined #jython
[22:14] <Aprel> Hi, I'm trying to instatiate a java class that depends on many other java classes in external jars. Keep getting NoClassDefFoundError. How can I import all classes in jars in a directory?
[22:15] <Aprel> This is just for experimenting, so no need for it to be a memory-efficient way
[22:16] <agronholm> Aprel: do you mean how to add all jars to the class path?
[22:17] <Aprel> I'm pretty sure I successfully added them to my path, but a need something like: for all Class in Jar: import Class
[22:17] <Aprel> Sorry, I'm experienced in java but new to python, so maybe I'm just missing something in python
[22:23] * Juneau001 (~Juneau@50.44.35.96) has joined #jython
[22:26] <Aprel> @agronholm: ah, my bad. I didn't have them all on my path, just their parent dir. Seems to work now. You were right
[22:27] <agronholm> to add them all to the class path I would probably just add an entry for somedir/*.jar
[22:29] <Aprel> Ah, great trick. Did not know sys.path supported a wildcard.
[22:30] <agronholm> sys.path probably doesn't
[22:30] <agronholm> but the system class loader does
[22:30] <agronholm> since java 6
[22:36] <Aprel> Calling with 'java -classpath /all/my/jars/*.jar -jar jython.jar' ?
[22:36] <agronholm> that probably won't work, at least on *nix
[22:37] <agronholm> CLASSPATH=/all/my/jars/*.jar java -jar jython.jar
[22:37] <agronholm> though if you want to start jython, use the command line script for that
[22:40] <Aprel> ok, if I want to set the CLASSPATH while calling jython with the bash script, how do I do that?
[22:41] <agronholm> CLASSPATH=/all/my/jars/*.jar jython
[22:46] <gColossus> agronholm: ahh, and the other day I didn't get that python will gladly read CLASSPATH ... and that I don't have to do stupid java -cp $CLASSPATH org.python.util.jython foo.py ...
[22:46] <gColossus> agronholm: I feel so stupid now ...
[22:47] <agronholm> gColossus: the package has arrived btw
[22:47] <agronholm> but I was too tired to go get it when I came home today
[22:47] <gColossus> agronholm: woo hoo, test the key!
[22:47] <agronholm> so I'll pick it up from the post office tomorrow
[22:47] <gColossus> agronholm: oic ... you have to go to the PO for that? they don't do door delivery? or the package required a sig?
[22:48] <gColossus> agronholm: okay, running from inside the IDE: :: Starting 400 threads :: Finishing execution. Generating logging :: Execution completed after 9.31699991226 seconds
[22:48] <gColossus> running from CLI: :: Starting 400 threads :: Finishing execution. Generating logging :: Execution completed after 20.7339999676
[22:48] <agronholm> they probably would deliver to the door but I had opted for free delivery
[22:49] <gColossus> agronholm: oic, no worries, the key will work
[22:49] <gColossus> agronholm: if it won't, chop my head off :P
[22:50] * wmeissner (~wmeissner@123.200.243.168) has joined #jython
[22:51] <Aprel> hm, tried executing java with the right CLASSPATH, but 'import com.example.www as test' fails, even though it's in a jar in the classpath. Am I missing a step?
[22:52] <agronholm> does it have dependencies?
[22:52] <Aprel> Yes, but they're all in the same dir in the classpath. btw, it gives a 'no module named' ImportError
[22:53] <Aprel> Though manually adding to sys.path worked
[22:53] <agronholm> were you using the *.jar trick?
[22:53] <Aprel> yes
[22:54] <Aprel> calling via java -jar jython.jar and the ./jython script, same problem
[22:55] <agronholm> I'm not sure how I used it myself, you need to make sure that shell expansion isn't taking place
[22:55] <agronholm> it shouldn't happen if you use it like that, but still
[22:55] <Aprel> CLASSPATH has a period '.' in it for the lib's version number. Could that cause a problem?
[22:56] <agronholm> no
[22:56] <Aprel> as in /all/my/jars-version1.1.1/*.jar
[22:56] <agronholm> hm wait a minute
[22:57] <agronholm> oh
[22:57] <agronholm> not a problem
[22:57] <Aprel> hm, I'll keep tinkering with it
[23:00] <Aprel> Is there some classpath environ variable I can look at in jython interpreter to make sure it's passed through?
[23:01] <agronholm> os.environ['CLASSPATH']
[23:01] <Aprel> thanks
[23:01] <Aprel> Yeah, jython has the correct CLASSPATH.
[23:02] <Aprel> with the globstar
[23:03] * Juneau001 (~Juneau@50.44.35.96) Quit (Quit: Juneau001)
[23:05] <Aprel> I don't think jython supports calling it with a wildcard in the CLASSPATH. If I replace the '*.jar' with a specific jar name, it imports fine (albeit fails because of missing dependacies on instantiation).
[23:06] <agronholm> wait, is that python code in the jar files then?
[23:06] <Aprel> I'm using jython2.5.3 on ubuntu, oracle java 7v9 (or whatever that latest release from oracle is, just updated)
[23:06] <Aprel> no, java code
[23:06] <agronholm> then it doesn't matter
[23:06] <agronholm> because the system class loader supports that
[23:07] <agronholm> and if jython can't load something, it calls the parent class loader
[23:08] <Aprel> Just found the problem: the classpath needs to be '/all/my/jars/*', not '/all/my/jars/*.jar'
[23:10] <agronholm> ah.
[23:10] <agronholm> my bad
[23:10] <agronholm> it's been a while since I used that
[23:11] <Aprel> not a problem, glad to get it running. It will save a lot of time in the long-run. Thanks.
[23:11] * msavy (~msavy@redhat/jboss/msavy) Quit (Quit: {})
[23:38] * wmeissner (~wmeissner@123.200.243.168) Quit (Quit: wmeissner)
[23:45] * Aprel (~cp@n128-227-2-81.xlate.ufl.edu) Quit (Quit: leaving)

Index

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