Speedtest suddenly fails

Bug #1923354 reported by Bjørn Sune Bruun Andersen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
speedtest-cli (Ubuntu)
New
Undecided
Unassigned

Bug Description

A few days ago speedtest (version 2.1.2-2) started to fail with the following error:

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/dist-packages/speedtest.py", line 1986, in main
    shell()
  File "/usr/lib/python3/dist-packages/speedtest.py", line 1872, in shell
    speedtest = Speedtest(
  File "/usr/lib/python3/dist-packages/speedtest.py", line 1091, in __init__
    self.get_config()
  File "/usr/lib/python3/dist-packages/speedtest.py", line 1173, in get_config
    ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''

OS is Ubuntu 20.04.2 LTS with regularly updated to the latest and greatest - this has not been an issue in the past. No new SW / packages installed resently.

It appears that other users experience similiar issues: https://askubuntu.com/questions/1330384/speedtest-stopped-working-on-all-my-ubuntu20-systems

Revision history for this message
ChenYirong (chenyirong) wrote :

把speedtest.py的第1173行改为:

map(int, server_config['ignoreids'].split(',')[:-1])

参考:https://chenyirong.blog.csdn.net/article/details/116553524

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.