#jython IRC Log

Index

IRC Log for 2014-09-16

Timestamps are in GMT/BST.

[0:16] * dorkmafia (~dorkmafia@2601:9:680:89b:f5eb:9618:ae3d:3d24) has joined #jython
[0:25] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[0:25] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 246 seconds)
[2:56] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[3:07] * dorkmafia (~dorkmafia@2601:9:680:89b:f5eb:9618:ae3d:3d24) Quit (Ping timeout: 260 seconds)
[3:42] * dorkmafia (~dorkmafia@2601:9:680:89b:f5eb:9618:ae3d:3d24) has joined #jython
[5:47] * a42niem (~niem@p578b7daf.dip0.t-ipconnect.de) has joined #jython
[6:36] * dorkmafia (~dorkmafia@2601:9:680:89b:f5eb:9618:ae3d:3d24) Quit (Ping timeout: 272 seconds)
[8:43] * r0bby_ is now known as robbyoconnor
[10:33] * Ne0nd0g__ (~Ne0nd0g@unaffiliated/ne0nd0g) has joined #jython
[10:36] * Ne0nd0g_ (~Ne0nd0g@unaffiliated/ne0nd0g) Quit (Ping timeout: 258 seconds)
[11:35] * mgolisch (~quassel@2a01:238:43b9:6800:922e:bf28:9aab:b23) Quit (Read error: Connection reset by peer)
[11:35] * mgolisch (~quassel@2a01:238:43b9:6800:922e:bf28:9aab:b23) has joined #jython
[11:39] * a42niem (~niem@p578b7daf.dip0.t-ipconnect.de) Quit (Ping timeout: 272 seconds)
[12:17] <grey_> Any thoughts at all regarding http://bugs.jython.org/issue2206 (jython association on Windows)?
[13:07] * SylvainM (~SylvainM3@160.92.7.69) has joined #jython
[13:08] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[13:10] <SylvainM> i have found the solution of my bugs with error code 20000
[13:11] <SylvainM> the problem was on some servers jython is started with JavaPOSIX implementation (not native)
[13:12] <SylvainM> this implementation has a method errno() which return 0
[13:12] <SylvainM> and 0 is not mapped to an Errno constant
[13:12] <SylvainM> that why the 20000 error code
[13:13] <SylvainM> for solving it i have run jython with the debug mode
[13:13] <SylvainM> at the starting jython need to write on the /tmp partition
[13:14] <SylvainM> but /tmp has the option noexec for us
[13:14] <SylvainM> when we remove the noexec option jython starts with the native implementation
[13:14] <SylvainM> and the error code are well mapped because it use libc
[13:15] <SylvainM> well i think it should be good to add a WARNING message at the starting of jython when it runs with the java implementation
[13:18] * xemdetia (xemdetia@nat/ibm/x-xauarcfrecfvmokz) has joined #jython
[13:24] * xemdetia (xemdetia@nat/ibm/x-xauarcfrecfvmokz) Quit (Quit: Leaving)
[13:25] * xemdetia (xemdetia@nat/ibm/x-guepdwytskekvgjc) has joined #jython
[13:42] * Kid_A (~alan@64.22.249.253) has joined #jython
[13:45] * mike_af (~mike_af@50-77-49-46-static.hfc.comcastbusiness.net) has joined #jython
[13:45] * mike_af (~mike_af@50-77-49-46-static.hfc.comcastbusiness.net) Quit (Changing host)
[13:45] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) has joined #jython
[13:49] * dorkmafia (~dorkmafia@2601:9:680:89b:3460:a0a5:4c85:1dc1) has joined #jython
[14:09] * Ne0nd0g__ (~Ne0nd0g@unaffiliated/ne0nd0g) Quit (Quit: Leaving)
[14:23] <agronholm> what JavaPOSIX
[14:26] * Kid_A (~alan@64.22.249.253) Quit (Ping timeout: 255 seconds)
[14:29] * Ne0nd0g (~Ne0nd0g@unaffiliated/ne0nd0g) has joined #jython
[14:34] <SylvainM> agronholm javaposix is a class from jnr-posix.jar
[14:34] <SylvainM> which is a dependency of jython
[14:59] * Kid_A (~alan@64.22.249.253) has joined #jython
[15:12] <Ne0nd0g> Does anyone in here use Eclipse for an IDE with Jython?
[15:12] <agronholm> I do
[15:14] <Ne0nd0g> i'm having one hell of a time getting a .jar file into my class path. I want to include the .jar file with my PyDev package. I've made a folder called 'libs' in the root of my PyDev package. Does that sound appropriate?
[15:14] <agronholm> creating a directory named "lib" does not magically insert it into the class path
[15:15] <agronholm> or "libs"
[15:15] <agronholm> you have to put every jar separately on the class path in the project settings
[15:15] <Ne0nd0g> right, I understand that. but I want to make sure i setup the package structure right
[15:16] <Ne0nd0g> i used the java 'ClassLoader.getSystemClassLoader()' to view my CLASSPATH. I then put the .jar in one of the directories, but still no luck
[15:16] <Ne0nd0g> it's the MySQL driver
[15:16] <agronholm> like I said, putting jars in directories does not affect the class path
[15:17] <agronholm> the exception is the boot class path
[15:17] <Ne0nd0g> I thought the point of a class path was the same as path, to read in or associate all the files in those directories?
[15:17] <agronholm> where putting a jar in the ext/ directory in your JRE will add it automatically
[15:17] <agronholm> you have to add each jar separately, or use a wildcard path
[15:17] <agronholm> like libs/*
[15:17] <agronholm> that will also work
[15:18] <agronholm> not libs/*.jar, but libs/*
[15:18] <Ne0nd0g> would I be adding 'libs/*' to my PyDev project itself?
[15:18] <Ne0nd0g> or just to eclipse
[15:18] <agronholm> what's the difference?
[15:20] <Ne0nd0g> The application will be run by other users. They won't have eclipse.
[15:21] <agronholm> how will the class path get set up then
[15:21] <Ne0nd0g> idk, that's what i'm here tring to figure out. How do I include a library with my PyDev package?
[15:21] <agronholm> how do you distribute your app? I use java web start for that
[15:22] <Ne0nd0g> i've never distributed an app. I have mediocre programming skills with plain ole Python. I just email the .py file. I've programmed in Java like 6 years ago and forgot most of what I know
[15:23] <agronholm> ooh boy
[15:23] <Ne0nd0g> lol
[15:23] <agronholm> sounds like you're in way over your head
[15:23] <Ne0nd0g> meh, i'll figure it out
[15:23] <Ne0nd0g> always do
[15:24] <Ne0nd0g> I've already got my Jython app with a JDesktopPane, some menus, and some frames. Now I just need to connect to a database so I can start getting data.
[15:25] <Ne0nd0g> So, do I have some false understanding? Is it not possible to include the MySQL .jar driver in with my PyDev package for distribution?
[15:26] <agronholm> it is
[15:26] <agronholm> if you want a single jar, you can use jarjar for that
[15:27] <Ne0nd0g> and if I wanted to this, is having a 'libs' directory in my PyDev package the most appropriate way to store the library?
[15:32] * Kid_A (~alan@64.22.249.253) Quit (Ping timeout: 272 seconds)
[15:41] <agronholm> you could do that, but your distribute jar file won't have that directory
[15:50] * dorkmafia (~dorkmafia@2601:9:680:89b:3460:a0a5:4c85:1dc1) Quit (Ping timeout: 260 seconds)
[15:51] * dorkmafia (~dorkmafia@2601:9:680:89b:912f:cb33:1db:7ec7) has joined #jython
[16:02] * a42niem (~niem@p578b7daf.dip0.t-ipconnect.de) has joined #jython
[16:04] * dorkmafi1 (~dorkmafia@2601:9:680:89b:1cba:184d:eac5:adf5) has joined #jython
[16:06] * dorkmafia (~dorkmafia@2601:9:680:89b:912f:cb33:1db:7ec7) Quit (Ping timeout: 260 seconds)
[16:24] * Kid_A (~alan@64.22.249.253) has joined #jython
[16:29] * SylvainM (~SylvainM3@160.92.7.69) Quit (Remote host closed the connection)
[16:34] * dorkmafi1 (~dorkmafia@2601:9:680:89b:1cba:184d:eac5:adf5) Quit (Ping timeout: 260 seconds)
[16:46] * wangofett (~wangofett@ip70-178-209-91.ks.ks.cox.net) has joined #jython
[16:48] <wangofett> 'morning. I'm using Maven to build/install a webapp and I'm using the http://mavenjython.sourceforge.net/compile/ plugin to compile my project.
[16:49] <wangofett> but for some reason my libraries are going to WEB-INF/classes/Lib, but my path (as reported by sys.path) has WEB-INF/lib/Lib
[16:49] <wangofett> Anyone know how to fix that? I've been searching Google & SO to no avail
[16:59] * pr3d4t0r (~zhenya01@varenka.cime.net) Quit (Quit: WeeChat 0.3.7)
[17:58] * Kid_A (~alan@64.22.249.253) Quit (Ping timeout: 272 seconds)
[18:04] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 258 seconds)
[18:34] * dorkmafi1 (~dorkmafia@72.5.115.169) has joined #jython
[19:19] <wangofett> http://stackoverflow.com/q/25876760/344286
[19:34] <Ne0nd0g> agronholm, how do I add 'libs/*'? The information I find online doesn't appear to work with either the version of eclipse i'm using or the PyDev package.
[19:36] <agronholm> Ne0nd0g: you mean where do you add libs/* to your eclipse configuration?
[19:37] <Ne0nd0g> Yes
[19:38] <agronholm> eclipse doesn't support wildcards
[19:38] <Ne0nd0g> can I not add it just for this project's configuration?
[19:38] <agronholm> you have to add each jar separately
[19:40] <Ne0nd0g> Project->Properties->?
[19:40] <agronholm> what type of project do you have
[19:40] <agronholm> Jython?
[19:41] <agronholm> Ne0nd0g: PyDev - PYTHONPATH
[19:42] <agronholm> but unless you have a Java project, it won't add the jar to the class path
[19:42] <Ne0nd0g> I have a pydev project
[19:44] <Ne0nd0g> finally, I got it figured out
[19:44] <agronholm> ?
[19:44] <Ne0nd0g> Well, you got it figured out, I just don't have to keep finding the answer.
[19:45] <Ne0nd0g> I added the 'libs' dir where you suggested, PyDev - PYTHONPATH
[19:46] <agronholm> hmm, but that alone shouldn't add any jars to the class path
[19:47] <Ne0nd0g> it did, my code works fine now
[19:48] <Ne0nd0g> as soon as I ran it, i got a message back from the console showing that it found the mysql jar and the database query was working
[20:35] * a42niem (~niem@p578b7daf.dip0.t-ipconnect.de) Quit (Ping timeout: 245 seconds)
[21:30] * gthank (~gthank@unaffiliated/gthank) has joined #jython
[21:51] * jorgew___ is now known as jorgew
[22:08] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) Quit (Quit: Leaving...)
[22:33] <jimbaker> grey_, re http://bugs.jython.org/issue2206 - we are not going to be adding .jy as a file extension for python, including jython
[22:34] <jimbaker> now, you can name a script with any extension you want, but .py for a module is too baked in to what python does
[22:34] <jimbaker> i don't know if there's something more we can do than the file associations you are already doing for scripts
[22:35] <jimbaker> for example: it would be interesting to support some sort of virtual env in windows for such associations. but i assume it would be similar to what cpython does regardless
[22:35] <jimbaker> or what people do with cpython
[22:43] * xemdetia_ (xemdetia@nat/ibm/x-zbefbmunzhyameke) has joined #jython
[22:46] * xemdetia (xemdetia@nat/ibm/x-guepdwytskekvgjc) Quit (Ping timeout: 246 seconds)
[22:47] * xemdetia_ (xemdetia@nat/ibm/x-zbefbmunzhyameke) Quit (Ping timeout: 258 seconds)
[23:06] * dorkmafi1 (~dorkmafia@72.5.115.169) Quit (Ping timeout: 255 seconds)
[23:13] * dorkmafi1 (~dorkmafia@72.5.115.169) has joined #jython
[23:14] * diametric (~diametric@2604:3400:dc1:43:216:3eff:fe27:bf9d) Quit (Ping timeout: 272 seconds)
[23:16] * diametric (~diametric@2604:3400:dc1:43:216:3eff:fe27:bf9d) has joined #jython

Index

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