ucarno / ow-league-tokens

Bot that farms Overwatch League tokens by pretending you watch league streams
https://discord.gg/kkq2XY4cJM
193 stars 24 forks source link

FileNotFoundError: [WinError 2] The system cannot find the file specified #92

Closed pavrostiva closed 11 months ago

pavrostiva commented 12 months ago

I encountered the "UnboundLocalError: cannot access local variable 'browser' where it is not associated with a value" error. I attempted to resolve it using the solution provided in issue #78 . However, now I am encountering a new error when launching the bot:

[WinError 2] The system cannot find the file specified

Traceback (most recent call last):
  File "app.py", line 359, in bootstrap
  File "app.py", line 169, in start_chrome
  File "app.py", line 59, in get_driver
  File "undetected_chromedriver\__init__.py", line 421, in __init__
  File "subprocess.py", line 1026, in __init__
  File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

The portable Chrome version is 114.0.5735.199, and this is my config.json file:

image

omarsaad98 commented 11 months ago

For some reason, the app isn't able to handle paths with spaces in them. Try moving the chrome app to a location without spaces in it.

pavrostiva commented 11 months ago

For some reason, the app isn't able to handle paths with spaces in them. Try moving the chrome app to a location without spaces in it.

Thank you for your response. After installing portable Chrome (version 114.0.5735.199) in a location without spaces in the path and editing the config file again (pointing to chrome.exe in the chrome-bin folder), the bot is crashing on launch with the following error code:

Traceback (most recent call last):
File "main.py", line 72, in <module>
Fila "menu.py", line 100, in menu
File "utils.py", line 55, in load_config
File "json__init__.py", line 346, in loads
File "jsonldecoder.py", line 337, in decode
File "jsonidecoder.py", line 353, in raw_decode json.decoder.JSONDecodeError: Invalid \escape: line 12 column 27 (char 235)
[14056] Failed to execute script 'main' due to unhandled exception!
omarsaad98 commented 11 months ago

Fix yo json, bud. According to the docs, you're supposed to use forward slashes in the path

pavrostiva commented 11 months ago

Fix yo json, bud. According to the docs, you're supposed to use forward slashes in the path

Thanks, man! I appreciate the reminder. I forgot about that, but now the bot is finally working as expected