Bug 2257535 - Package install doesn't properly include python3-aiohttp
Summary: Package install doesn't properly include python3-aiohttp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: speedtest
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Artem
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-10 00:44 UTC by Tarun Reddy
Modified: 2024-01-13 18:29 UTC (History)
1 user (show)

Fixed In Version: speedtest-1.2.1-2.fc40 speedtest-1.2.1-2.fc39
Clone Of:
Environment:
Last Closed: 2024-01-12 18:45:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tarun Reddy 2024-01-10 00:44:06 UTC
After installing on a relatively clean system using
sudo dnf install -y speedtest
and then trying:
speedtest
I get the following error:
Traceback (most recent call last):
  File "/usr/bin/speedtest", line 45, in <module>
    from speedtest import main
  File "/usr/share/speedtest/speedtest/main.py", line 15, in <module>
    from .backends.librespeed import LibrespeedBackend
  File "/usr/share/speedtest/speedtest/backends/librespeed.py", line 3, in <module>
    import aiohttp
ModuleNotFoundError: No module named 'aiohttp'

sudo dnf install python3-aiohttp

resolves the issue.

Reproducible: Always

Steps to Reproduce:
1.sudo dnf install -y speedtest
2.speedtest
3.
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/speedtest", line 45, in <module>
    from speedtest import main
  File "/usr/share/speedtest/speedtest/main.py", line 15, in <module>
    from .backends.librespeed import LibrespeedBackend
  File "/usr/share/speedtest/speedtest/backends/librespeed.py", line 3, in <module>
    import aiohttp
ModuleNotFoundError: No module named 'aiohttp'


Expected Results:  
Run speedtest client

Comment 1 Fedora Update System 2024-01-12 17:35:45 UTC
FEDORA-2024-d718d15863 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-d718d15863

Comment 2 Tarun Reddy 2024-01-12 18:41:37 UTC
So the new build now installs the right dependencies, but doesn't have the proper conflicts statement. It tries to install /usr/bin/speedtest which conflicts with python3-speedtest-cli

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  file /usr/bin/speedtest from install of speedtest-1.2.1-2.fc39.noarch conflicts with file from package python3-speedtest-cli-2.1.3-9.fc39.noarch

Comment 3 Fedora Update System 2024-01-12 18:43:15 UTC
FEDORA-2024-90306532e4 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-90306532e4

Comment 4 Fedora Update System 2024-01-12 18:45:27 UTC
FEDORA-2024-90306532e4 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Artem 2024-01-12 20:14:07 UTC
(In reply to Tarun Reddy from comment #2)
> So the new build now installs the right dependencies, but doesn't have the
> proper conflicts statement. It tries to install /usr/bin/speedtest which
> conflicts with python3-speedtest-cli
> 
> The downloaded packages were saved in cache until the next successful
> transaction.
> You can remove cached packages by executing 'yum clean packages'.
> Error: Transaction test error:
>   file /usr/bin/speedtest from install of speedtest-1.2.1-2.fc39.noarch
> conflicts with file from package python3-speedtest-cli-2.1.3-9.fc39.noarch

Yes, this is just a fix for aiohttp dependency. Many thanks for reporting!

As for conflict with python3-speedtest-cli i thinks we should try to report this upstream[1] and suggest to rename /usr/bin/speedtest into /usr/bin/speedtest-gui or maybe even APPID/RDNS format[2].

[1]: https://github.com/Ketok4321/speedtest/issues
[2]: https://docs.flatpak.org/en/latest/conventions.html#

Comment 6 Fedora Update System 2024-01-13 18:29:20 UTC
FEDORA-2024-d718d15863 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.