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

Ghostscript execution fails on Windows 10 #68

Open
r4ph43l-GitHub opened this issue Oct 3, 2017 · 1 comment
Open

Ghostscript execution fails on Windows 10 #68

r4ph43l-GitHub opened this issue Oct 3, 2017 · 1 comment

Comments

@r4ph43l-GitHub
Copy link

Just encountered an issue running pypdfocr on Windows 10.

Ghostscript, being installed on Windows 10 by default into "C:\Program Files\gs\gs9.21\bin\gswin64c.exe" fails execution using subprocess.check_output command in pypdfocr_gs.PyGs._run_gs.

The execution on a cmd line of the complete same command works.

@r4ph43l-GitHub
Copy link
Author

r4ph43l-GitHub commented Oct 5, 2017

Seems not to be the first appearance of this issue:
https://stackoverflow.com/questions/30014607/command-program-not-executing-from-python-subprocess

unfortunately neither putting ghostscript binary directory inside path environment nor using string escaping works. After putting gs-bin directory into the path environment, the error I get is
"The syntax for the filename, directoryname or drive description is wrong"
"The filename, directory name, or volume label syntax is incorrect"
resulting in an
"ERROR: Ghostscript execution failed"

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

1 participant