Error while using speedtest command
-
Speed test not working. Error copy/paste at bottom of post.
I have Googled this trying to find a solution and removed the speedtest files from /usr/local/bin as suggested here:
https://forum.netgate.com/topic/160996/speedtest-not-working-after-upgrade-to-2-5-0/18I removed the speedtest package:
pkg delete py37-speedtest-cli
and reinstalled:
pkg update ; pkg install -y py37-speedtest-cli
I also noticed the final post by KevinRice that provides some instruction for a workaround and wanted to know if this was a valid option before installing on the device that gives me access to the internet... Also, is there a fix in the works and should I wait for the fix as opposed to using the workaround suggested by KevinRice.
I also installed the widget:
https://github.com/aln-1/pfsense-speedtest-widget
Doesn't work.Here is the error output:
speedtest 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: ''
Here is the install command and output for reference of version:
pkg update ; pkg install -y py37-speedtest-cli Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date. Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: py37-speedtest-cli: 2.1.2 [pfSense] Number of packages to be installed: 1 [1/1] Installing py37-speedtest-cli-2.1.2... [1/1] Extracting py37-speedtest-cli-2.1.2: 100%
I sure would like to use Speedtest in my pfsense router, and the widget is really awesome. Any suggestions or recommendations for a fix would be most appreciated.
Thank you!!!
-
-
@fireodo Yes. Thank you. Both solutions suggested worked for me, I tried both. This is solved via workaround.
-
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