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

Conda-forge Selenium 4.27.0 is missing files #98

Closed
1 task done
navin772 opened this issue Dec 2, 2024 · 3 comments
Closed
1 task done

Conda-forge Selenium 4.27.0 is missing files #98

navin772 opened this issue Dec 2, 2024 · 3 comments
Labels

Comments

@navin772
Copy link

navin772 commented Dec 2, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Conda-forge python Selenium 4.27.0 is missing remote/getAttribute.js and other js files. The corresponding issue in Selenium - SeleniumHQ/selenium#14826.

The size of the 4.27 package has been reduced to 1/3 as compared to previous releases as seen here - https://anaconda.org/conda-forge/selenium/files.

There were recent changes in setup.py in selenium, can you check if that results in this issue and can be mitigated on your end.

Installed packages

# packages in environment at /usr/local/Caskroom/miniconda/base/envs/conda-selenium:
#
# Name                    Version                   Build  Channel
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
attrs                     24.2.0             pyh71513ae_0    conda-forge
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.0.9           py312hcec6c5f_8
bzip2                     1.0.8                h6c40b1e_6
c-ares                    1.34.3               hf13058a_1    conda-forge
ca-certificates           2024.11.26           hecd8cb5_0
cctools                   973.0.1             hd9ad811_15    conda-forge
cctools_osx-64            973.0.1             habff3f6_15    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py312hf857d28_0    conda-forge
chardet                   5.2.0           py312hb401068_2    conda-forge
charset-normalizer        3.4.0              pyhd8ed1ab_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.11.0         py312hb401068_0    conda-forge
conda-build               24.11.1         py312hb401068_2    conda-forge
conda-index               0.5.0              pyhd8ed1ab_0    conda-forge
conda-libmamba-solver     24.9.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.4.0              pyh7900ff3_0    conda-forge
conda-package-streaming   0.11.0             pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.2              pyhd8ed1ab_0    conda-forge
expat                     2.6.3                h6d0c2b6_0
filelock                  3.16.1             pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                hb8565cd_0    conda-forge
frozendict                2.4.6           py312h3d0f464_0    conda-forge
h11                       0.14.0             pyhd8ed1ab_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       75.1                 h120a0e1_0    conda-forge
idna                      3.10               pyhd8ed1ab_0    conda-forge
importlib_resources       6.4.5              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               3.0.0           py312hb401068_1    conda-forge
jsonschema                4.23.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2024.10.1          pyhd8ed1ab_0    conda-forge
krb5                      1.21.3               h424b1a7_0
ld64                      609                 ha91a046_15    conda-forge
ld64_osx-64               609                 h0fd476b_15    conda-forge
libarchive                3.7.7                h7988bea_0    conda-forge
libcurl                   8.4.0                h726d00d_0    conda-forge
libcxx                    14.0.6               h9765a3e_0
libedit                   3.1.20230828         h6c40b1e_0
libev                     4.33                 h10d778d_2    conda-forge
libexpat                  2.6.3                hac325c4_0    conda-forge
libffi                    3.4.4                hecd8cb5_1
libiconv                  1.17                 hd75f5a5_2    conda-forge
liblief                   0.12.3               hcec6c5f_0
libllvm15                 15.0.7               h7001e86_1    conda-forge
libmamba                  1.5.8                h78918e5_3
libmambapy                1.5.8           py312hb0cdcb5_3
libnghttp2                1.52.0               he2ab024_0    conda-forge
libsolv                   0.7.24               hbc0c0cd_0    conda-forge
libsqlite                 3.45.2               h92b6c6a_0    conda-forge
libssh2                   1.11.1               h3dc7d44_0    conda-forge
libxml2                   2.13.5               h495214b_0    conda-forge
libzlib                   1.3.1                hd23fc13_2    conda-forge
lz4-c                     1.9.4                hf0c8a7f_0    conda-forge
lzo                       2.10              h10d778d_1001    conda-forge
markupsafe                3.0.2           py312hbe3f5e4_0    conda-forge
menuinst                  2.2.0           py312hb401068_0    conda-forge
more-itertools            10.5.0             pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  hcec6c5f_0
openssl                   3.4.0                hd471939_0    conda-forge
outcome                   1.3.0.post0        pyhd8ed1ab_0    conda-forge
packaging                 24.2               pyhff2d567_1    conda-forge
patch                     2.7.6             hbcf498f_1002    conda-forge
pip                       24.2            py312hecd8cb5_0
pkginfo                   1.11.2             pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              4.3.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
psutil                    6.1.0           py312h3d0f464_0    conda-forge
py-lief                   0.12.3          py312hcec6c5f_0
pybind11-abi              5                    hd3eb1b0_0
pycosat                   0.6.6           py312h01d7ebd_2    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.12.2          h9f0c242_0_cpython    conda-forge
python-libarchive-c       5.1             py312hb401068_1    conda-forge
python-wheel-to-conda-package 0.4.1                    pypi_0    pypi
python_abi                3.12                    5_cp312    conda-forge
pytz                      2024.2             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.2           py312hb553811_1    conda-forge
readline                  8.2                  hca72f7f_0
referencing               0.35.1             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4               hb7f2c08_0    conda-forge
reproc-cpp                14.2.4               hf0c8a7f_0    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
ripgrep                   14.1.1               h926acf8_0    conda-forge
rpds-py                   0.21.0          py312h0d0de52_0    conda-forge
ruamel.yaml               0.18.6          py312h3d0f464_1    conda-forge
ruamel.yaml.clib          0.2.8           py312h3d0f464_1    conda-forge
selenium                  4.27.0             pyhd8ed1ab_0    conda-forge
selenium-manager          4.27.0               h371c88c_0    conda-forge
semantic-version          2.10.0                   pypi_0    pypi
setuptools                75.1.0          py312hecd8cb5_0
setuptools-rust           1.10.2                   pypi_0    pypi
sigtool                   0.1.3                h88f4db0_0    conda-forge
sniffio                   1.3.1              pyhd8ed1ab_0    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
sqlite                    3.45.2               h7461747_0    conda-forge
tapi                      1100.0.11            h9ce4665_0    conda-forge
tk                        8.6.13               h1abcd95_1    conda-forge
tqdm                      4.67.1             pyhd8ed1ab_0    conda-forge
trio                      0.27.0          py312hb401068_0    conda-forge
trio-websocket            0.11.1             pyhd8ed1ab_0    conda-forge
truststore                0.10.0             pyhd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024b                h04d1e81_0
urllib3                   2.2.3              pyhd8ed1ab_0    conda-forge
websocket-client          1.8.0              pyhd8ed1ab_0    conda-forge
wheel                     0.44.0          py312hecd8cb5_0
wsproto                   1.2.0              pyhd8ed1ab_1    conda-forge
xz                        5.4.6                h6c40b1e_1
yaml                      0.2.5                h0d85af4_2    conda-forge
yaml-cpp                  0.8.0                hcec6c5f_1
zipp                      3.21.0             pyhd8ed1ab_1    conda-forge
zlib                      1.3.1                hd23fc13_2    conda-forge
zstandard                 0.23.0          py312h7122b0e_1    conda-forge
zstd                      1.5.6                h915ae27_0    conda-forge

