Skip to content

[🐛 Bug]: Cannot install selenium 4.6.1 on Python using PDM #11338

Closed
@frafra

Description

@frafra

What happened?

I use pdm as Python package manager, and it fails to add selenium==4.6.1, while it works with 4.6.0. I cannot reproduce using other packages manager at the moment.

How can we reproduce the issue?

pdm init
pdm add selenium


### Relevant log output

```shell
[...]
Traceback (most recent call last):
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/synchron
izers.py", line 225, in install_candidate
    self.manager.install(can)
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/manager.
py", line 39, in install
    installer(str(prepared.build()), self.environment, prepared.direct_url())
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/installe
rs.py", line 185, in install_wheel
    _install_wheel(
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/installe
rs.py", line 279, in _install_wheel
    install(source, destination, additional_metadata=additional_metadata or {})
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/installer/_core.py", 
line 96, in install
    for record_elements, stream, is_executable in source.get_contents():
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/installe
rs.py", line 131, in get_contents
    for element in super().get_contents():
  File 
"/home/francesco.frassinell/.local/pipx/venvs/pdm/lib/python3.8/site-packages/installer/sources.py", 
line 158, in get_contents
    assert record is not None, "In {}, {} is not mentioned in RECORD".format(
AssertionError: In /tmp/pdm-build-y94he8xy/selenium-4.6.1-py3-none-any.whl, 
selenium/webdriver/common/devtools/v105/__init__.py is not mentioned in RECORD


### Operating System

Ubuntu

### Selenium version

4.6.1

### What are the browser(s) and version(s) where you see this issue?

Not relevant

### What are the browser driver(s) and version(s) where you see this issue?

Not relevant

### Are you using Selenium Grid?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions