Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyscreenshot.grab() shows error #74

Closed
3developer3i opened this issue Apr 2, 2020 · 0 comments
Closed

pyscreenshot.grab() shows error #74

3developer3i opened this issue Apr 2, 2020 · 0 comments

Comments

@3developer3i
Copy link

3developer3i commented Apr 2, 2020

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_grab_popen
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 👍

@3developer3i 3developer3i changed the title Pyinstaller.grab() shows error pyscreenshot.grab() shows error Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant