[操作疑難] The result of raspberrypi:~ $ speedtest

I got something happen...what's wrong

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

it seems some dependencies are outdated.  try reinstall speedtest-cli and python

TOP

回覆 2# chancho

Thanks, chancho~
but I got same output after run below command

sudo apt-get remove speedtest-cli
sudo apt-get remove python3
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3
sudo apt-get install speedtest-cli

What's wrong??

TOP

Don't use the speedtest-cli from Debian repo, might be too old.
Remove it and do `pip3 install speedtest-cli`

TOP

回覆  chancho

Thanks, chancho~
but I got same output after run below command

sudo apt-get remove  ...
LEARZA 發表於 2021-6-17 00:22


唔好remove python, 因為電腦入面好多其他software要用佢
產佢會連相關package一齊產哂

TOP

there is a version speedtest-cli in docker. you may try.

TOP