AlJohri / docx2pdf

MIT License
497 stars 94 forks source link

Error with Windowhandler in Task Scheduler #63

Open FabianSer opened 2 years ago

FabianSer commented 2 years ago

I have a script that converts my files to PDFs. As a framework I use pipenv, which is automatically generated via a batch file. Manually everything works. If I call the batch file via the Windows Scheduler, an error of the WindowHandler of System.Windows.Forms occurs. The error occurs already after the first document.

AlJohri commented 2 years ago

Can you please include the full error and/or a screenshot? Is there a stacktrace?

I'm not sure how to debug this issue further but if you post more information, someone can potentially help.

FabianSer commented 2 years ago

Sorry for german screenshots:

Thats the error while converting the first File with the scheduled task. image

The terminal output: image

While running the script without the schedule, it works.

eabase commented 2 years ago

Maybe try running your script with more debugging?

python.exe -qu -W default -X tracemalloc -X utf8=1 .\xxxx.py