Environment info

active environment : conda-selenium
    active env location : /usr/local/Caskroom/miniconda/base/envs/conda-selenium
            shell level : 3
       user config file : /Users/navinchandra/.condarc
 populated config files :
          conda version : 24.7.1
    conda-build version : not installed
         python version : 3.12.4.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=cannonlake
                          __conda=24.7.1=0
                          __osx=10.16=0
                          __unix=0=0
       base environment : /usr/local/Caskroom/miniconda/base  (writable)
      conda av data dir : /usr/local/Caskroom/miniconda/base/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/local/Caskroom/miniconda/base/pkgs
                          /Users/navinchandra/.conda/pkgs
       envs directories : /usr/local/Caskroom/miniconda/base/envs
                          /Users/navinchandra/.conda/envs
               platform : osx-64
             user-agent : conda/24.7.1 requests/2.32.3 CPython/3.12.4 Darwin/24.1.0 OSX/10.16 solver/libmamba conda-libmamba-solver/24.7.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
                UID:GID : 503:20
             netrc file : None
           offline mode : False
@navin772 navin772 added the bug label Dec 2, 2024
@VietND96
Copy link

VietND96 commented Dec 2, 2024

Please update the command if you are downloading the source distribution from PyPI <https://pypi.org/project/selenium/#files>, unarchive it, and run python -m pip install . instead of python setup.py install

@bollwyvl bollwyvl mentioned this issue Dec 2, 2024
8 tasks
@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 2, 2024

#99 shipped 4.27.1 with the updated pyproject.toml fixes, available on CDN within the hour.

It could be there are still issues with the .1 PyPI sdist, as I've had to add an old-school MANIFEST.in, etc. in order for the .js and .json files to be preserved. Also, it's probably best not to rely on "magic" namespace packages when namespaces = false, so am also having to inject a couple __init__.py. These are now under test, and should break informatively when upstream changes course again.

@bollwyvl bollwyvl closed this as completed Dec 2, 2024
@navin772
Copy link
Author

navin772 commented Dec 2, 2024

@bollwyvl thanks for the release, the missing __init__.py file was resolved with SeleniumHQ/selenium#14823 couple days back and should be there in the next release. We are also planning to add a CI check to avoid it in future.

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

No branches or pull requests

3 participants