speedtest CLI dying out
-
With no changes made to the system, the speedtest-cli is returning the following error today. What's weird is that I get the same python error on any other system where I have the same package installed. Even on my mac! It looks to me that something is wrong/corrupt in the config that is being retrieved.
Any ideas for a fix?
Retrieving speedtest.net configuration... Traceback (most recent call last): File "/usr/local/bin/speedtest", line 11, in <module> load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest')() File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1986, in main shell() File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1875, in shell secure=args.secure File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1091, in __init__ self.get_config() File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1174, in get_config map(int, server_config['ignoreids'].split(',')) ValueError: invalid literal for int() with base 10: ''
-
Indeed it is an upstream issue.
-
@ibbetsion
Same error here too! I opened another thread earlyer this morning ...
Speedtest -
@fireodo said in speedtest CLI dying out:
@ibbetsion
Same error here too! I opened another thread earlyer this morning ...
SpeedtestHere's the temp fix:
- open up
/usr/local/lib/python3.7/site-packages/speedtest.py
- go to line
1174
- comment out the line
map(int, server_config['ignoreids'].split(','))
using a#
- add this line
map(int, (server_config['ignoreids'].split(',') if len(server_config['ignoreids']) else []) )
- save and you're done.. it'll work "normally" now
your changes will be overwritten once the package updates, which is ok cause the upstream patch is to change that exact line the same way.
- open up
-
The Windows server I have running the CL on Python 2.7 shows same error. Them not us. But the Win util is working fine.
Broke at 1630 Chicago time yesterday.
-
@ibbetsion said in speedtest CLI dying out:
@fireodo said in speedtest CLI dying out:
@ibbetsion
Same error here too! I opened another thread earlyer this morning ...
SpeedtestHere's the temp fix:
- open up
/usr/local/lib/python3.7/site-packages/speedtest.py
- go to line
1174
- comment out the line
map(int, server_config['ignoreids'].split(','))
using a#
- add this line
map(int, (server_config['ignoreids'].split(',') if len(server_config['ignoreids']) else []) )
- save and you're done.. it'll work "normally" now
Done, and confirm its working. Thank you!
Regards,
fireodo - open up
-
Speedtest 2.1.3 Released
Speedtest 2.1.2 broke yesterday and stopped working, producing the error message:
ValueError: invalid literal for int() with base 10: ''.
Version 2.1.3 has been posted by the author, but has not yet been picked up into the package repositories.
Since a package update doesn't work, this manual update method worked for me in the interim:
# CONFIRM VERSION : speedtest --version speedtest-cli 2.1.2 Python 3.7.9 (default, Feb 5 2021, 20:17:58) [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a # CHANGE TO PYTHON PACKAGE DIRECTORY : cd /usr/local/lib/python3.7/site-packages # MANUALLY DOWNLOAD NEWEST .PY FILE : curl -Lo speedtest.py https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py # CONFIRM VERSION : speedtest --version speedtest-cli 2.1.3 Python 3.7.9 (default, Feb 5 2021, 20:17:58) [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a
-
In case anyone is still having issues with the python version (and is running x86 hw). Speedtest net (speedtest dot net/apps/cli) has released their own version which is written in C and also supports settings which interface you want to use for the test.
-
@sschueller they have a pfsense specific package? if not, then won't it get wiped with every upgrade?
-
@ibbetsion not at the moment (on reddit there was an exchange between netgate and speedtest so their may be one in the future), you need to install it via cli and it will be gone after update. However during my last update the python version was also gone.
-
The new Ookla FreeBSD version works fine.
# REMOVE OLD VERSION : pkg remove py37-speedtest-cli # INSTALL NEW OOKLA VERSION : pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
-
@egeekial said in speedtest CLI dying out:
pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
Certificate verification failed for /C=BE/O=GlobalSign nv-sa/CN=GlobalSign Atlas R3 DV TLS CA 2020
1078788096:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/build/plus-crossbuild-2102_2-aarch64/sources/FreeBSD-src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=BE/O=GlobalSign nv-sa/CN=GlobalSign Atlas R3 DV TLS CA 2020
1078788096:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/build/plus-crossbuild-2102_2-aarch64/sources/FreeBSD-src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=BE/O=GlobalSign nv-sa/CN=GlobalSign Atlas R3 DV TLS CA 2020
1078788096:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/build/plus-crossbuild-2102_2-aarch64/sources/FreeBSD-src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg: Authentication error -
@egeekial said in speedtest CLI dying out:
The new Ookla FreeBSD version works fine.
Hi,
Is this Version also working with the Speedtest Widget?
Thanks
fireodo -
This method is pretty bulletproof for me:
As per this page How To Install Speedtest-cli On a FreeBSD To Check Internet Speed, I simply ran these two commands in the GUI at Diagnostics / Command Prompt / Execute Shell Command:
pkg search speedtest
This returned the following:
py38-speedtest-cli-2.1.3
Command line interface for testing internet bandwidthso I ran this command:
pkg install -y py38-speedtest-cli-2.1.3
Then from there I simply run speedtest
-
@sebm That method works because the issue has been fixed. Previously, it was broken.
-
@kevinrice Great, so now that it's been fixed and I wrote down a simple step-by-step, anybody who comes here in the future knows what to do... I love it when a plan comes together!
-
@sebm Until it breaks next revision! ;)
-
@kevinrice Then one can browse to Ookla's Speedtest, run:
sudo pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
Then when this is fixed, they can run:
pkg remove --y speedtest
And rinse and repeat steps from there:
@sebm said in speedtest CLI dying out:Simple. Unintrusive. I likes
-
@sebm Until Ookla revises... Never ending battle.
-
@kevinrice I'd like to thank you for having published a workaround (option #3).