Package Details: python-selenium 4.28.1-1

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: 36
Popularity: 4.08
First Submitted: 2022-01-23 14:41 (UTC)
Last Updated: 2025-02-03 13:21 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

txtsd commented on 2025-02-03 13:21 (UTC)

Thanks @kbipinkumar!

I incorporated your patches and also added you as a contributor.

kbipinkumar commented on 2025-02-01 15:38 (UTC)

apparently the error was introduced in the upstream by this pull request. i have attempted to revise the PKGBUILD with fixes as suggested here

the revised PKGBUILD can be found here. i am able to build the package with revised PKGBUILD in clean chroot

txtsd commented on 2025-02-01 13:58 (UTC)

@kbipinkumar Any ideas on how to fix it?

kbipinkumar commented on 2025-02-01 07:24 (UTC)

building with version 4.28.1 from upstream fail with following error

running build_ext
running build_rust
cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib --
error: the package 'selenium-manager' does not contain this feature: pyo3/extension-module
error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib --` failed with code 101

txtsd commented on 2025-01-20 15:50 (UTC)

@Xeonacid We've tried that and ended up with missing files.

Xeonacid commented on 2025-01-20 11:43 (UTC)

According to RFC, it is better to move to the GitHub source tarball instead of the PyPI source.

ideasman42 commented on 2025-01-05 22:43 (UTC) (edited on 2025-01-05 22:43 (UTC) by ideasman42)

Also getting a FileNotFoundError: for:

/usr/lib/python3.13/site-packages/selenium/webdriver/remote/getAttribute.js

Snip:

  File "redacted.py", line 127, in fn                                                     
    if link_test.get_attribute('data-semantic') == 'account-panel-link':                                                               
       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^                                                                                        
  File "/usr/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 177, in get_attribute                         
    _load_js()                                                                                                                         
    ~~~~~~~~^^                                                                                                                         
  File "/usr/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 48, in _load_js                               
    getAttribute_js = pkgutil.get_data(_pkg, "getAttribute.js").decode("utf8")                                                         
                      ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^    
  File "/usr/lib/python3.13/pkgutil.py", line 453, in get_data                                                                         
    return loader.get_data(resource_name)                                                                                              
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^                                                                                              
  File "<frozen importlib._bootstrap_external>", line 1217, in get_data                                                                
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.13/site-packages/selenium/webdriver/remote/getAttribute.js'

Seems like a simple install issue: see,

sudo cp selenium/webdriver/remote/*.js /usr/lib/python3.13/site-packages/selenium/webdriver/remote/

Shalrath commented on 2024-12-25 19:23 (UTC) (edited on 2024-12-27 16:09 (UTC) by Shalrath)

ModuleNotFoundError: No module named 'selenium'

Workaround: downgrade to 4.24.0

EDIT: reinstalling 4.27.1-2 also fixed it despite it being installed before through a full system update and not explicitly.

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.