#jython IRC Log (v0.9)

Index

IRC Log for 2011-02-10

Timestamps are in GMT/BST.

[0:00] <qb89dragon> using absolute file paths to the jars
[0:02] <qb89dragon> it gets most of the way through processing the report but runs into the error where it can't load the xsd file. The code to load the xsd file is deep inside of jasper's libraries and I'd prefer to not have to modify jasper's source so that it is easier to stay on top of the current version
[0:02] <qb89dragon> net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRRuntimeException: Could not find resource net/sf/jasperreports/engine/dtds/jasperreport.xsd
[0:02] <qb89dragon> loading the same set of jars works in eclipse and I can build a working standalone jar from eclipse
[0:03] <agronholm> qb89dragon: adding to sys.path does not equal having it on CLASSPATH
[0:04] <agronholm> since the jar is then not seen by the system class loader
[0:06] <qb89dragon> I'll give that a shot then. Thanks alot. Is this running jython with the -cp switch?
[0:07] <agronholm> just set the CLASSPATH environment variable
[0:20] <qb89dragon> sorry to keep troubling you. I've got as far as having this java -cp /usr/share/java/jython.jar:$CLASSPATH org.python.util.jython ./jython-server.py
[0:20] <qb89dragon> but it tries to write a cache in my /usr/share/java folder, which fails as I'm not running as root
[0:20] <agronholm> why do you include $CLASSPATH in the -cp argument
[0:21] <qb89dragon> is there any way to change jython's active directory (with the -D option I think) when running in this fashion
[0:21] <agronholm> java does not have a concept of "current directory"
[0:22] <qb89dragon> ok. is there any way to change the cache directory location in that case?
[0:23] <agronholm> set the python.cachedir property I think
[0:23] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[0:27] <qb89dragon> tried setting the python.cachedir property in the registry file, still getting the same error
[0:27] <qb89dragon> *sys-package-mgr*: can't create package cache dir, '/usr/share/java/cachedir/packages'
[0:27] <qb89dragon> Traceback (innermost last): File "./jython-server.py", line 15, in ? ImportError: no module named javaos
[0:27] <qb89dragon> (line 15 actually says import os.path)
[0:32] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[1:20] <qb89dragon> agronholm: Thanks for your help, much appreciated. I have it working now
[1:21] <agronholm> k
[1:33] * sgithens (~sgithens@cpe-24-166-26-143.indy.res.rr.com) has joined #jython
[2:00] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[2:03] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[2:06] * qb89dragon (~qb89drago@d75-154-177-87.bchsia.telus.net) Quit (Quit: Leaving)
[2:36] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Quit: Leaving)
[2:44] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit ()
[4:52] * jzacsh (~jzacsh@unaffiliated/jzacsh) has joined #jython
[4:52] * jzacsh (~jzacsh@unaffiliated/jzacsh) has left #jython
[5:30] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) Quit (Ping timeout: 276 seconds)
[5:42] * agronholm (~demigod@83.145.211.37) has joined #jython
[8:30] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[8:30] * 84XABPH8D (~tismer@95-88-203-205-dynip.superkabel.de) Quit (Ping timeout: 240 seconds)
[9:02] * wmeissner (~wmeissner@123.200.219.130) has joined #jython
[9:11] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[9:18] * wmeissner_ (~wmeissner@122.110.64.11) has joined #jython
[9:21] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[9:22] * wmeissner (~wmeissner@123.200.219.130) Quit (Ping timeout: 276 seconds)
[9:22] * wmeissner_ is now known as wmeissner
[9:23] * wmeissner (~wmeissner@122.110.64.11) Quit (Remote host closed the connection)
[9:24] * wmeissner (~wmeissner@123.200.219.130) has joined #jython
[9:56] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:59] * stakkars_ (~tismer@i59F7228D.versanet.de) has joined #jython
[11:16] * choeger_ (~choeger@eurybates.uebb.cs.tu-berlin.de) Quit (Quit: Verlassend)
[11:20] * juneau001 (~juneau@pool-70-106-168-107.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[11:59] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) has joined #jython
[12:09] * juneau001 (~juneau@131.225.24.157) has joined #jython
[13:04] * wmeissner (~wmeissner@123.200.219.130) Quit (Ping timeout: 265 seconds)
[14:21] * sgithens (~sgithens@cpe-24-166-26-143.indy.res.rr.com) Quit (Ping timeout: 240 seconds)
[14:41] * aleff (~nobody@fiorix.net) Quit (Remote host closed the connection)
[14:51] * stakkars_ (~tismer@i59F7228D.versanet.de) Quit (Quit: schnarch)
[14:55] * sgithens (~sgithens@149-166-11-17.dhcp-in.iupui.edu) has joined #jython
[15:24] * enebo (~enebo@67-4-200-194.mpls.qwest.net) has joined #jython
[15:29] * sgithens (~sgithens@149-166-11-17.dhcp-in.iupui.edu) Quit (Ping timeout: 240 seconds)
[16:15] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) Quit ()
[16:31] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[16:44] * stakkars_ (~tismer@89.204.153.77) has joined #jython
[16:56] * headius (~headius@216.160.3.79) has joined #jython
[16:56] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[17:30] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[17:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[17:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) has joined #jython
[18:35] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[19:38] * stakkars_ (~tismer@89.204.153.77) Quit (Quit: schnarch)
[19:51] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[19:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[19:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) has joined #jython
[19:55] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[19:57] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Ping timeout: 240 seconds)
[20:07] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 240 seconds)
[20:12] * juneau001 (~juneau@131.225.24.157) Quit (Quit: juneau001)
[20:14] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: [IRSSI] I can fix anything, I have duct tape..;-))))
[20:30] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[20:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[20:54] * enebo (~enebo@67-4-200-194.mpls.qwest.net) has joined #jython
[20:55] * wmeissner (~wmeissner@119.12.58.225) has joined #jython
[21:35] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[22:10] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[22:23] * wmeissner (~wmeissner@119.12.58.225) Quit (Quit: wmeissner)
[22:50] * headius (~headius@216.160.3.79) has joined #jython
[22:52] * agronholm (~demigod@83.145.211.37) Quit (Read error: Operation timed out)
[22:53] * enebo (~enebo@67-4-200-194.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[22:54] * enebo (~enebo@67-4-200-194.mpls.qwest.net) has joined #jython
[22:56] * juneau001 (~juneau@pool-70-106-168-107.chi01.dsl-w.verizon.net) has joined #jython
[23:04] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[23:16] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) has joined #jython
[23:21] * thijstriemstra (~thijs@h182179.upc-h.chello.nl) has joined #jython
[23:26] * enebo (~enebo@67-4-200-194.mpls.qwest.net) Quit (Quit: enebo)
[23:29] * thijstriemstra (~thijs@h182179.upc-h.chello.nl) has left #jython
[23:29] * kuja (~kuja@unaffiliated/kuja) has joined #jython
[23:32] <kuja> Hi folks. I noticed from the docs (http://www.jython.org/docs/library/sys.html) it says there is a sys.getrefcount(), however when I try to invoke it from the interactive console, the result is: AttributeError: '<reflected field public org.python.core.PyObject o' object has no attribute 'refcount'
[23:32] <kuja> version 2.5.2rc3
[23:33] <kuja> This is immediately after importing sys and invoking sys.getrefcount(myobj). Any clues?
[23:33] <agronholm> jython does not use reference counting
[23:34] <kuja> Ah, oh well. I guess jython.org isn't always right :<
[23:35] <agronholm> definitely :/
[23:37] <kuja> Does Jython support .__del__()?
[23:37] <agronholm> not sure
[23:38] <agronholm> should be easy to test though
[23:38] <kuja> Yeah, should be. I'll just write something quick for that.
[23:38] <kuja> I've got some Python objects making their way into Java space that I'm trying to ensure get garbage collected
[23:39] <agronholm> it may work but it may be called at an unexpected time
[23:39] <agronholm> due to differences in gc methods between java and cpython
[23:39] <kuja> Yeah, doesn't need to be accurate as long as the objects are *eventually* collected
[23:40] <agronholm> you can manually trigger gc to test it
[23:40] <kuja> Yeah gonna write a quick test now
[23:41] <kuja> Yeah .__del__() works. Just tested by manually invoking the gc
[23:41] <kuja> Thanks for your help agronholm

Index

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