Hi all!

I am trying to use imagemagick on Dataflow [Apache Beam Python 3.7 SDK
2.17.0], but I am facing a problem. The function works properly local, but
when I use it in Dataflow I receive this message:
File "/usr/local/lib/python3.7/site-packages/wand/image.py", line 7888, in
read raise WandRuntimeError(msg) wand.exceptions.WandRuntimeError:
MagickReadImage returns false, but did raise ImageMagick exception. This
can occurs when a delegate is missing, or returns EXIT_SUCCESS without
generating a raster.
As far as I researched, it may be because ghostscript is not installed.
Then I would like to know:

1) Is there a way to change the image that Dataflow loads for its workers?
If so, I could install the programs I need for the job

2) Can I ask Dataflow to install a program for all workers? It is not
feasible to run a " os.system(apt-get install ghostscript)" for every
single element, isn't it?

If someone has faced this problem and solved in another way, I am totally
open to suggestions.

Thank you
André Rocha Silva

Reply via email to