#jython IRC Log (v0.9)


IRC Log for 2012-05-23

Timestamps are in GMT/BST.

[0:00] * iandalton (~user@ Quit (Quit: rcirc on GNU Emacs
[0:43] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) has joined #jython
[0:52] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Quit: Ex??re)
[1:21] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) has joined #jython
[1:25] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) Quit (*.net *.split)
[1:27] * JStoker (jstoker@unaffiliated/jstoker) Quit (Quit: JStoker is gone :()
[1:30] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) has joined #jython
[1:41] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[1:46] * JStoker (jstoker@unaffiliated/jstoker) Quit (Excess Flood)
[1:51] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[2:49] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) Quit (*.net *.split)
[2:55] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) has joined #jython
[5:18] * Oti (~ohumbel@adsl-84-227-32-42.adslplus.ch) Quit (Quit: Oti)
[6:00] * ctismer is now known as ctismer_afk
[6:03] * ctismer_afk is now known as ctismer
[6:20] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) Quit (Remote host closed the connection)
[6:21] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) has joined #jython
[6:21] * ctismer is now known as ctismer_afk
[6:24] * ctismer_afk is now known as ctismer
[6:35] * ctismer is now known as ctismer_afk
[6:38] * ctismer_afk is now known as ctismer
[6:49] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) Quit (Quit: Konversation terminated!)
[6:49] * ctismer is now known as ctismer_afk
[7:04] * DanC_ (~dconnolly@user1.kumc.edu) Quit (Ping timeout: 265 seconds)
[7:16] * fwierzbicki_ (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[7:16] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[7:16] * fwierzbicki_ is now known as fwierzbicki
[9:33] * kilon (~kvirc@ has joined #jython
[9:33] <kilon> aloha people
[9:33] <kilon> congratulation on jython 2.7
[10:07] * juneau001 (~juneau@50-45-102-43.dklb.il.frontiernet.net) Quit (Quit: juneau001)
[10:16] * [Arfreve1] (~Arfrever@minotaur.apache.org) has joined #jython
[10:17] * [Arfrever] (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 245 seconds)
[11:15] * juneau001 (~juneau@ has joined #jython
[11:34] * DanC_ (~dconnolly@user1.kumc.edu) has joined #jython
[12:07] * ctismer_afk is now known as ctismer
[12:39] * wainersm (~wainersm@ has joined #jython
[13:12] * norm (~norm_@ has joined #jython
[13:13] * norm (~norm_@ Quit (Client Quit)
[13:13] * norm (~norm_@ has joined #jython
[13:13] * norm (~norm_@ Quit (Client Quit)
[13:13] * norm (~norm_@ has joined #jython
[13:59] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) Quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/)
[14:00] * agronholm (~Demi-god@nblzone-211-37.nblnetworks.fi) has joined #jython
[14:00] * ChanServ sets mode +o agronholm
[14:33] * kilon (~kvirc@ Quit (Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/)
[16:31] * iandalton (~user@ has joined #jython
[16:33] <iandalton> I wanted to fix some typos in the Jython Book and submit a pull request, but the source has two versions of every chapter. For example, there's DatabasesAndJython.rst and chapter12.rst. Which one should I edit? Or do I have to edit both?
[16:45] <jimbaker`> iandalton, this would be *very* much appreciated. i do not recall the details, but i think was inadvertent and part of final production. juneau001 likely has more insight
[16:47] <iandalton> Alright, I'll wait around for him :-)
[16:48] <jimbaker`> iandalton, it's pretty async here, that's for sure. i'll be right back (need to get some coffee), but definitely want to chat w/ you re the python bytecode support
[16:52] <juneau001> landalton jimbaker - Thanks for the help
[16:53] <juneau001> Use the DatabasesAndJython.rst, rather than chapter12.rst
[16:53] <iandalton> Alright
[16:53] <juneau001> If you look at the index.rst file, it lists all of the files that are pulled in to make the book
[16:53] <iandalton> it's an 'i' at the beginning of my name, btw :-)
[16:53] <juneau001> sorry
[16:54] <juneau001> :_
[16:54] <juneau001> :)
[16:54] <juneau001> I believe we used chapter1.rst, chapter2.rst, etc at the beginning until we decided upon Chapter names
[16:56] <iandalton> Instead of having both in the repo, why not have them get hg moved sometime in the project history?
[17:15] <jimbaker`> iandalton, sounds like a good cleanup plan. maybe just removed for now
[17:27] <fwierzbicki> pjenvey: who have you been talking to to get commit access for us? I want to give Jeff Allen commit rights -- I haven't asked him if he wants them yet but I'm guessing he'll want them -- and maybe I can talk him into smaller pushes :)
[17:29] <jimbaker`> iandalton, seems just like a general problem with the import when working with pyc files. i will take a look at this in more detail soon
[17:41] <juneau001> iandalton: yes, good plan for cleanup. We certainly need to spend time on cleanup at some point.
[17:46] <fwierzbicki> juneau001: after some cleanup it will also probably be time to create a 2.5 branch with default being 2.7
[17:47] <juneau001> indeed
[17:47] <jimbaker`> it would be nice to update the book for 2.7
[17:48] <juneau001> yes it would
[17:48] <jimbaker`> one advantage of waiting on the python docs cleanup for jython is we no longer have to worry about backporting to 2.5 ;)
[17:49] <fwierzbicki> ha
[17:50] <juneau001> true, that is good
[18:23] <pjenvey> fwierzbicki - send their ssh keys to georg brandl. Don't forget to have them agree to send in the contributor agreement
[18:29] <fwierzbicki> pjenvey: cool thanks - they already signed an agreement for the patches I've pushed :)
[19:08] <iandalton> jimbaker`: the pyc files worked fine once I compiled them with cpython 2.5 instead of 2.7
[19:08] <jimbaker`> iandalton, ahh interesting, so really it's a pyc update issue
[19:09] <jimbaker`> i was thinking it was a change in imports that's also been part of 2.7 work
[19:09] <jimbaker`> on the jython side, that is
[19:10] <iandalton> I haven't tested jython 2.7 yet. I might some time in the future.
[19:11] <jimbaker`> iandalton, ok. you will need to use cpython 2.5 with jython 2.5 for this use case. a future version of jython 2.7 will also support just doing this automatically as need (compiling to python bytecode), the infrastructure for this is slowly coming together
[19:12] <iandalton> yeah, I installed cpython 2.5 from a PPA
[19:18] * juneau001 (~juneau@ Quit (Quit: juneau001)
[19:56] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[20:00] * jimbaker` (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) Quit (Ping timeout: 246 seconds)
[20:09] * jimbaker (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) has joined #jython
[20:09] * jimbaker (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) Quit (Changing host)
[20:09] * jimbaker (~jbaker@canonical/jimbaker) has joined #jython
[20:25] * jimbaker (~jbaker@canonical/jimbaker) Quit (Quit: Coyote finally caught me)
[20:26] * jimbaker (~jbaker@canonical/jimbaker) has joined #jython
[20:38] * norm (~norm_@ Quit (Quit: Leaving)
[20:40] <fwierzbicki> jimbaker: oh nice - I did not know the pyc stuff was being actively worked on
[20:51] <Thunderbird> I'm trying to use the JythonObjectFactory example from jythonbook
[20:52] <Thunderbird> under the hood it uses PySystemState on which it looks up '__import__' and then it essentially does a '__import__ ModuleName'
[20:52] <Thunderbird> the module I'm trying to load is in my sys.path, but through PySystemState I'm not able to load the module, I always get a 'ImportError no module named..'
[20:53] <Thunderbird> from the jython console, the same code using '__import__' works fine
[20:53] <Thunderbird> is there any special requirement for PySystemState to load a module?
[21:06] * Trundle (~andy@python/site-packages/trundle) Quit (Remote host closed the connection)
[21:21] <iandalton> Does Jython 2.7 support multiprocessing?
[21:23] <fwierzbicki> Thunderbird: maybe if you could post a bit of code that causes the trouble?
[21:23] <Thunderbird> okay, let me create a few lines
[21:23] <fwierzbicki> iandalton: no - multiprocessing is a workaround for the GIL - in Jython you should use threading
[21:24] <fwierzbicki> iandalton: so says the author of multiprocessing :)
[21:24] <fwierzbicki> I asked him a few years ago
[21:26] * wainersm (~wainersm@ Quit (Quit: Ex-Chat)
[21:30] <Thunderbird> I have condensed the part of code from http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html 'JythonObjectFactory.java' to the not-working part for me
[21:30] <Thunderbird> this is the core
[21:30] <Thunderbird> http://pastebin.com/GNCTAgng
[21:30] <Thunderbird> on jython 2.7a1
[21:31] <iandalton> So I can just do something like:
[21:31] <iandalton> if 'java' in sys.platform: import threading; else: import multiprocessing
[21:31] <iandalton> ?
[21:33] <agronholm> which one would you use in your code then? threading or multiprocessing?
[21:34] <iandalton> Depends on if I'm running the code under Jython or CPython, right?
[21:34] <iandalton> Oh, I'd need an "as foo" in there
[21:50] * iandalton (~user@ Quit (Quit: rcirc on GNU Emacs
[21:53] * iandalton (~user@ has joined #jython
[21:54] <iandalton> Pull request for jythonbook sent :-)
[21:59] * ciziar (~textual@h-184-81.a189.priv.bahnhof.se) has joined #jython
[22:14] * ciziar (~textual@h-184-81.a189.priv.bahnhof.se) Quit (Ping timeout: 240 seconds)
[22:15] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[22:15] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[22:15] <fwierzbicki> my power just went out so I won't be here long -
[22:15] <fwierzbicki> Thunderbird: PySystemState should have a call to initialize() before it is used - that may be the trouble
[22:16] <fwierzbicki> it may be a bug in the book's code
[22:17] <Thunderbird> okay, will try that
[22:17] <Thunderbird> thanks
[22:18] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Client Quit)
[22:27] <iandalton> With Jython 2.7a1, how do I install PyPI packages, like SQLAlchemy?
[22:33] * varialus (cfe0d5b3@gateway/web/freenode/ip. has joined #jython
[22:55] <iandalton> I'm following the easy_install instructions at <http://www.jython.org/jythonbook/en/1.0/appendixA.html#setuptools>, and I get an ImportError: No module named pkg_resources <https://gist.github.com/2778349>
[23:04] <agronholm> iandalton: that page is outdated
[23:04] <agronholm> forget about setuptools, install distribute instead
[23:04] <agronholm> http://python-distribute.org/
[23:05] <agronholm> download and execute distribute_setup.py
[23:17] <iandalton> Same problem
[23:28] <agronholm> you mean the installation does not work?
[23:28] <agronholm> did for me
[23:29] <agronholm> wth, easy_install was not installed
[23:29] <agronholm> aah
[23:31] <agronholm> yup, I'm seeing the same problem
[23:32] <iandalton> For me, easy_install is installed (though it's not in $PATH). but I can't use it to install anything.
[23:32] <agronholm> it would seem like the import mechanism is broken
[23:34] <iandalton> I can import sys. It seems like jython can't find pkg_resources, which for me is at jython2.7a1/Lib/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py
[23:34] <iandalton> What is it supposed to do, find everything under site-packages and its subdirs?
[23:35] <agronholm> no, it will look into the .egg directory because it's in easy_install.pth
[23:35] <agronholm> or at least it's supposed to
[23:35] <agronholm> .pth files are special to Python
[23:38] <iandalton> The .pth files are in jython2.7a1/Lib/site-packages, which isn't in sys.path
[23:39] <agronholm> that is curious
[23:40] <agronholm> most likely the reason why it fails
[23:41] * ivan` (~ivan@unaffiliated/ivan/x-000001) Quit (Ping timeout: 245 seconds)
[23:42] <iandalton> Looks like sys.path doesn't matter; sys.prefix does, and it should find the .pth files, I think: http://docs.python.org/library/site.html
[23:42] <iandalton> well, maybe
[23:42] * sabi (~nriley@osric.zoiks.net) Quit (Ping timeout: 244 seconds)
[23:43] <iandalton> it says lib/python|version|/site-packages but Jython has Lib/site-packages
[23:46] <iandalton> yeah, it's not looking in the right places
[23:47] <agronholm> well, Frank can figure this out
[23:49] <iandalton> Heh, I was going to file a bug report, but it seems someone beat me to it
[23:57] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[23:57] * iandalton (~user@ Quit (Quit: rcirc on GNU Emacs
[23:59] <fwierzbicki> yes import is busted - I'll need to put out a 2.7a2 already - the issue is a dumb mistake on my part in site.py that is fixed on tip


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