#jython IRC Log

Index

IRC Log for 2014-03-11

Timestamps are in GMT/BST.

[0:05] * thereisnospoon_ (~thereisno@113-61-86-28.static.qld.dsl.net.au) has joined #jython
[0:09] * diametric (~diametric@2604:3400:dc1:43:216:3eff:fe27:bf9d) Quit (Ping timeout: 265 seconds)
[0:13] * diametric (~diametric@2604:3400:dc1:43:216:3eff:fe27:bf9d) has joined #jython
[1:52] * ArcTanSusan (~susantan@50-203-159-62-static.hfc.comcastbusiness.net) Quit (Quit: ArcTanSusan)
[2:57] * smaudet (~smaudet@cpe-98-28-34-149.columbus.res.rr.com) has joined #jython
[4:20] <jimbaker> so i'm getting some of the socket unit tests to pass with socket-reboot. so far, it's just been a matter of adding missing functionality, such as socket options and error handling. hopefully 100% by end of the week!
[4:20] <jimbaker> but now, time for bed!
[5:42] * xymox (lechuck@unaffiliated/contempt) Quit (Ping timeout: 252 seconds)
[5:46] * xymox (lechuck@unaffiliated/contempt) has joined #jython
[8:09] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[9:35] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 252 seconds)
[11:00] * smaudet (~smaudet@cpe-98-28-34-149.columbus.res.rr.com) Quit (Ping timeout: 246 seconds)
[12:07] * smaudet (~smaudet@206-51-157-254.nktelco.net) has joined #jython
[12:45] * randomlurker1234 (d9a2a407@gateway/web/freenode/ip.217.162.164.7) has joined #jython
[13:06] * Code45 (~androirc@101.162.31.126) has joined #jython
[13:06] <Code45> Hi
[13:09] * Code45 (~androirc@101.162.31.126) Quit (Client Quit)
[14:22] * randomlurker1234 (d9a2a407@gateway/web/freenode/ip.217.162.164.7) Quit (Ping timeout: 245 seconds)
[14:38] <smaudet> jimbaker: sounds good - I think I've found the issue, I'm not certain how to solve it though - jython is looking for things using unixy style paths, and this doesn't work (surprise!) on Windows. There is some windows-y support code in here, but the problem comes when actually loading these paths in - Java expects the actual path in the jar file, but its being given the unix path and can't find it.
[14:39] <smaudet> Confusingly, clamp uses the unixy paths, and dies if I remove the code that does the conversions, meaning something is using the forward style paths (clamp actually crashes when I use backslashes instead of forward slashes)
[14:40] <smaudet> So my shim fix for now is to check the windows-style path and load that, although I'm making modifications to jython in order to fix clamp...this seems wrong somehow.
[14:40] <smaudet> =/
[14:41] * smaudet feels like a lot of this headache would have been solved by appropriate use of os.path.separator and File.separator instead of hard coded slashes.
[14:45] <smaudet> Yeah my shim fixes work, Java->Python bridge finally 'just' loads stuff out of the jar directly
[14:49] <whg> Python is supposed to use Unix-style paths all over and transparently hide the Windows part, right?
[14:50] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:04] <smaudet> whq: um, sorta, maybe
[15:05] <smaudet> I think python is actually not doing this in this case
[15:05] <smaudet> At least jython isn't
[15:06] <smaudet> whq: the actual recommended usage for python I know is (or used to be) to never use full paths and only os.path.separator
[15:07] <smaudet> jimbaker: I figured out why my python -> java -> python -> java invocation wasn't working as well, although I object to calling it python calling java calling python, since its not what its actually doing.
[15:08] <smaudet> your source code (the stuff that's in jython-ssl master branch) is importing clamped directly from the Lib directory, I don't see any logic actually pulling in the Java proxy class.
[15:08] <smaudet> So it looks like that is just broken at the moment. Works fine though if I just call the normal python path though.
[15:18] <smaudet> jimbaker: the other general question I have is what facilities are there to build just a standalone jar (so instead of a whole jython distribution packed with the python files, just the generated jython classes)
[15:20] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Ping timeout: 240 seconds)
[15:22] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:44] <jimbaker> smaudet, sorry to hear about the forward slash/backslash confusion, it is of course not a surprise
[15:46] <smaudet> jimbaker: one of the things I tried (which was slightly worrying) was to do (in jython): from java.util.jar import JarFile; j=JarFile('myjar.jar')
[15:46] <smaudet> and then print all the entries
[15:46] <smaudet> some of them use forward, other use backslashes.
[15:47] <jimbaker> wow, that's crazy
[15:47] <smaudet> so the actual fix may actually be to change the way clamp packes stuff
[15:48] <jimbaker> ok, clearly it's mixed up. iirc, jars only want /-separated paths. but i can definitely see that not being consistent on windows
[15:48] <jimbaker> in terms of what has been implemented'
[15:49] <smaudet> I also left a slightly more substantiative description (no line numbers though) on the github issues page
[15:49] <jimbaker> smaudet, btw, i do the same thing, except i use jar tf. in any event, it will be part of a future test for sure
[15:49] <jimbaker> smaudet, ok, will look
[15:49] <jimbaker> also did you submit an issue re your packaging ideas?
[15:50] <smaudet> so just the one with the mixed up slashes?
[15:50] <smaudet> no, I figured I'd actually try to fix the bug first
[15:50] <smaudet> Since I"m still not 100% sure what is wrong
[15:50] <smaudet> Maybe you meant something else?
[15:51] <jimbaker> smaudet, no worries. one thing clamp is severely missing is any unit tests. i do get some functional testing by using clamped, plus a few other projects, but that doesn't suffice
[15:51] <jimbaker> but this stuff around jar construction is precisely the sort of thing that needs to be unit tested
[15:51] <jimbaker> so i will fix that
[15:52] <jimbaker> any suggestions also appreciated :)
[15:52] <jimbaker> that's also pretty mandatory before we add any more features, such as annotation support
[17:28] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Quit: Ex??re)
[17:46] * ArcTanSusan (~susantan@50-203-159-62-static.hfc.comcastbusiness.net) has joined #jython
[18:07] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[19:33] * newsotrada (~newsotrad@188.190.124.55) has joined #jython
[19:40] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Read error: Operation timed out)
[19:44] * newsotrada (~newsotrad@188.190.124.55) Quit (Remote host closed the connection)
[19:44] * lheuer (~Adium@f049064183.adsl.alicedsl.de) has joined #jython
[19:44] * lheuer (~Adium@f049064183.adsl.alicedsl.de) Quit (Changing host)
[19:44] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[20:16] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[20:33] * kotovskie (~kotovskie@194.242.3.87) has joined #jython
[20:41] * ArcTanSusan (~susantan@50-203-159-62-static.hfc.comcastbusiness.net) Quit (Quit: ArcTanSusan)
[20:43] <smaudet> Euhm, is the egg file for clamped intended to be a jar equivalent? I.e. the output from clamp/build_jar
[20:44] * kotovskie (~kotovskie@194.242.3.87) Quit (Remote host closed the connection)
[20:45] <smaudet> nvm figured it out
[20:46] * panormus (~panormus@194.242.2.84) has joined #jython
[20:49] * panormus (~panormus@194.242.2.84) Quit (Remote host closed the connection)
[21:08] <jimbaker> smaudet, as you no doubt noticed - it's an .egg, but not zipped. it's an interesting question if one could have an egg be loadable as a jar, but it's not something i plan on exploring
[21:18] * smaudet (~smaudet@206-51-157-254.nktelco.net) Quit (Ping timeout: 246 seconds)
[21:30] * thereisnospoon_ (~thereisno@113-61-86-28.static.qld.dsl.net.au) Quit (*.net *.split)
[21:30] * jimbaker (~jbaker@unaffiliated/jimbaker) Quit (*.net *.split)
[21:30] * whg (whg@unaffiliated/whg) Quit (*.net *.split)
[21:30] * Thev00d00 (~v00d00@gentoo/developer/TheV00d00) Quit (*.net *.split)
[21:30] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (*.net *.split)
[21:30] * diametric (~diametric@2604:3400:dc1:43:216:3eff:fe27:bf9d) Quit (*.net *.split)
[21:30] * clajo04 (~clajo04@pool-108-21-222-14.nycmny.fios.verizon.net) Quit (*.net *.split)
[21:30] * siel (~siel@unaffiliated/motley) Quit (*.net *.split)
[21:30] * lopex (uid4272@gateway/web/irccloud.com/x-ppcdipstpalcqhue) Quit (*.net *.split)
[21:30] * agronholm (~agronholm@2001:1bc8:102:6f29:9c4:a015:ab5f:6ab) Quit (*.net *.split)
[21:30] * grey_ (eaaltone@kapsi.fi) Quit (*.net *.split)
[21:30] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (*.net *.split)
[21:30] * verterok (~ggonzalez@162.213.35.11) Quit (*.net *.split)
[21:30] * xymox (lechuck@unaffiliated/contempt) Quit (*.net *.split)
[21:30] * [Arfrever] (~Arfrever@apache/committer/Arfrever) Quit (*.net *.split)
[21:30] * topi` (foobar@lima-64.srv.hosting.fi) Quit (*.net *.split)
[21:30] * JStoker (jstoker@unaffiliated/jstoker) Quit (*.net *.split)
[21:30] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (*.net *.split)
[21:30] * ivan` (~ivan@unaffiliated/ivan/x-000001) Quit (*.net *.split)
[21:30] * mantovan1 (~mantovani@li74-187.members.linode.com) Quit (*.net *.split)
[21:31] * lazybear (~lazybear@radium.atom.fi) Quit (*.net *.split)
[21:31] * shashank (~shashank@208.91.2.2) Quit (*.net *.split)
[21:31] * pjenvey (pjenvey@underboss.org) Quit (*.net *.split)
[21:31] * peke (peke@kapsi.fi) Quit (*.net *.split)
[21:31] * ChanServ (ChanServ@services.) Quit (*.net *.split)
[21:31] * lheuer (~Adium@unaffiliated/lheuer) Quit (*.net *.split)
[21:31] * maxb (~maxb@jabberwock.vm.bytemark.co.uk) Quit (*.net *.split)
[21:39] -asimov.freenode.net- Server Terminating. Md[~md@freenode/staff/md]
[21:39] * JythonLogBot disconnected - trying to reconnect...
[21:39] -orwell.freenode.net- *** Looking up your hostname...
[21:39] -orwell.freenode.net- *** Checking Ident
[21:39] -orwell.freenode.net- *** No Ident response
[21:39] -orwell.freenode.net- *** Couldn't look up your hostname

Index

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