#jython IRC Log


IRC Log for 2015-09-03

Timestamps are in GMT/BST.

[1:24] * agronholm (~agronholm@2001:1bc8:102:6f29:ac7d:19df:7116:8549) Quit (Ping timeout: 248 seconds)
[1:28] * agronholm (~agronholm@2001:1bc8:102:6f29:3554:f852:46e6:bfb4) has joined #jython
[1:28] * ChanServ sets mode +o agronholm
[1:43] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) has joined #jython
[4:31] * Cecil (~cecil@5350EE9B.cm-6-1d.dynamic.ziggo.nl) Quit (Ping timeout: 264 seconds)
[4:32] * Cecil (~cecil@5350EE9B.cm-6-1d.dynamic.ziggo.nl) has joined #jython
[5:23] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) Quit (Remote host closed the connection)
[7:25] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[13:53] * xemdetia (xemdetia@nat/ibm/x-vhqezygbngnttyur) has joined #jython
[14:53] * hoangelos (~hoangelos@c-98-193-79-11.hsd1.il.comcast.net) has joined #jython
[14:53] <hoangelos> anyone here that's coverted an app that used OpenSSL extensively to Jython? Especially something based on Twisted?
[17:16] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) has joined #jython
[17:21] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 268 seconds)
[17:24] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[17:48] * maxpowa (maxpowa@ipv6.everythingisawesome.us) Quit (Quit: Ahh! My head is on fire!)
[17:48] * maxpowa (maxpowa@ipv6.everythingisawesome.us) has joined #jython
[17:56] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 260 seconds)
[18:13] * hoangelos (~hoangelos@c-98-193-79-11.hsd1.il.comcast.net) Quit ()
[18:28] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Quit: ChatZilla 0.9.92 [Firefox 40.0.2/20150812163655])
[18:30] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[18:52] * xemdetia (xemdetia@nat/ibm/x-vhqezygbngnttyur) Quit (Remote host closed the connection)
[18:56] * xemdetia (xemdetia@nat/ibm/x-iakoronlpemgnbch) has joined #jython
[19:26] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) Quit (Remote host closed the connection)
[19:45] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) has joined #jython
[21:35] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) Quit (Remote host closed the connection)
[22:31] * apollonovich (~rdowne@2601:647:4800:2600:f08c:31f4:55a9:4c39) has joined #jython
[22:31] * gopar (~gopar@2601:642:c000:3190:a6db:30ff:fea2:873) has joined #jython
[22:40] <apollonovich> Should I be able to add paths in jars other than the main jython jar to sys.path programmatically?
[22:41] <agronholm> apollonovich: yes
[22:42] <apollonovich> is any special magic required? When I try to run the associated program, I get the dreaded "no module named...." error
[22:43] <agronholm> it all depends on what you're doing and how
[22:43] <agronholm> like what exactly is in the jar file
[22:43] <agronholm> try adding the jar to CLASSPATH before you start jython -- see if that helps
[22:43] <apollonovich> the jar contains a bunch of java classes, and a path jython/site-packages
[22:43] <agronholm> the jar contains a path?
[22:43] <apollonovich> then I'm invoking PythonInterpreter from one of the classes contained in the jar.
[22:44] <apollonovich> and I'm attempting to add to sys.path the paths inside the jar by parsing up class.getResources(), and adding it to sys.path.
[22:44] <agronholm> that's not what you asked...I very much doubt that will work
[22:45] <apollonovich> http://pastebin.com/QQMXV55S
[22:46] <apollonovich> so you can have python modules...on the file system...and in the jython-standalone jar...but no other jars?
[22:47] <agronholm> you can have python modules in other jars
[22:47] <agronholm> just put the packages in the root of the jar
[22:47] <agronholm> and by packages I mean python packages, not other jars
[22:47] <apollonovich> ah, so I should just dump the python packages into the root of the jar, rather than in a nested path within the jar?
[22:48] <agronholm> I haven't found any other way to make it work -- I just make jars of all my libs
[22:48] <apollonovich> 1 jar per lib? or 1 jar with all the libs?
[22:49] <agronholm> doesn't really matter, but my choice was 1 jar per lib
[22:49] <agronholm> makes it easier to organize
[22:51] <apollonovich> cause using getResource works fine before everything gets packaged, but then everything goes to hell.
[22:52] <agronholm> because the class loader can't find the modules
[22:52] <apollonovich> ok, I think I figured it out. I need to modify sys.path before I create the PythonInterpreter.
[22:52] <apollonovich> if I do that, it scans the new paths.
[23:48] * robbyoconnor (~wakawaka@cpe-68-174-58-54.hvc.res.rr.com) has joined #jython
[23:48] * robbyoconnor (~wakawaka@cpe-68-174-58-54.hvc.res.rr.com) Quit (Changing host)
[23:48] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[23:51] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Client Quit)


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