#jython IRC Log


IRC Log for 2016-02-26

Timestamps are in GMT/BST.

[1:05] * xemdetia_ (xemdetia@nat/ibm/x-umtmkatpiprrbqjo) Quit (Ping timeout: 244 seconds)
[1:31] * jimklo (~jimklo@ Quit (Ping timeout: 252 seconds)
[8:04] * N3sh108 (~N3sh108@a88-112-5-148.elisa-laajakaista.fi) has joined #jython
[8:14] * N3sh108 (~N3sh108@a88-112-5-148.elisa-laajakaista.fi) Quit (Quit: Yogo - I'm sleeping, yo)
[8:21] * N3sh108 (~N3sh108@a88-112-5-148.elisa-laajakaista.fi) has joined #jython
[9:24] * N3sh108 (~N3sh108@a88-112-5-148.elisa-laajakaista.fi) Quit (Remote host closed the connection)
[9:33] * non-sense (~non@unaffiliated/non-sense) Quit (Ping timeout: 248 seconds)
[9:46] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Quit: Ex??re)
[9:49] * non-sense (~non@unaffiliated/non-sense) has joined #jython
[10:40] * ahmed_ is now known as ahmed__
[10:41] * ahmed__ is now known as amed_
[11:45] * LurkAshFlake (~lurk@modemcable052.223-178-173.mc.videotron.ca) has joined #jython
[12:15] * LurkAshFlake (~lurk@modemcable052.223-178-173.mc.videotron.ca) Quit (Changing host)
[12:15] * LurkAshFlake (~lurk@unaffiliated/lurkashflake) has joined #jython
[13:07] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) has joined #jython
[14:15] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[14:34] <LurkAshFlake> how do I write the char ' in a string
[14:45] * xemdetia_ (~xemdetia@pool-96-230-53-83.bstnma.fios.verizon.net) has joined #jython
[14:55] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Ping timeout: 255 seconds)
[14:56] <gthank> LurkAshFlake "'"
[15:39] * xemdetia_ is now known as xemdetia
[16:40] * jimklo (~jimklo@ has joined #jython
[16:45] * jimklo (~jimklo@ Quit (Ping timeout: 276 seconds)
[16:52] * jimklo (~jimklo@ has joined #jython
[17:13] * pjenvey_ (pjenvey@underboss.org) has joined #jython
[17:13] * gthank_ (~hank@ec2-54-173-0-150.compute-1.amazonaws.com) has joined #jython
[17:15] * eatkin_ (~eatkin@ has joined #jython
[17:20] * eatkin (~eatkin@ Quit (*.net *.split)
[17:20] * gthank (~hank@unaffiliated/gthank) Quit (*.net *.split)
[17:20] * Techcable (~Techcable@techcable.net) Quit (*.net *.split)
[17:20] * pjenvey (pjenvey@underboss.org) Quit (*.net *.split)
[17:21] * Techcable (~Techcable@techcable.net) has joined #jython
[17:39] * cyraxjoe (~joe@2607:f0d0:1103:106:e::12c) Quit (Remote host closed the connection)
[17:40] * cyraxjoe (~joe@2607:f0d0:1103:106:e::12c) has joined #jython
[20:11] <LurkAshFlake> what's wrong with "while(!(exists("1456495424166.png"))):" "[error] SyntaxError ( "mismatched input ')' expecting COLON", )"
[20:14] * LurkAshFlake solved
[20:53] <Cheaterman> :-)
[21:15] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[21:15] * ChanServ sets mode +o Arfrever
[21:50] * xemdetia (~xemdetia@pool-96-230-53-83.bstnma.fios.verizon.net) Quit (Ping timeout: 240 seconds)
[22:21] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) Quit (Remote host closed the connection)
[22:36] <jimbaker> jimklo - i followed the usual virtualenv instructions (http://docs.python-guide.org/en/latest/dev/virtualenvs/) against jython 2.7.1b3, and it works fine
[22:38] <jimklo> jimbaker: what version of virtualenv? There's a bug in a vendor package that causing my issue.
[22:38] <jimbaker> but i'm pretty sure this was a problem with an earlier beta (beta 2 iirc), and possibly 2.7.0
[22:38] <jimbaker> jimklo, if you use mkvirtualenv, you will get old vendor packages
[22:38] <jimklo> jimbaker: https://github.com/pypa/virtualenv/issues/838
[22:38] <jimbaker> namely pip 6
[22:39] <jimbaker> we are currently going through a bit of version hell with this i think ;)
[22:40] <jimklo> unfortunately I hacked together a solution for my immediate problem (which was to just fixup the shebang line) so I could make it relocatable
[22:40] <jimbaker> but up-to-date stuff seems to have the latest things that work with jython
[22:40] <jimbaker> jimklo, i recommend installing beta 3 (because it's great!)
[22:41] <jimbaker> (and we need testing!)
[22:41] <jimklo> but the --relocatable flag on virtualenv can't deal with the /usr/bin/env /abs/path/to/jython
[22:41] <jimbaker> then just following the steps outlined in http://docs.python-guide.org/en/latest/dev/virtualenvs/ - specifically choosing the desired python with the -p option
[22:42] <jimklo> I'm thinking I have to rethink my strategy that I've been doing however.
[22:42] <jimbaker> jimklo, that should be long gone
[22:42] <jimbaker> i'm looking at the current shebang line
[22:42] <jimbaker> for bin/jython
[22:42] <jimbaker> #!/usr/bin/python2.7 -E
[22:42] <jimklo> wasn't long gone this morning
[22:42] <jimbaker> it
[22:43] <jimbaker> i guess old setuptools assumes it
[22:43] <jimbaker> and old distlib too iirc
[22:43] <jimbaker> but jython doesn't need it
[22:43] <jimklo> not sure... however not sure what I want to do as what I was hoping I could do with jython isn't working
[22:43] <jimbaker> as of 2.7.0, and we upstreamed stuff in the last month or so into setuptools/distlib to stop that
[22:44] <jimklo> i.e. I want to make a maven artifact that has a pre-built jython install with all my packages
[22:44] <jimklo> and then be able to depend upon it to run a sphinx documentation build
[22:44] <jimbaker> yeah, that's a little more in line with 2.7.2 goals
[22:45] <jimklo> using jython, because our documentation is for a programming language and IDE
[22:45] <jimbaker> which is to publish precise maven identifiers. although the addition of python packages, that's interesting
[22:45] <jimklo> of which we build a language parser and tokenizer for in java
[22:45] <jimklo> for the ide of course
[22:46] <jimklo> so I reappropriated the parser and tokenizer as a lexer for pygments
[22:46] <jimklo> so we could have matching color coded language blocks in the documentation
[22:46] <jimbaker> yeah, sounds cool. there is this clamp project that i occasionally work on for making single jars
[22:46] <jimklo> since is an esoteric language with only about 50 ppl in the world using it
[22:47] <jimbaker> it's not super ideal, but you could publish an artifact with that
[22:47] <jimklo> however adoption is growing
[22:48] <jimbaker> i remember a lightning talk at pycon where someone was introducing their project - just needed a few more people to see truly exponential growth ;)
[22:48] <jimbaker> but yeah, the start is always good
[22:49] <jimklo> Our project has a bit of UN backing... so it could grow exponentially...
[22:49] <jimbaker> anyway, we haven't thought about what it means to maven resolve pypi. not certain what is done in say maven + gem world in jruby
[22:50] <jimbaker> i can say that clamp should work against site-packages and build single jars, and seems to be robust, except for builds on windows
[22:51] <jimklo> I do have a module that can install Jython and all the requirements files (without the need for a virtualenv). Of which I can then install on each module that needs (so the paths work).
[22:52] <jimbaker> https://github.com/jythontools/clamp
[22:53] <jimklo> I don't think clamp is what I need
[22:53] <jimklo> or maybe I just don't understand what it does
[22:54] <jimbaker> there is an example of its use here: https://github.com/jimbaker/hellowsgi
[22:54] <jimbaker> but i have been too way busy to work on clamp recently
[22:54] <jimbaker> (or really in the last year)
[22:55] <jimbaker> been focused on core jython dev instead
[22:55] <jimbaker> anyway - i recommend sketching out your desired deployment solution. maybe we can make it work. something in markdown would be ideal
[22:55] <jimklo> so does it wrap the entire jython install + site-packages into a jar?
[22:56] <jimbaker> jimklo, yes, that's a key feature
[22:56] <jimklo> okay... maybe I can make this work...
[22:56] <jimbaker> needed for a variety of scenarios that take singlejars, eg app servers, big data tooling
[22:57] <jimklo> what happens to console scripts?
[22:58] <jimbaker> ok, keep us posted. i'm sure i'm going to get back to clamp at some point. re console scripts - they should not be retained as bin/. but they still have their usual entry points
[22:58] <jimklo> specifically what in my problem i've got sphinx documentation projects
[22:58] <jimbaker> so java -jar all-in-one-jython.jar -m my.entry.point should work
[22:59] <jimklo> so to generate docs, its usually a sphinx-build
[22:59] <jimklo> which is in the bin.
[22:59] <jimklo> okay... so I could use clamp make this jar... which I can convert to an artifact
[23:00] <jimklo> and then with the right antrun incantation I should be able to build the documentation as ususal
[23:04] <jimbaker> right. maybe java -jar my-single-jython.jar -c "from sphinx import main; ...", but something like that
[23:04] <jimbaker> (just looked at sphinx-build script)
[23:07] <jimbaker> anyway, do give it a try. very much appreciate your feedback! got to run now
[23:07] <jimklo> thanks...
[23:07] <jimklo> this looks promising
[23:22] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) has joined #jython
[23:26] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) Quit (Ping timeout: 240 seconds)


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