#jython IRC Log (v0.9)

Index

IRC Log for 2013-01-16

Timestamps are in GMT/BST.

[0:00] * wmeissner (~wmeissner@121.91.54.57) has joined #jython
[0:02] * wmeissner (~wmeissner@121.91.54.57) Quit (Read error: Connection reset by peer)
[0:03] * wmeissner (~wmeissner@121.91.54.57) has joined #jython
[0:40] * msavy (~msavy@redhat/jboss/msavy) Quit (Remote host closed the connection)
[0:52] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[1:03] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[1:40] * wmeissner (~wmeissner@121.91.54.57) Quit (Quit: wmeissner)
[3:04] * wmeissner (~wmeissner@121.91.54.57) has joined #jython
[4:39] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) has joined #jython
[5:04] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) Quit (Quit: seletz)
[6:36] * md_5 (md_5@mcdevs/trusted/md-5) Quit (Ping timeout: 272 seconds)
[6:41] * md_5 (md_5@mcdevs/trusted/md-5) has joined #jython
[7:01] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[7:41] * darjus (~darjus@96-26-62-132.war.clearwire-wmx.net) Quit (Quit: Konversation terminated!)
[8:14] * synasius (~syn@host19-66-static.243-95-b.business.telecomitalia.it) has joined #jython
[8:48] * wmeissner_ (~wmeissner@110.150.213.230) has joined #jython
[8:48] * wmeissner_ (~wmeissner@110.150.213.230) Quit (Client Quit)
[8:50] * wmeissner (~wmeissner@121.91.54.57) Quit (Ping timeout: 252 seconds)
[10:32] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) has joined #jython
[10:55] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[12:12] * Juneau001 (~Juneau@131.225.24.53) has joined #jython
[14:45] * msavy (~msavy@redhat/jboss/msavy) Quit (Quit: {})
[14:46] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[15:01] * seletz_ (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) has joined #jython
[15:02] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) Quit (Read error: Operation timed out)
[15:02] * seletz_ is now known as seletz
[16:09] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) Quit (Quit: seletz)
[16:15] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) has joined #jython
[17:00] * synasius (~syn@host19-66-static.243-95-b.business.telecomitalia.it) Quit (Ping timeout: 245 seconds)
[18:07] * synasius (~syn@92.245.170.248) has joined #jython
[19:59] * Juneau001 (~Juneau@131.225.24.53) Quit (Quit: Juneau001)
[20:04] * seletz (~seletz@HSI-KBW-149-172-100-49.hsi13.kabel-badenwuerttemberg.de) Quit (Quit: seletz)
[20:07] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[20:34] * wmeissner (~wmeissner@121.91.54.57) has joined #jython
[21:12] * fcalvin_ (~IceChat77@97-121-77-212.omah.qwest.net) has joined #jython
[21:13] * synasius (~syn@92.245.170.248) Quit (Quit: Sto andando via)
[21:15] <fcalvin_> Hi all, I'm trying to port a python application to jython and have run into a problem where jython cannot import kombu (which is used prominently in the original python app). I have installed kombu via pip (and even tried the -U option to get the most recent version).
[21:15] <fcalvin_> I have jython version 2.5.3 installed and when I try to import kombu, I get an "ImportError: No module named kombu" error. Any help would be greatly appreciated. Thanks, Flint
[21:18] <agronholm> fcalvin_: and you are positive that the installation worked fine?
[21:19] <fcalvin_> which install...jython or kombu?
[21:19] <agronholm> kombu
[21:20] <fcalvin_> sudo pip install -U kombu
[21:20] <fcalvin_> Downloading/unpacking kombu
[21:20] <fcalvin_> Downloading kombu-2.5.4.tar.gz (300Kb): 300Kb downloaded
[21:20] <fcalvin_> Running setup.py egg_info for package kombu
[21:20] <fcalvin_> Downloading/unpacking anyjson>=0.3.3 (from kombu)
[21:20] <fcalvin_> Downloading anyjson-0.3.3.tar.gz
[21:20] <fcalvin_> Running setup.py egg_info for package anyjson
[21:20] <fcalvin_> Downloading/unpacking amqp>=1.0.5,<1.1.0 (from kombu)
[21:20] <fcalvin_> Downloading amqp-1.0.6.tar.gz (69Kb): 69Kb downloaded
[21:20] <fcalvin_> Running setup.py egg_info for package amqp
[21:20] <fcalvin_> Installing collected packages: amqp, anyjson, kombu
[21:20] <fcalvin_> Found existing installation: amqp 1.0.6
[21:21] <agronholm> I tried it myself and it fails because it tries to install importlib and can't import the bz2 module
[21:22] <fcalvin_> hmmm...didn't see that error on mine
[21:23] <agronholm> I hope you didn't use CPython's pip then
[21:24] <fcalvin_> I'm running on ubuntu and installed pip with "sudo apt-get install python-pip"
[21:25] <agronholm> so when did you install pip on jython?
[21:26] <fcalvin_> hmmm...that could be the problem...didn't know I had to do that (nor how).
[21:32] <fcalvin_> @agronholm Thanks for the bread crumb trail...I'll go research that.
[21:32] <agronholm> the absence of the bz2 module is a painful issue on Jython
[21:33] <agronholm> I've made an attempt to fix that but I didn't get very far
[21:45] <pjenvey> there is a pull request that implements it
[21:45] <agronholm> even for streaming?
[21:45] <pjenvey> i think you had a look at that already right agronholm? someone just needs to finish it
[21:45] <pjenvey> yea
[21:46] <agronholm> I may have forgotten about it
[21:46] <pjenvey> https://bitbucket.org/jython/jython/pull-request/4/implementation-of-bz2-module
[21:47] <agronholm> pjenvey: any idea what's missing?
[21:48] <agronholm> just the merging?
[21:54] <pjenvey> i really just gave it a cursory review, so it could probably use some looking at before merging
[21:54] <pjenvey> i still think that encoding thing being done looks suspect but i would'nt consider it a blocker
[21:54] <pjenvey> (i had a comment about it on there)
[21:56] <pjenvey> i guess it passes all the tests though?
[21:57] <pjenvey> think he said that on the ML
[22:21] <agronholm> pjenvey: do you suppose there are alternate ways to convert bytearrays to PyStrings then?
[22:26] <agronholm> PyString does not take byte arrays or bytebuffers in any of its constructors
[22:27] <pjenvey> we have core.util.StringUtil.fromBytes, which returns a regular java String
[22:27] <pjenvey> im pretty sure itd oesn't work in this context though
[22:27] <pjenvey> I don't understand why
[22:27] <pjenvey> like why do we need any manipulating of byte data coming back from bz2
[22:27] <agronholm> to make PyString happy I suppose
[22:28] <agronholm> doesn't it need to escape some nonprintable characters to accommodate String?
[22:28] <agronholm> take a look at PyString.encode_UnicodeEscape()
[22:29] <agronholm> see how it checks for \ characters in the internal String?
[22:35] <pjenvey> agronholm - well yea, but that's to escape them
[22:41] <agronholm> hm
[22:42] * wmeissner (~wmeissner@121.91.54.57) Quit (Quit: wmeissner)
[22:45] * fcalvin_ (~IceChat77@97-121-77-212.omah.qwest.net) Quit (Quit: If you can't laugh at yourself, make fun of other people.)
[22:47] <agronholm> I just merged it into my local repo, the tests seem to pass
[22:47] <agronholm> now I'm going to see if the formatters are really necessary
[23:18] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:25] * wmeissner (~wmeissner@121.91.54.57) has joined #jython
[23:44] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[23:47] <agronholm> pjenvey: what can I say...I removed the decoding/encoding code from the module and the PyBZ2File class and Lib/test/test_bz2.py still passes
[23:48] <agronholm> I just can't shake the nagging feeling that the code was there for _some_ reason
[23:58] <pjenvey> agronholm - can you pastebin the diff?
[23:58] <pjenvey> i thought i did the same thing a while back and it broke
[23:58] <agronholm> I forked the pull request
[23:58] <agronholm> I'm pushing in just a moment
[23:58] <pjenvey> ok
[23:58] <pjenvey> all the tests pass right?
[23:58] <agronholm> what do I need to run besides test_bz2?
[23:59] <agronholm> obviously the entire test suite isn't going to pass since it didn't pass before
[23:59] <agronholm> test_bz2 is the only new thing

Index

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