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

[WinError 2] The system cannot find the file specified #345

Open
JhonnyOTW opened this issue Feb 14, 2025 · 2 comments
Open

[WinError 2] The system cannot find the file specified #345

JhonnyOTW opened this issue Feb 14, 2025 · 2 comments

Comments

@JhonnyOTW
Copy link

JhonnyOTW commented Feb 14, 2025

Capturing Screenshots ---------------------------------------- 0% -:--:--Error: [WinError 2] The system cannot find the file specified
Error during generic screenshot capture: max_workers must be greater than 0

Traceback (most recent call last):
File "C:\Users\Downloads\Upload-Assistant-3.4.0\upload.py", line 319, in
asyncio.run(do_the_thing(base_dir)) # Pass the correct base_dir value here
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 195, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 725, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "C:\Users\Downloads\Upload-Assistant-3.4.0\upload.py", line 282, in do_the_thing
await process_meta(meta, base_dir)
File "C:\Users\Downloads\Upload-Assistant-3.4.0\upload.py", line 163, in process_meta
new_images, dummy_var = upload_screens(meta, meta['screens'], 1, 0, meta['screens'], [], return_dict=return_dict)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\Upload-Assistant-3.4.0\src\uploadscreens.py", line 363, in upload_screens
executor = concurrent.futures.ProcessPoolExecutor(max_workers=max_workers)
File "C:\Users\AppData\Local\Programs\Python\Python313\Lib\concurrent\futures\process.py", line 660, in init
raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0

@Audionut
Copy link
Owner

Audionut commented Feb 15, 2025

I added some more console prints for screenshot function for another issue, can you run again with -debug and the latest master and post results.

@JhonnyOTW
Copy link
Author

Processing UniteUp! for upload
Final list of frames for screenshots: [421.04604604604606, 484.31765098431765, 610.5271938605272, 736.7367367367368, 862.9462796129463, 989.1975308641976, 1115.4070737404072, 1241.6166166166167]
Found 0 existing screenshots
Capturing Screenshots ---------------------------------------- 0% -:--:--Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Capturing Screenshots ---------------------------------------- 100% 0:00:00
Error during generic screenshot capture: max_workers must be greater than 0
image globs (sorted):
[]
Traceback (most recent call last):
File "C:\Users\DDW\Downloads\Upload-Assistant-3.4.0\upload.py", line 319, in
asyncio.run(do_the_thing(base_dir)) # Pass the correct base_dir value here
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DDW\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 195, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "C:\Users\DDW\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\DDW\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 725, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "C:\Users\DDW\Downloads\Upload-Assistant-3.4.0\upload.py", line 282, in do_the_thing
await process_meta(meta, base_dir)
File "C:\Users\DDW\Downloads\Upload-Assistant-3.4.0\upload.py", line 163, in process_meta
new_images, dummy_var = upload_screens(meta, meta['screens'], 1, 0, meta['screens'], [], return_dict=return_dict)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DDW\Downloads\Upload-Assistant-3.4.0\src\uploadscreens.py", line 363, in upload_screens
executor = concurrent.futures.ProcessPoolExecutor(max_workers=max_workers)
File "C:\Users\DDW\AppData\Local\Programs\Python\Python313\Lib\concurrent\futures\process.py", line 660, in init
raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0

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

2 participants