plugin freeimage vs gdal on 0.5dev

jip jeanpatrick.pommier at gmail.com
Thu Dec 22 16:00:29 EST 2011


thanks,
JP

On 22 déc, 20:18, Nelle Varoquaux <nelle.varoqu... at gmail.com> wrote:
> Hi JP,
>
> You need to upgrade numpy to at least 1.4
>
> Thanks,
> N
>
> On 22 December 2011 20:10, jip <jeanpatrick.pomm... at gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Stéfan,
> > my numpy install seems to be broken:
>
> > In [1]: import numpy as np
>
> > In [2]: print np.__version__
> > 1.3.0
>
> > In [3]: import numpy.compat
> > ---------------------------------------------------------------------------
> > ImportError                               Traceback (most recent call
> > last)
> > /home/claire/Applications/ProjetPython/<ipython-input-3-2f9167a96fc7>
> > in <module>()
> > ----> 1 import numpy.compat
>
> > ImportError: No module named compat
>
> > Thanks
> > JP
>
> > On 22 déc, 18:33, Stéfan van der Walt <ste... at sun.ac.za> wrote:
> > > 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.pomm... 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