Failures with ghostscript 10.x

On a debian stable (bookworm) system, with ghostscript 10.0.0, if I try something like the example in the readme I get an invalid file:

import ghostscript
args = ["ps2pdf", "-dNOPAUSE", "-dBATCH", "-dSAFER", "-sDEVICE=pdfwrite", "-sOutputFile=test.pdf", "-f",  "examples/test.ps"]
ghostscript.Ghostscript(*args)

I can see the regular ghostscript output (copyright/license), but then the resulting test.pdf can't be opened.

Here you can also see the full test suite run on a bookworm system, with more details.

https://salsa.debian.org/python-team/packages/python-ghostscript/-/pipelines/566823

Please let me know if you need me to try anything else

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information