#jython IRC Log (v0.9)

Index

IRC Log for 2013-03-05

Timestamps are in GMT/BST.

[0:11] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[0:28] * Juneau001 (~Juneau@50.44.45.110) Quit (Quit: Juneau001)
[1:42] * Juneau001 (~Juneau@50.44.45.110) has joined #jython
[2:05] * Juneau001 (~Juneau@50.44.45.110) Quit (Quit: Juneau001)
[2:07] * Juneau001 (~Juneau@50.44.45.110) has joined #jython
[2:39] * lheuer (~Adium@blfd-5d820327.pool.mediaWays.net) Quit (Quit: Leaving.)
[2:48] * Juneau001 (~Juneau@50.44.45.110) Quit (Quit: Juneau001)
[3:07] * Juneau001 (~Juneau@50.44.45.110) has joined #jython
[3:37] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Ping timeout: 245 seconds)
[4:08] * jabley (uid2487@gateway/web/irccloud.com/x-dfeorbviqclbxywx) Quit (Ping timeout: 264 seconds)
[4:08] * lopex (uid4272@gateway/web/irccloud.com/x-urzpassphdqszcsw) Quit (Ping timeout: 245 seconds)
[5:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[5:43] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[5:51] * jabley (uid2487@gateway/web/irccloud.com/x-teagcywcyvjpwqpr) has joined #jython
[5:56] * lopex (uid4272@gateway/web/irccloud.com/x-ldkmgswwaglbtfxv) has joined #jython
[6:52] * Juneau001 (~Juneau@50.44.45.110) Quit (Quit: Juneau001)
[7:35] * purplefox (~purplefox@host-2-99-42-43.as13285.net) has joined #jython
[8:22] * synasius (~syn@host19-66-static.243-95-b.business.telecomitalia.it) has joined #jython
[8:59] * tlecomte (9d63400d@gateway/web/freenode/ip.157.99.64.13) Quit (Quit: Page closed)
[9:45] * purplefox (~purplefox@host-2-99-42-43.as13285.net) Quit (Quit: Leaving)
[10:12] * purplefox (~purplefox@host-2-99-42-43.as13285.net) has joined #jython
[10:45] * Juneau001 (~Juneau@50.44.45.110) has joined #jython
[11:25] * Juneau001 (~Juneau@50.44.45.110) Quit (Quit: Juneau001)
[11:26] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[11:27] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[11:32] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[11:38] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[11:49] * Juneau001 (~Juneau@50.44.45.110) has joined #jython
[12:02] * purplefox (~purplefox@host-2-99-42-43.as13285.net) Quit (Quit: Leaving)
[12:04] * Juneau001_ (~Juneau@50-45-106-231.dklb.il.frontiernet.net) has joined #jython
[12:05] * Juneau001 (~Juneau@50.44.45.110) Quit (Ping timeout: 255 seconds)
[12:05] * Juneau001_ is now known as Juneau001
[12:11] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[13:22] * purplefox (~purplefox@host-2-99-42-43.as13285.net) has joined #jython
[13:25] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[14:47] * lheuer1 (~Adium@blfd-5d8219f1.pool.mediaWays.net) has joined #jython
[14:49] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 245 seconds)
[15:18] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:26] * tlecomte (9d63400d@gateway/web/freenode/ip.157.99.64.13) has joined #jython
[17:19] * synasius (~syn@host19-66-static.243-95-b.business.telecomitalia.it) Quit (Quit: Sto andando via)
[18:20] * chro (~chatzilla@unaffiliated/chrome/x-455334) has joined #jython
[18:21] <chro> how can I add jars to the classpath?
[18:21] <chro> I did like this: java -cp hadoop-core-1.0.4.jar:hbase-0.94.3.jar -jar jython.jar tpcc.py hbase
[18:21] <chro> but I'm getting problems with finding the classes inside jars
[18:37] <chro> I also tried with -Dpython.path= but didn't work
[19:01] <chro> java -jar jython.jar -Dpython.path=hbase-0.94.3.jar tpcc.py hbase
[19:01] <chro> anyone can help?
[19:09] * purplefox (~purplefox@host-2-99-42-43.as13285.net) Quit (Ping timeout: 276 seconds)
[19:23] <chro> File "/home/sesteves/jython-2.7/Lib/re.py", line 280, in <module>
[19:23] <chro> import copy_reg
[19:23] <chro> ImportError: No module named copy_reg
[19:25] * purplefox (~purplefox@host-2-99-42-43.as13285.net) has joined #jython
[19:26] <Arfrever> 'import copy_reg' works for me in Jython.
[19:28] <chro> Arfrever: I tried with the jython interactive shell, and it coudn't find the module
[19:28] <chro> version: Jython 2.7b1 (default:ac42d59644e9, Feb 9 2013, 15:24:52)
[19:29] <chro> maybe it's because I installed the minimum version
[19:31] <chro> exactly, it worked now
[19:46] <chro> Arfrever: how can I add a library to the classpath, so that it can be imported inside python code
[19:59] * lheuer1 is now known as lheueer
[19:59] * lheueer is now known as lheuer
[20:56] * purplefox (~purplefox@host-2-99-42-43.as13285.net) Quit (Ping timeout: 256 seconds)
[21:25] * synasius (~syn@89.189.50.244) has joined #jython
[22:01] <chro> How can I add jars to jython?
[22:03] <agronholm> put them on your classpath
[22:27] <chro> agronholm: to the CLASSPATH var?
[22:27] <chro> that's what I did, yet the modules aren't recognized
[22:27] <chro> java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.HBaseConfiguration
[22:28] <agronholm> chro: what did you add to the classpath?
[22:28] <chro> $ jar -tf hbase-0.94.3.jar | grep "HBaseConfiguration"
[22:28] <chro> org/apache/hadoop/hbase/HBaseConfiguration.class
[22:28] <chro> $ echo $CLASSPATH
[22:28] <chro> hadoop-core-1.0.4.jar:hbase-0.94.3.jar
[22:29] <agronholm> "could not initialize" usually means that the static constructor failed
[22:29] <agronholm> probably means you lack something else
[22:29] <chro> ~/jython-2.7/bin/jython -Dpython.path="hadoop-core-1.0.4.jar":"hbase-0.94.3.jar" tpcc.py hbase
[22:29] <chro> oh
[22:30] <chro> but was the class found?
[22:30] <agronholm> it seems that way
[22:31] <chro> java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.HBaseConfiguration
[22:31] <chro> at java.lang.Class.forName0(Native Method)
[22:31] <chro> at java.lang.Class.forName(Class.java:264)
[22:31] <chro> at org.python.core.Py.loadAndInitClass(Py.java:929)
[22:31] <chro> ok
[22:31] <agronholm> java's class loading errors can be confusing
[22:32] <chro> yes, I think you are right
[23:02] * agronholm (~agronholm@2001:1bc8:102:6f29:41ed:b88b:2990:6e40) Quit (Ping timeout: 276 seconds)
[23:04] <chro> the error is given here: from org.apache.hadoop.hbase import HBaseConfiguration
[23:05] * agronholm (~agronholm@2001:1bc8:102:6f29:2136:dd0c:c86b:9ea3) has joined #jython
[23:05] * ChanServ sets mode +o agronholm
[23:08] * synasius (~syn@89.189.50.244) Quit (Quit: Sto andando via)
[23:11] * chro (~chatzilla@unaffiliated/chrome/x-455334) Quit (Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331])
[23:29] * Juneau001 (~Juneau@50-45-106-231.dklb.il.frontiernet.net) Quit (Quit: Juneau001)

Index

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