plugin freeimage vs gdal on 0.5dev

Stéfan van der Walt stefan at sun.ac.za
Thu Dec 22 12:33:36 EST 2011


Hi JP

It seems like there is something wrong with your numpy.  Could you
please execute the following:

import numpy as np
print np.__version__
print np

import numpy.compat
print numpy.compat

Thanks
Stéfan

On Thu, Dec 22, 2011 at 5:51 AM, jip <jeanpatrick.pommier at gmail.com> wrote:
> Dear all,
> If I try to load a 12bits TIF image:
> sk.io.use_plugin('freeimage', 'imread')
> sk.io.use_plugin('matplotlib', 'imshow')
> dapi=io.imread(path+CC+im)
>
> I have the following message:
> ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
> Traceback (most recent call last):
>  File "/home/claire/Applications/ProjetPython/projet particule et
> objet/Nuclei/QuantSpots-skimage.py", line 49, in <module>
>    sk.io.use_plugin('freeimage', 'imread')
>  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
> py2.6-linux-i686.egg/skimage/io/_plugins/plugin.py", line 128, in use
>    _load(name)
>  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
> py2.6-linux-i686.egg/skimage/io/_plugins/plugin.py", line 190, in
> _load
>    fromlist=[modname])
>  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
> py2.6-linux-i686.egg/skimage/io/_plugins/freeimage_plugin.py", line 6,
> in <module>
>    from numpy.compat import asbytes
> ImportError: No module named compat
>
> What is that compat module? I have numpy 1.30 installed.
>
> Anyway,I can load the image with gdal  (sk.io.use_plugin('gdal',
> 'imread') with some warnings:
> ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
> Warning 1: TIFFReadDirectory:Unknown field with tag 34959 (0x888f)
> encountered
> Warning 1: TIFFReadDirectory:Unknown field with tag 34960 (0x8890)
> encountered
> Warning 1: TIFFReadDirectory:Unknown field with tag 34959 (0x888f)
> encountered
> Warning 1: TIFFReadDirectory:Unknown field with tag 34960 (0x8890)
> encountered
>
> best regards
> Jean-Patrick



More information about the scikit-image mailing list