GNU bug report logs - #65633
python-selenium raises a WebDriverException because driver is not found in PATH

Previous Next

Package: guix;

Reported by: "jgart" <jgart <at> dismail.de>

Date: Wed, 30 Aug 2023 18:12:02 UTC

Severity: normal

To reply to this bug, email your comments to 65633 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#65633; Package guix. (Wed, 30 Aug 2023 18:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "jgart" <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 30 Aug 2023 18:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "jgart" <jgart <at> dismail.de>
To: bug-guix <at> gnu.org
Cc: lars <at> 6xq.net
Subject: python-selenium raises a WebDriverException because driver is not
 found in PATH
Date: Wed, 30 Aug 2023 18:10:57 +0000
Hi Guixers,

I'm adding this as a future TODO for myself or anyone else that would like to work on it.

python-selenium fails with the following when webdriver.Chrome is called:

driver = webdriver.Chrome('./chromedriver') 
  File "/gnu/store/hz5k0k0lggsn6j2ij49xriawbwrq988n-profile/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/gnu/store/hz5k0k0lggsn6j2ij49xriawbwrq988n-profile/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 81, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

See what the nixpkgs package did here:

https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/python-modules/selenium/default.nix#L29

Related references:

https://github.com/SeleniumHQ/selenium/#running-browser-tests-on-linux

best,

jgart




This bug report was last modified 1 year and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.