[Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Nadav Horesh
Having numpy, scipy, and matplotlib working reasonably with python3, a major piece of code I miss for a major python3 migration is an image IO. I found that pylab's imread works fine for png image, but I need to read all the other image format as well as png and jpeg output. Any hints (includi

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Christoph Gohlke
On 3/12/2011 1:08 AM, Nadav Horesh wrote: > Having numpy, scipy, and matplotlib working reasonably with python3, a > major piece of code I miss for a major python3 migration is an image IO. > I found that pylab's imread works fine for png image, but I need to read > all the other image format as

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Zachary Pincus
Here's a ctypes interface to FreeImage that I wrote a while back and was since cleaned up (and maintained) by the scikits.image folk: https://github.com/stefanv/scikits.image/blob/master/scikits/image/io/_plugins/freeimage_plugin.py If it doesn't work out of the box on python 3, then it should

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Nadav Horesh
'utf8' codec can't decode byte 0xe4 in position 1909: invalid continuation byte Any idea on how to correct it? Any elegant way to avoid byte compiling? Nadav From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org] On B

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Christoph Gohlke
ine 300, in decode > (result, consumed) = self._buffer_decode(data, self.errors, final) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 1909: > invalid continuation byte > > > > Any idea on how to correct it? Any elegant way to avo

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Nadav Horesh
ect: Re: [Numpy-discussion] [OT] any image io module that works with python3? Here's a ctypes interface to FreeImage that I wrote a while back and was since cleaned up (and maintained) by the scikits.image folk: https://github.com/stefanv/scikits.image/blob/master/sciki

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Nadav Horesh
numpy-discussion-boun...@scipy.org] On Behalf Of Christoph Gohlke [cgoh...@uci.edu] Sent: 12 March 2011 21:49 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] [OT] any image io module that works with python3? On 3/12/2011 8:45 AM, Nadav Horesh wrote: > I forgot to mention th

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Christoph Gohlke
_ > From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org] > On Behalf Of Christoph Gohlke [cgoh...@uci.edu] > Sent: 12 March 2011 21:49 > To: numpy-discussion@scipy.org > Subject: Re: [Numpy-discussion] [OT] any image io module that works with > p

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-12 Thread Nadav Horesh
-boun...@scipy.org] On Behalf Of Christoph Gohlke [cgoh...@uci.edu] Sent: 13 March 2011 00:37 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] [OT] any image io module thatworks withpython3? On 3/12/2011 12:47 PM, Nadav Horesh wrote: > After the replacement of ö wit

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Stéfan van der Walt
On Sat, Mar 12, 2011 at 2:35 PM, Zachary Pincus wrote: > Here's a ctypes interface to FreeImage that I wrote a while back and > was since cleaned up (and maintained) by the scikits.image folk: > https://github.com/stefanv/scikits.image/blob/master/scikits/image/io/_plugins/freeimage_plugin.py > >

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Christoph Gohlke
n-boun...@scipy.org [numpy-discussion-boun...@scipy.org] > On Behalf Of Christoph Gohlke [cgoh...@uci.edu] > Sent: 13 March 2011 00:37 > To: numpy-discussion@scipy.org > Subject: Re: [Numpy-discussion] [OT] any image io module thatworks > withpython3? > > On 3

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Nadav Horesh
...@scipy.org [numpy-discussion-boun...@scipy.org] On Behalf Of Stéfan van der Walt [ste...@sun.ac.za] Sent: 13 March 2011 17:19 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] [OT] any image io module that works with python3? On Sat, Mar 12, 2011 at 2:35 PM, Zachary Pin

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Stéfan van der Walt
Hi Nadav On Sun, Mar 13, 2011 at 8:20 PM, Nadav Horesh wrote: > Jest tested the installation (after git clone ...). I had to correct the > following lines in _build.py to pass installation: > lines 72, and 75 should be: >    f0 = open(f0,'br') >    f1 = open(f1,'br') Thanks so much for testing

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Christoph Gohlke
Hi Stéfan, I am sending you this off list. I just tried scikits.image from git on Windows. The attached patch fixes some minor build and test issues. Scikits.image.io occasionally seems to shadow Python's io module such that `import gzip` fails. There are 5 test failures like this: ===

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-13 Thread Stéfan van der Walt
Hi Christoph On Mon, Mar 14, 2011 at 12:16 AM, Christoph Gohlke wrote: > I just tried scikits.image from git on Windows. The attached patch fixes > some minor build and test issues. Great, thanks so much! Pushed into the repo. > Scikits.image.io occasionally seems to shadow Python's io module

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-14 Thread Christoph Gohlke
build directory before > rebuilding. > > Christoph > >> >>Thank you, >> >> Nadav. >> ____ >> From: numpy-discussion-boun...@scipy.org >> [numpy-discussion-boun...@scipy.org] On Behalf Of Christoph Goh

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-15 Thread Nadav Horesh
y.org] On Behalf Of Christoph Gohlke [cgoh...@uci.edu] Sent: 14 March 2011 21:55 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] [OT] any image io module that works withpython3? On 3/12/2011 9:56 PM, Nadav Horesh wrote: > This lead to another error prob

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-15 Thread Stéfan van der Walt
On Tue, Mar 15, 2011 at 8:31 PM, Nadav Horesh wrote: > Just downloaded and got the same problems. I'll try to debug and provide a > decent analysis, but it would take some days as I am busy with other things. Thanks, that'd be appreciated; I am able to load images using freeimage without a probl

Re: [Numpy-discussion] [OT] any image io module that works with python3?

2011-03-16 Thread René Dudfield
pygame On Sat, Mar 12, 2011 at 9:08 AM, Nadav Horesh wrote: > Having numpy, scipy, and matplotlib working reasonably with python3, a > major piece of code I miss for a major python3 migration is an image IO. I > found that pylab's imread works fine for png image, but I need to read all > the ot