I have a program, in which I need to convert a PDF to an image using Image Magick. I do that using the subprocess package:
subprocess
cmd = \'magic
Quick and easy solution:
sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xml.off
When done, you can restore the original with
sudo mv /etc/ImageMagick-6/policy.xml.off /etc/ImageMagick-6/policy.xml