If ever on openSuSE Tumbleweed you get an error ImportError: No module named pkg_resources
then check you have the installed the python-setuptools package it is different from python3-setuptools which was installed by default but is not the default python used.
This is how to install it:
zypper install python-setuptools
Tools like speedtest-cli require it.
The odd thing: on a Mac, the homebrew speedtest-cli installed and ran with no additional packages needed:
retinambpro1tb:tmp jeroenp$ brew install speedtest-cli
==> Downloading https://github.com/sivel/speedtest-cli/archive/v0.3.2.tar.gz
==> Downloading from https://codeload.github.com/sivel/speedtest-cli/tar.gz/v0.3.2
######################################################################## 100.0%
🍺 /usr/local/Cellar/speedtest_cli/0.3.2: 5 files, 52K, built in 2 seconds
retinambpro1tb:tmp jeroenp$ speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Routit BV (37.153.243.246)...
Selecting best server based on latency...
Hosted by ExtraIP (Amersfoort) [3.99 km]: 6.488 ms
Testing download speed........................................
Download: 49.89 Mbit/s
Testing upload speed..................................................
Upload: 47.81 Mbit/s
(this is on one of my fiber connections back when it was 50/50 megabit).
Note that for both the web interface of speedtest.net and command-line versions (like Python based speedtest-cli) sometimes needs some fiddling with chosen servers and repeated measurements to get a consistent average as quite some factors can influence the measurements.
For my home location, this one gives me the most consistent results for my fiber connections (they’re so good and reliable that I don’t have ADSL or cable any more):
speedtest-cli --server 3629
You can get the list of servers ordered by increasing distance using this command:
speedtest-cli --list | head -n 20
–jeroen
Filed under: *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux
