[GRASS-dev] [GRASS GIS] #3894: g.gui.animation fails to export animation with python3 error

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords: g.gui.animation, python3
       CPU: Unspecified | Platform: Unspecified
--------------------------+--------------------------------------

Comment (by veroandreo):

I recompiled my 78 rel branch installation yesterday and I still get the
same error, was this backported??

I cannot test in dev because the new image collections broke the temporal
database and I have to rebuild it.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3894#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords: g.gui.animation, python3
       CPU: Unspecified | Platform: Unspecified
--------------------------+--------------------------------------

Comment (by neteler):

I have backported it just now to relr78.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3894#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3894: g.gui.animation fails to export animation with python3 error
--------------------------+--------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: git-releasebranch78
Resolution: fixed | Keywords: g.gui.animation, python3
       CPU: Unspecified | Platform: Unspecified
--------------------------+--------------------------------------
Changes (by veroandreo):

* status: new => closed
* resolution: => fixed

Comment:

After the backport, I do not get this error anymore in 78 rel branch.
Closing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3894#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>