schorschii / Simple-Signer

Sign and certify PDF files on Linux with optional visual stamp using a .p12/.pfx certificate file
GNU General Public License v3.0
43 stars 8 forks source link

In windows doesnt draw stamps #17

Closed BMValeev closed 3 months ago

BMValeev commented 3 months ago

If I use draw stamps it doesnt fails in [AttributeError: module 'PIL.ImageQt' has no attribute 'ImageQt'] Inside python it can use it

BMValeev commented 3 months ago

Upd. If I run as py file, it works, seems packager configures incorrectly. Not sure how to repare that

schorschii commented 3 months ago

Edit: just tested it with the old .exe from the last Windows release 1.5.0 - it's working.

Please elaborate which version you used, and if you compiled it by yourself or if you used an .exe from the Github releases...

Inside python it can use it

What do you mean with that??

BMValeev commented 3 months ago

Edit: just tested it with the old .exe from the last Windows release 1.5.0 - it's working.

Please elaborate which version you used, and if you compiled it by yourself or if you used an .exe from the Github releases...

Inside python it can use it

What do you mean with that??

I can run .py file in cmd. Everything is ok I use python 3.11.9 pyinstaller 6.6.0 I compiled by myself as proposed in README.

BMValeev commented 3 months ago

image Still not wotk 1.5.0 UPD. github releases version is working. seems problem in python diff versions?

schorschii commented 3 months ago

The README says:

Install the module with pip install ., then you can build the executable.

pyinstaller.exe simple-signer.windows.spec

Why are you using pyinstaller -F --noconsole simple-signer.py --add-data ... in your screenshot?

Please try again with the modified requirements.txt from the current master branch. I also clarified the build instructions in README.md to use a venv.

Compiling with PyInstaller requires to compile the *.qm language files before with the lrelease tool from Qt, but I have never done that on Windows. You may just remove the reference from the .spec file to drop the German translation.

schorschii commented 3 months ago

Closed due to inactivity...