OPNsense Forum
Archive => 21.1 Legacy Series => Topic started by: mircsicz on April 20, 2021, 07:43:03 am
-
Hi all,
just installed speedtest-cli:
pkg update ; pkg install -y py37-speedtest-cli
Problem is it won't run:
$ sudo speedtest-cli
Password:
Retrieving speedtest.net configuration...
Traceback (most recent call last):
File "/usr/local/bin/speedtest-cli", line 11, in <module>
load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest-cli')()
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: ''
Is there someone out there that got speedtest to work?
-
This method works for me on OPNsense 21.1.4-amd64:
pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
-
Thx for the hint, which sadly isn't working for me:
$ pkg remove py37-speedtest-cli-2.1.2
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
py37-speedtest-cli: 2.1.2
Number of packages to be removed: 1
Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling py37-speedtest-cli-2.1.2...
[1/1] Deleting files for py37-speedtest-cli-2.1.2: 100%
$ pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
Fetching ookla-speedtest-1.0.0-freebsd.pkg: 100% 520 KiB 532.1kB/s 00:01
Installing speedtest-1.0.0.2-1.5ae238b...
Extracting speedtest-1.0.0.2-1.5ae238b: 100%
$ speedtest
ld-elf.so.1: Shared object "libidn2.so.0" not found, required by "speedtest"
-
Reply to myself and @33b:
Install the needed lib and go on:
$ pkg search libidn2
libidn2-2.3.0_1 Implementation of IDNA2008 internationalized domain names
$ pkg install libidn2-2.3.0_1
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
libidn2: 2.3.0_1
libunistring: 0.9.10_1
Number of packages to be installed: 2
The process will require 3 MiB more space.
609 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/2] Fetching libidn2-2.3.0_1.txz: 100% 110 KiB 112.8kB/s 00:01
[2/2] Fetching libunistring-0.9.10_1.txz: 100% 498 KiB 510.4kB/s 00:01
Checking integrity... done (0 conflicting)
[1/2] Installing libunistring-0.9.10_1...
[1/2] Extracting libunistring-0.9.10_1: 100%
[2/2] Installing libidn2-2.3.0_1...
[2/2] Extracting libidn2-2.3.0_1: 100%
And now it works as expected:
root@router:/home/mirco # speedtest
...
Do you accept the license? [type YES to accept]: YES
License acceptance recorded. Continuing.
Speedtest by Ookla
Server: HABNET - Frankfurt (id = 27673)
ISP: Deutsche Telekom AG
Latency: 7.51 ms (0.08 ms jitter)
Download: 102.79 Mbps (data used: 78.3 MB)
Upload: 40.85 Mbps (data used: 18.5 MB)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/MYRESULT
-
It is upstream issue:
https://github.com/sivel/speedtest-cli/pull/769 (https://github.com/sivel/speedtest-cli/pull/769)