getpagecount subprocess error
hi, with python 39 or 310 on win10 I got the following issue I dont find my error during installation
MikTex installed
pdfsak.bat -if examples\input\article1.pdf
Traceback (most recent call last):
File "c:\Users\Olivier\pdfsak\pdfsak", line 1498, in
Python: 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] PDFsak version: 1.3.0 pdflatex OK ( 4.10 >= 1.40.17): MiKTeX-pdfTeX 4.10 (MiKTeX 22.3) Checking LaTeX package 'grffile' OK: 2019/11/11 v2.1 Checking LaTeX package 'pdfpages' OK: 2022/05/22 v0.5v Checking LaTeX package 'lastpage' OK: 2021/09/03 v1.2n Checking LaTeX package 'fancyhdr' OK: 2022/05/18 v4.0.3 Checking LaTeX package 'geometry' OK: 2020/01/02 v5.9 Checking LaTeX package 'calc' OK: 2017/05/25 v4.3 Checking LaTeX package 'graphicx' OK: 2021/09/16 v1.2d Checking LaTeX package 'transparent' OK: 2019/11/29 v1.4 Checking LaTeX package 'xparse' OK: 2022-06-07 L3 Checking LaTeX package 'letltxmacro' OK: 2019/12/03 v1.6 Checking LaTeX package 'changepage' OK: 2009/10/20 v1.0c Checking LaTeX package 'textpos' OK: 2020/09/26 v1.10 ImageMagick OK: Version: ImageMagick 7.1.0-39 Q16-HDRI x64 21a5642:20220620 Potrace NOT FOUND mkbitmap NOT FOUND Ghostscript OK: 9.56.1
Hello,
this is very strange.
It looks like it doesn't find GhostScript in the first case, while it does find it in the second case (see "Ghostscript OK: 9.56.1").
Are you sure those two commands are run from the same exact environment?
What's the output of gswin64c --version from the command line?
Closing as the requested information has not been provided.
Please re-open it if it still happens.
Sorry, I did not have time to test your suggestion, Thank you very much for your feedback