raffaem / pdfsak

Utility to manipulate PDF files.
MIT License
43 stars 8 forks source link

Cannot find pdfsak after installation #4

Closed anotatta closed 2 years ago

anotatta commented 2 years ago

I try to install using pip on windows (python 3.9) and also on WSL ubuntu (python 3.8) . On both setup, the system cannot find pdfsak.

windows cmd: 'pdfsak' is not recognized as an internal or external command, operable program or batch file. WSL ubuntu: -bash: /mnt/c/Python39/Scripts/pdfsak: C:\Python39\python.exe^M: bad interpreter: No such file or directory

raffaem commented 2 years ago

I try to install using pip on windows (python 3.9) and also on WSL ubuntu (python 3.8) . On both setup, the system cannot find pdfsak.

windows cmd: 'pdfsak' is not recognized as an internal or external command, operable program or batch file. WSL ubuntu: -bash: /mnt/c/Python39/Scripts/pdfsak: C:\Python39\python.exe^M: bad interpreter: No such file or directory

Hello,

thank you very much for reporting this.

I am able to reproduce it, and a fix is on its way.

In the meantime you can use the version directly from the repository:

git clone https://github.com/raffaem/pdftools
cd pdftools

In the new pdftools folder you can find the pdfsak Python script, which you can call directly

raffaem commented 2 years ago

Hello,

windows cmd: 'pdfsak' is not recognized as an internal or external command, operable program or batch file.

This should be fixed for good now.

Can you try to run the following command on Windows Terminal and post the result, please?

pip3 install --upgrade pdfsak
pdfsak --version

WSL ubuntu: -bash: /mnt/c/Python39/Scripts/pdfsak: C:\Python39\python.exe^M: bad interpreter: No such file or directory

Next we will tackle this, which is a different error

anotatta commented 2 years ago

pdfsak is recognized now on Windows. I got a run time error which is not related to this. I'll open another issue.

raffaem commented 2 years ago

pdfsak is recognized now on Windows. I got a run time error which is not related to this. I'll open another issue.

Thanks.

Can you check on WSL, so we can close this?

anotatta commented 2 years ago

Works fine also on WSL. I'm closing this. Thx.