Backend2121 / SimpleGamesDownloader

Python script designed to search and fetch direct download links for games roms
97 stars 5 forks source link

ChromeDriver needs to be in PATH #11

Closed LokeYourC3PH closed 2 years ago

LokeYourC3PH commented 2 years ago

...except that it already is. And yet I get this message:

Traceback (most recent call last): File "gui.py", line 328, in search modules.append(imported.module()) File "D:\Toolkit\BOTW MODDING\SGD\Modules\HexRom.py", line 86, in init self.browser = Chrome(chrome_options=self.options, executable_path=os.getcwd() + "/chromedriver.exe") File "C:\Users\deadk\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init self.service.start() File "C:\Users\deadk\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\common\service.py", line 81, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

I tried putting it into the directory itself from the download, doesn't work. I tried adding the directory to which I installed ChromeDriver itself to PATH in the System Settings for Windows 11, doesn't work.

Curious as to what this could be.

LokeYourC3PH commented 2 years ago

Oh yeah and actually, adding the "chromedriver.exe" into the directory of SGD, it DELETES the .exe upon startup for no reason. What???

LokeYourC3PH commented 2 years ago

Also getting the following when trying to let it automatically download ChromeDriver:

Traceback (most recent call last): File "C:\Program Files\Python38\lib\logging__init.py", line 1085, in emit msg = self.format(record) File "C:\Program Files\Python38\lib\logging\init.py", line 929, in format return fmt.format(record) File "C:\Program Files\Python38\lib\logging\init.py", line 668, in format record.message = record.getMessage() File "C:\Program Files\Python38\lib\logging\init__.py", line 373, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "D:\Toolkit\SGD\Modules\Extras\chromedriverGetter.py", line 56, in run self.log.info("An error occurred during the extraction of ChromeDriver.exe: {0}", e) Message: 'An error occurred during the extraction of ChromeDriver.exe: {0}' Arguments: (BadZipFile('File is not a zip file'),)

LokeYourC3PH commented 2 years ago

Issue closed.

I fixed all issues with this. If you have any similar problems, then mark the SGD folder, press Shift+DEL on your Keyboard, press ENTER. Then open Firefox or Brave, install uBlock Origin, go to NSW2U, and use the search function to find your game immediately! Never thought it could be so easy 😂

1/10 would Shift+DEL abandonware again