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

Christoph Gohlke cgohlke at uci.edu
Sun Mar 13 18:16:28 EDT 2011

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:

ERROR: test_selem.TestSElem.test_selem_disk
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 187, in runTest
line 39, in test_selem_disk
     self.strel_worker("disk-matlab-output.npy", selem.disk)
line 29, in strel_worker
     matlab_masks = np.load(os.path.join(data_dir, fn))
   File "X:\Python27\lib\site-packages\numpy\lib\npyio.py", line 316, in 
     import gzip
   File "X:\Python27\lib\gzip.py", line 36, in <module>
     class GzipFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'


On 3/13/2011 8:19 AM, Stéfan van der Walt wrote:
> On Sat, Mar 12, 2011 at 2:35 PM, Zachary Pincus<zachary.pincus at yale.edu>  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
>> If it doesn't work out of the box on python 3, then it should be
>> pretty simple to fix.
> I now fixed the scikits.image build process under Python 3, so this
> should be easy to try out.
> Regards
> Stéfan
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ski.diff
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110313/a5330bfe/attachment.ksh>

More information about the NumPy-Discussion mailing list