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

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

Closed
frafra opened this issue Nov 30, 2022 · 4 comments
Closed

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

frafra opened this issue Nov 30, 2022 · 4 comments

Comments

@frafra
Copy link

frafra commented Nov 30, 2022

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_
@github-actions
Copy link

@frafra, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol diemol added C-py and removed needs-triaging labels Dec 1, 2022
@titusfortner
Copy link
Member

@frafra can you try with 4.7.2? Thanks.

@frafra
Copy link
Author

frafra commented Dec 5, 2022

It works fine with 4.6.2, thanks.

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants