IMDB-Trakt-Syncer: Script failed with "Chrome For Testing" tied to ChromeDriver
Is there already an issue for your problem?
- I have checked older issues, open and closed
Bug Description
This is an extension of my comment over here, the following issue arose after doing what I wrote there, the script then said IMDB was “not logged in”, so I followed the instructions on issue 2 to manually login. After doing that I ran the script again, and the below happened.
C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer>IMDBTraktSyncer
Starting IMDBTraktSyncer....
Your settings are saved at:
C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer
Starting WebDriver...
--- ERROR ---
An error occurred while running the script.
Please submit the error to GitHub with the following information:
--------------------------------------------------
Submit the error here: https://github.com/RileyXX/IMDB-Trakt-Syncer/issues/new?template=bug_report.yml
--------------------------------------------------
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\IMDBTraktSyncer.py", line 104, in main
sign_in_link.click()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 94, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute
return self._parent.execute(command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 384, in execute
self.error_handler.check_response(response)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: disconnected: Unable to receive message from renderer
(failed to check if window was closed: disconnected: not connected to DevTools)
(Session info: chrome=131.0.6778.108)
Stacktrace:
GetHandleVerifier [0x003E34A3+25059]
(No symbol) [0x0036CEA4]
(No symbol) [0x0024BEC3]
(No symbol) [0x0023D773]
(No symbol) [0x0023D481]
(No symbol) [0x0023B91B]
(No symbol) [0x0023BF8D]
(No symbol) [0x002512A2]
(No symbol) [0x002538EA]
(No symbol) [0x00253967]
(No symbol) [0x0029396E]
(No symbol) [0x00291DAD]
(No symbol) [0x002910AF]
(No symbol) [0x00286169]
(No symbol) [0x002B1EFC]
(No symbol) [0x00285A24]
(No symbol) [0x002B2194]
(No symbol) [0x002CB51E]
(No symbol) [0x002B1C96]
(No symbol) [0x00283FAC]
(No symbol) [0x00284F3D]
GetHandleVerifier [0x006D5613+3113811]
GetHandleVerifier [0x006EA2DA+3199002]
GetHandleVerifier [0x006E2AB2+3168242]
GetHandleVerifier [0x00483310+680016]
(No symbol) [0x003757ED]
(No symbol) [0x00372A98]
(No symbol) [0x00372C35]
(No symbol) [0x00365890]
BaseThreadInitThunk [0x75FC5D49+25]
RtlInitializeExceptionChain [0x7787CEBB+107]
RtlGetAppContainerNamedObjectPath [0x7787CE41+561]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Scripts\IMDBTraktSyncer.exe\__main__.py", line 7, in <module>
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\IMDBTraktSyncer.py", line 780, in main
driver.close()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 495, in close
self.execute(Command.CLOSE)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 384, in execute
self.error_handler.check_response(response)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: disconnected: not connected to DevTools
(failed to check if window was closed: disconnected: not connected to DevTools)
(Session info: chrome=131.0.6778.108)
Stacktrace:
GetHandleVerifier [0x003E34A3+25059]
(No symbol) [0x0036CEA4]
(No symbol) [0x0024BEC3]
(No symbol) [0x0023B21E]
(No symbol) [0x0023BF8D]
(No symbol) [0x0024C3F2]
(No symbol) [0x0022D555]
(No symbol) [0x002BDAEE]
(No symbol) [0x002B1EC3]
(No symbol) [0x00283FAC]
(No symbol) [0x00284F3D]
GetHandleVerifier [0x006D5613+3113811]
GetHandleVerifier [0x006EA2DA+3199002]
GetHandleVerifier [0x006E2AB2+3168242]
GetHandleVerifier [0x00483310+680016]
(No symbol) [0x003757ED]
(No symbol) [0x00372A98]
(No symbol) [0x00372C35]
(No symbol) [0x00365890]
BaseThreadInitThunk [0x75FC5D49+25]
RtlInitializeExceptionChain [0x7787CEBB+107]
RtlGetAppContainerNamedObjectPath [0x7787CE41+561]
Environment
OS: Windows 11 Python: 3.12 Chrome For Testing & ChromeDriver (both): 131.0.6778.108
Screenshots
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 37 (15 by maintainers)
Thanks for the feedback guys. It really helps when trying to reproduce and troubleshoot these errors.
There’s a few new changes in 3.4.2 which addresses handling the chrome/chromedriver downloads.
I’m curious to know if it fixes the issue you were having @bequbed.
Updating:
After updating run the following to clear the chrome/chromedriver cache:
I made a few more improvements with driver handling in v3.3.1.
Give it a try and see if there’s any change.
If you’re still having issues, see if you can provide some more detailed logs from log.txt in your install directory. That might help me narrow down where the problem is, and if there is any patterns to look for if it’s breaking in the same place.
Another thing you could try in the meantime, download the latest stable version of chrome for testing browser and chromedriver. Then replace the ones downloaded in your IMDBTraktSyncer install directory. In case the .zip extraction process is being corrupted somehow.
Some more things you can try to fix the wrong driver download:
Another project might have set the selenium browser/chromedriver version in your systems environment labels. Try running these 2 lines in command prompt to reset the environment labels for selenium:
Next, in command prompt cd to the selenium-manager.exe directory (replace username and python version fields):
Once you’re there, in command prompt run this line to see if it gives the path to a chrome install you don’t know about:
Next run to clear your selenium cache and config files (if set by another program):
Then run the script again and see if that helps.