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

Error: This version of ChromeDriver only supports Chrome version (xxx) #16

Open
RileyXX opened this issue May 8, 2023 · 2 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@RileyXX
Copy link
Owner

RileyXX commented May 8, 2023

Problem:

Error wrong chromedriver version installed.

Solution 1:

  1. Uninstall chromedriver-py by running python -m pip uninstall chromedriver-py in command line.
  2. Run the script again. It should download the required version. If you encounter the same error, proceed to solution 2.

Solution 2:

  1. Uninstall chromedriver-py by running python -m pip uninstall chromedriver-py in command line.
  2. Determine your current Chrome browser version:
    • Open your Chrome browser and go to chrome://settings/help.
    • Alternatively, go to Settings > About Chrome in your Chrome browser.
    • Check the version number (e.g., 112... or 111, etc.).
  3. Visit the chromedriver-py releases page and find the latest version that matches the prefix your Chrome version. Copy the corresponding version number. For example, if you are using Chrome version 112..., you would need version 112.0.5615.49.
  4. Install the correct chromedriver version by running python -m pip install chromedriver-py==VERSION_NUMBER in command line. Replace VERSION_NUMBER with the version you copied in step 3. Press enter to install.
  5. Run the script again. It should now function properly.
@RileyXX RileyXX added the documentation Improvements or additions to documentation label May 8, 2023
@RileyXX RileyXX pinned this issue May 19, 2023
@RileyXX RileyXX unpinned this issue May 19, 2023
@profucius
Copy link

profucius commented Dec 16, 2024

I am struggling to use the IMDB-Trakt-Syncer script without having Chrome installed. I fit a scenario where I cannot install Chrome on this PC, and therefore the ChromeDriver "cannot find Chrome binary".

I can however have "Chrome for testing" extracted as a portable/zip, from a site such as this. Would it be possible to point the ChromeDriver to this binary, and if so how does one do that?


Update: As soon as I posted this, I realized what I must do. I extracted the Chrome For Testing binary zip, then made a symbolic link to it (although moving the folder would work exactly the same) into C:\Users\%USERNAME%\AppData\Local\Google\Chrome\ and renamed the folder to Application so that the chrome.exe would exist directly within. Then I ran the IMDB-Trakt-Syncer script and it found/used the extract Chrome For Testing binary.

@RileyXX
Copy link
Owner Author

RileyXX commented Dec 16, 2024

@profucius Nice yeah that's a clever way to do it.

You could also modify IMDBTraktSyncer.py in a text editor and replace the line service = webdriver.chrome.service.Service(ChromeDriverManager().install(), popen_kw=popen_kw) with service = webdriver.chrome.service.Service("path/to/chrome.exe"). Only problem with this method is you would have to change this every time you update the script, unless you made an auto updated fork of this project. So your method is probably the better solution. Although one other downside is you may need to manually update Chrome in the future as new features come out and old features are deprecated. But it should run fine on whatever version you have for the foreseeable future.

At some point I may add functionality that doesn't require Chrome install, and having the script download portable Chrome from that link you mentioned. Only issue with this is, the downloaded portable files wouldn't uninstall using the traditional uninstall method, python -m pip uninstall IMDBTraktSyncer. So a custom uninstall method would need to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants