[GRASS-dev] [GRASS GIS] #3894: g.gui.animation fails to export animation with python3 error
GRASS GIS
trac at osgeo.org
Sat Aug 31 06:44:56 PDT 2019
#3894: g.gui.animation fails to export animation with python3 error
--------------------------------------+---------------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: git-releasebranch78
Keywords: g.gui.animation, python3 | CPU: Unspecified
Platform: Unspecified |
--------------------------------------+---------------------------------
When I try to export a GIF animation from G7:g.gui.animation, I get the
following error:
{{{
Traceback (most recent call last):
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/dialogs.py", line 1516, in OnExport
decorations=self.GetDecorations())
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/etc/python/grass/pydispatch/signal.py", line 229, in emit
dispatcher.send(signal=self, *args, **kwargs)
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/etc/python/grass/pydispatch/dispatcher.py", line 349, in send
**named
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/etc/python/grass/pydispatch/robustapply.py", line 60, in robustApply
return receiver(*arguments, **named)
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/controller.py", line 622, in _export
pilImages = [WxImageToPil(image) for image in images]
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/controller.py", line 622, in <listcomp>
pilImages = [WxImageToPil(image) for image in images]
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/utils.py", line 274, in WxImageToPil
image.GetData())
File "/usr/lib64/python3.7/site-packages/PIL/Image.py", line 812, in
frombytes
s = d.decode(data)
TypeError: argument 1 must be read-only bytes-like object, not bytearray
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3894>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list