Bug 28784 - python-speedtest-cli-2.1.2 and below broken, need update to 2.1.3
Summary: python-speedtest-cli-2.1.2 and below broken, need update to 2.1.3
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7TOO MGA7-64-OK MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-04-16 01:36 CEST by Barry Jackson
Modified: 2021-04-18 20:37 CEST (History)
4 users (show)

See Also:
Source RPM: python-speedtest-cli-2.1.2
CVE:
Status comment:


Attachments

Description Barry Jackson 2021-04-16 01:36:33 CEST
Description of problem:
In both Mageia 7 and 8 python-speedtest-cli-2.1.2 stopped working on Wed April 7th.

2.1.3 was released around the same time and fixes the problem in both Mga7 and Mga8

[baz@localhost ~]$ speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
  File "/usr/bin/speedtest-cli", line 11, in <module>
    load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest-cli')()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1986, in main
    shell()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1872, in shell
    speedtest = Speedtest(
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1091, in __init__
    self.get_config()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1173, in get_config
    ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''
[baz@localhost ~]$



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Try to run speedtest-cli in a terminal as user.
2.
3.
Barry Jackson 2021-04-16 01:39:43 CEST

Whiteboard: (none) => MGA7TOO

Comment 1 David GEIGER 2021-04-16 08:07:47 CEST
Done for both mga7 and mga8!

CC: (none) => geiger.david68210

Comment 2 Barry Jackson 2021-04-16 14:07:13 CEST
python-speedtest-cli-2.1.3-1 has been pushed to 7/core/updates_testing

##########################
Advisory

This update to version 2.1.3 fixes speedtest-cli which stopped working in previous versions on 7th April 2021.


#########################
References

https://bugs.mageia.org/show_bug.cgi?id=28784

########################
Affected rpms

python3-speedtest-cli-2.1.3-1.mga7.noarch.rpm

From

python-speedtest-cli-2.1.3-1.mga7.src.rpm

#######################
Testing

Confirm bug as in comment #0

Update using the new version and confirm that the test completes, which takes minute  or so.
Comment 3 Barry Jackson 2021-04-16 14:09:56 CEST
python-speedtest-cli-2.1.3-1 has been pushed to 8/core/updates_testing

##########################
Advisory

This update to version 2.1.3 fixes speedtest-cli which stopped working in previous versions on 7th April 2021.


#########################
References

https://bugs.mageia.org/show_bug.cgi?id=28784

########################
Affected rpms

python3-speedtest-cli-2.1.3-1.mga8.noarch.rpm

From

python-speedtest-cli-2.1.3-1.mga8.src.rpm

#######################
Testing

Confirm bug as in comment #0

Update using the new version and confirm that the test completes, which takes minute  or so.
Barry Jackson 2021-04-16 14:11:18 CEST

Assignee: bugsquad => qa-bugs

Comment 4 Thomas Andrews 2021-04-16 18:59:38 CEST
Tested in a MGA7 vbox Plasma guest.

Before update:

$ speedtest
Retrieving speedtest.net configuration...
Traceback (most recent call last):
  File "/usr/bin/speedtest", line 11, in <module>
    load_entry_point('speedtest-cli==2.1.1', 'console_scripts', 'speedtest')()
  File "/usr/lib/python3.7/site-packages/speedtest.py", line 1930, in main
    shell()
  File "/usr/lib/python3.7/site-packages/speedtest.py", line 1819, in shell
    secure=args.secure
  File "/usr/lib/python3.7/site-packages/speedtest.py", line 1053, in __init__
    self.get_config()
  File "/usr/lib/python3.7/site-packages/speedtest.py", line 1136, in get_config
    map(int, server_config['ignoreids'].split(','))
ValueError: invalid literal for int() with base 10: ''

After update (no installation issues, IP disguised):

$ speedtest
Retrieving speedtest.net configuration...
Testing from Spectrum (XXX.XXX.XXX.XXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Spectrum (Syracuse, NY) [16.09 km]: 57.893 ms
Testing download speed................................................................................
Download: 222.25 Mbit/s
Testing upload speed......................................................................................................
Upload: 11.63 Mbit/s

Looks OK for MGA7.

CC: (none) => andrewsfarm

Comment 5 Thomas Andrews 2021-04-16 19:20:47 CEST
Tested with a MGA8 vbox Plasma guest.

Before update:

$ speedtest
Retrieving speedtest.net configuration...
Traceback (most recent call last):
  File "/usr/bin/speedtest", line 11, in <module>
    load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest')()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1986, in main
    shell()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1872, in shell
    speedtest = Speedtest(
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1091, in __init__
    self.get_config()
  File "/usr/lib/python3.8/site-packages/speedtest.py", line 1173, in get_config
    ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''

After update (No installation issues, IP again disguised):

$ speedtest
Retrieving speedtest.net configuration...
Testing from Spectrum (XXX.XXX.XXX.XXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Time Warner Cable (Syracuse, NY) [16.09 km]: 58.088 ms
Testing download speed................................................................................
Download: 172.95 Mbit/s
Testing upload speed......................................................................................................
Upload: 11.55 Mbit/s

Difference in download speed between this test and Comment 4 is probably due to another computer on the network starting a browser. "Spectrum" and "Time-Warner Cable" are the same company.

Looks OK for MGA8. Validating. Advisories in comment 2 and Comment 3.

Whiteboard: MGA7TOO => MGA7TOO MGA7-64-OK MGA8-64-OK
CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 6 Rolf Pedersen 2021-04-16 21:50:01 CEST
Also working as it once was, here on MGA 8 64-bit, after experiencing speedtest.py errors reported in this bug for the previous version.
Thanks.

CC: (none) => rolfpedersen

Thomas Backlund 2021-04-18 19:33:40 CEST

Keywords: (none) => advisory

Comment 7 Mageia Robot 2021-04-18 20:37:00 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0090.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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