after today's update, python3-selenium can't find chromedriver even though it's in /usr/bin

Bug #2032687 reported by Jonathan Kamens
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-selenium (Debian)
Fix Released
Unknown
python-selenium (Ubuntu)
New
Undecided
Unassigned

Bug Description

After today's update to python3-selenium:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/selenium/webdriver/common/driver_finder.py", line 38, in get_path
    path = SeleniumManager().driver_location(options) if path is None else path
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/selenium/webdriver/common/selenium_manager.py", line 73, in driver_location
    args = [str(self.get_binary()), "--browser", browser]
                ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/selenium/webdriver/common/selenium_manager.py", line 57, in get_binary
    raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")
selenium.common.exceptions.WebDriverException: Message: Unable to obtain working Selenium Manager binary; /usr/lib/python3/dist-packages/selenium/webdriver/common/linux/selenium-manager

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jik/src/scripts/bwsc-usage.py", line 129, in <module>
    main()
  File "/home/jik/src/scripts/bwsc-usage.py", line 103, in main
    driver = webdriver.Chrome(options=options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
    super().__init__(
  File "/usr/lib/python3/dist-packages/selenium/webdriver/chromium/webdriver.py", line 51, in __init__
    self.service.path = DriverFinder.get_path(self.service, options)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/selenium/webdriver/common/driver_finder.py", line 41, in get_path
    raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: python3-selenium 4.11.2+dfsg-1
ProcVersionSignature: Ubuntu 6.3.0-7.7-generic 6.3.5
Uname: Linux 6.3.0-7-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Aug 22 14:46:06 2023
InstallationDate: Installed on 2019-01-02 (1693 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
PackageArchitecture: all
SourcePackage: python-selenium
UpgradeStatus: Upgraded to mantic on 2023-05-20 (94 days ago)

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Jonathan Kamens (jik) wrote :

I'm not sure but I think it appears that the Selenium Python library code is looking for a program called "selenium-manager" which doesn't exist?

Revision history for this message
Jonathan Kamens (jik) wrote :

Note that it isn't working for firefox either, not just for chrome.

Jonathan Kamens (jik)
tags: added: regression-release
Revision history for this message
Jonathan Kamens (jik) wrote :

This is being discussed over at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051368, where the maintainer of the python3-selenium package has for some reason that is inexplicable to me decided not to include the selenium-manager executable in the deb even though it's distributed in the PyPI package by the vendor and they've clearly and explicitly started that it's supposed to be distributed with the Python driver.

Changed in python-selenium (Debian):
status: Unknown → New
Changed in python-selenium (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.