[GRASS-dev] [GRASS GIS] #2177: g.gui.animation fail to create gif
GRASS GIS
trac at osgeo.org
Fri Feb 7 13:36:20 PST 2014
#2177: g.gui.animation fail to create gif
-----------------------------+----------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: g.gui.animation | Platform: Unspecified
Cpu: Unspecified |
-----------------------------+----------------------------------------------
Comment(by neteler):
I tried on Fedora 20/64bit using the Pillow fix r:
It starts the GIF export, a file of 13 bytes is generated:
{{{
file scan2013.gif
scan2013.gif: GIF image data, version 89a, 800 x 497
}}}
but it crashes with
{{{
must be string or buffer, not None
Reason: must be string or buffer, not None
Traceback (most recent call last):
File "/home/neteler/software/grass70/dist.x86_64-unknown-linux-
gnu/etc/gui/wxpython/animation/controller.py", line 554, in _export
duration=self.timeTick / float(1000), repeat=True)
File "/home/neteler/software/grass70/dist.x86_64-unknown-linux-
gnu/etc/python/grass/imaging/images2gif.py", line 575, in writeGif
gifWriter.writeGifToFile(fp, images, duration, loops, xy, dispose)
File "/home/neteler/software/grass70/dist.x86_64-unknown-linux-
gnu/etc/python/grass/imaging/images2gif.py", line 436, in writeGifToFile
fp.write(globalPalette)
TypeError: must be string or buffer, not None
}}}
The same error as originally reported.
AFAIK Luca uses PIL on Ubuntu while I use python-pillow 2.2.1 on Fedora.
Since PIL is no longer developed, Fedora switched to Pillow.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2177#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list