-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
ChromeDriverManager picking Incorrect File (THIRD_PARTY_NOTICES.chromedriver) Instead of chromedriver.exe to install chromedriver for chrome version(127.0.6533.72) #670
Comments
on this issue #665 have this code and resolved the problem for me
|
same issue- this worked for me:
|
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions.
same issue |
This Issue was resolved by #666 and released as |
This issue still exists on 4.0.2 on Ubuntu. I have updated webdriver_manager to 4.0.2 and removed all files under /root/.wdm/drivers/chromedriver/linux64/ but still got the same issue. OSError: [Errno 8] Exec format error: '/root/.wdm/drivers/chromedriver/linux64/129.0.6668.70/chromedriver-linux64/THIRD_PARTY_NOTICES.chromedriver' |
@haoyang324 I was able to fix this in 4.0.2. I believe your issue is that you need to delete the file |
Thank you @davidmartos96, I do have cache with THIRD_PARTY_NOTICES. However, even after deleting the cache, it gets regenerated with the same content. To fix it, I have to manually remove the THIRD_PARTY_NOTICES from binary_path in the below drivers.json. Anyway it works well now!
|
Weird. I know you have the code below but the cache always reverted to the one with THIRD_PARTY_NOTICES. |
I am encountering an issue with the ChromeDriverManager when trying to install chromedriver for Chrome latest version 127.0.6533.72. The ChromeDriverManager is incorrectly picking up the THIRD_PARTY_NOTICES.chromedriver file instead of the chromedriver.exe file. This issue does not occur with older versions of Chrome.
Logs:
2024-07-26 11:00:17,198 - INFO - Driver downloading response is 200
2024-07-26 11:00:17,198 - INFO - Driver downloading response is 200
2024-07-26 11:00:17,276 - INFO - Get LATEST chromedriver version for google-chrome
2024-07-26 11:00:17,276 - INFO - Get LATEST chromedriver version for google-chrome
2024-07-26 11:00:17,276 - DEBUG - Starting new HTTPS connection (1): googlechromelabs.github.io:443
2024-07-26 11:00:17,276 - DEBUG - Starting new HTTPS connection (1): googlechromelabs.github.io:443
2024-07-26 11:00:17,307 - DEBUG - https://googlechromelabs.github.io:443 "GET /chrome-for-testing/latest-patch-versions-per-build.json HTTP/1.1" 200 6461
2024-07-26 11:00:17,307 - DEBUG - https://googlechromelabs.github.io:443 "GET /chrome-for-testing/latest-patch-versions-per-build.json HTTP/1.1" 200 6461
2024-07-26 11:00:17,635 - INFO - Driver has been saved in cache [C:\Users\deavalid.wdm\drivers\chromedriver\win64\127.0.6533.72]
2024-07-26 11:00:17,635 - INFO - Driver has been saved in cache [C:\Users\deavalid.wdm\drivers\chromedriver\win64\127.0.6533.72]
2024-07-26 11:00:17,651 - DEBUG - Skipping Selenium Manager; path to chrome driver specified in Service class: C:\Users\deavalid.wdm\drivers\chromedriver\win64\127.0.6533.72\chromedriver-win32/THIRD_PARTY_NOTICES.chromedriver
2024-07-26 11:00:17,651 - DEBUG - Skipping Selenium Manager; path to chrome driver specified in Service class: C:\Users\deavalid.wdm\drivers\chromedriver\win64\127.0.6533.72\chromedriver-win32/THIRD_PARTY_NOTICES.chromedriver
2024-07-26 11:00:17,682 - ERROR - An error occurred: cannot access local variable 'authdriver' where it is not associated with a value
2024-07-26 11:00:17,682 - ERROR - An error occurred: cannot access local variable 'authdriver' where it is not associated with a value
2024-07-26 11:00:17,776 - ERROR - Traceback (most recent call last):
File "D:\automate\src\EmailUtil.py", line 143, in get_access_token_from_GraphAPI
authdriver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\automate\v_311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "D:\automate\v_311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 55, in init
self.service.start()
File "D:\automate\v_311\Lib\site-packages\selenium\webdriver\common\service.py", line 98, in start
self._start_process(self._path)
File "D:\automate\v_311\Lib\site-packages\selenium\webdriver\common\service.py", line 208, in _start_process
self.process = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python311\Lib\subprocess.py", line 1493, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application
The text was updated successfully, but these errors were encountered: