ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
499 stars 89 forks source link

pyscreenshot.grab() shows error #74

Closed 3developer3i closed 4 years ago

3developer3i commented 4 years ago

i am using pyinstaller with tkinter for my personal application. this code is works fine for manually, means when i run this program using command its work succefull, and as code this take snap of screen after 10 sec. but problem is when i create exe file using pyinsteller and run it gui is shown ok but after 10 seconds its open another same windows and in terminal shows error like below

Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1705, in call__ File "timer.py", line 59, in start File "timer.py", line 63, in start_timer File "timer.py", line 106, in timer File "site-packages\pyscreenshot__init.py", line 43, in grab File "site-packages\pyscreenshot\init__.py", line 29, in _grab File "site-packages\pyscreenshot\childproc.py", line 34, in childprocess_grab File "site-packages\pyscreenshot\childproc.py", line 56, in childprocess_grabpopen FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\sunil\AppData\Local\Temp\pyscreenshotzbp2dj1\screenshot.png'

please help me on this issue. thank you 👍