Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gm identify failed when using Gemini #75

Open
ismell opened this issue Feb 19, 2025 · 2 comments
Open

gm identify failed when using Gemini #75

ismell opened this issue Feb 19, 2025 · 2 comments

Comments

@ismell
Copy link

ismell commented Feb 19, 2025

I just tried the latest commit running with podman compose and I got the following error when uploading a document:

Error: Command failed: execvp failed, errno = 2 (No such file or directory) gm identify: "gs" "-sstdout=%stderr" "-q" "-dBATCH" "-dSAFER" "-dMaxBitmap=50000000" "-dNOPAUSE" "-sDEVICE=ppmraw" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-r72x72" "-sOutputFile=/tmp/gmn1ub2S" "--" "/tmp/gmxB0aXC" "-c" "quit". gm identify: Postscript delegate failed (/tmp/gmWHj01v). gm identify: Request did not return an image.

Is there a dependency missing in the Dockerfile?

@sstratoti
Copy link

I think I resolved this by adding

RUN apk add -U ghostscript

to my Containerfile and rebuilding.

@DanielHHowell
Copy link

@sstratoti this worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants