Package Details: python-selenium 4.27.1-2

Git Clone URL: https://aur.archlinux.org/python-selenium.git (read-only, click to copy)
Package Base: python-selenium
Description: Python language bindings for Selenium WebDriver
Upstream URL: https://github.com/SeleniumHQ/selenium
Licenses: Apache-2.0
Submitter: jelly
Maintainer: carsme (txtsd)
Last Packager: txtsd
Votes: 32
Popularity: 1.52
First Submitted: 2022-01-23 14:41 (UTC)
Last Updated: 2024-11-28 04:24 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

Shalrath commented on 2024-12-25 19:23 (UTC)

ModuleNotFoundError: No module named 'selenium'

Workaround: downgrade to 4.24.0

Weishaupt commented on 2024-12-12 12:04 (UTC) (edited on 2024-12-12 12:05 (UTC) by Weishaupt)

@txtsd with 4.27.1-2 I still get the following error:

FileNotFoundError: [Errno 2] File or Directory not found: '/usr/lib/python3.12/site-packages/selenium/webdriver/remote/getAttribute.js'

Downgrading to 4.22.0-1 fixes the issue. I think a temporary fix is described by this comment.

txtsd commented on 2024-11-28 04:35 (UTC)

Thanks @bpierre! I added you as a contributor.

bpierre commented on 2024-11-28 00:08 (UTC)

Here's the fix:

 PKGBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git i/PKGBUILD w/PKGBUILD
index b863b31..a2acbcb 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -42,6 +42,8 @@ prepare() {
   cd "${_archive}/src"
   export RUSTUP_TOOLCHAIN=stable
   cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+  # Ensure `selenium.webdriver.common.fedcm` gets packaged in.
+  touch ../selenium/webdriver/common/fedcm/__init__.py
 }

 build() {

cprn commented on 2024-11-27 16:29 (UTC) (edited on 2024-11-27 16:51 (UTC) by cprn)

I have exactly the same problem as @jgodden. Update broke the package. Again.

edit: as a temporary workaround I switched to python-selenium-bin, there's no problem there.

txtsd commented on 2024-11-27 14:59 (UTC)

No idea how to fix this one, sorry :(

jgodden commented on 2024-11-27 14:16 (UTC) (edited on 2024-11-27 14:17 (UTC) by jgodden)

Unfortunately today's new build python-selenium 4.27.1-1 apparently leaves out a module for me:


  File "/home/graben/projects/python/sk_noadblock.py", line 81, in <module>
    from selenium.webdriver.firefox.service import Service
  File "/usr/lib/python3.12/site-packages/selenium/webdriver/__init__.py", line 20, in <module>
    from .chrome.webdriver import WebDriver as Chrome  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/selenium/webdriver/chrome/  webdriver.py", line 18, in <module>
    from selenium.webdriver.chromium.webdriver import ChromiumDriver
  File "/usr/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 22, in <module>  
    from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
  File "/usr/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 57, in <module>
    from ..common.fedcm.dialog import Dialog
ModuleNotFoundError: No module named 'selenium.webdriver.common.fedcm'

Thank you for your efforts nonetheless!

txtsd commented on 2024-11-27 05:36 (UTC)

I pushed an update and switched to pypi source. Please let me know if the js files are working as intended, and if anything else is broken.

kmacleod commented on 2024-11-20 14:25 (UTC)

I just started using selenium, so I'm not sure. The problem is the same as @cprn says here: https://aur.archlinux.org/packages/python-selenium#comment-989588

The PKGBUILD should probably copy those js files manually for now. It seems like an upstream issue to me though.

txtsd commented on 2024-11-20 00:12 (UTC)

@kmacleod Is this something that was working before and isn't since the latest update? Or has it been something that needs rectifying since before?