Trouble with speedtest on raspberry pi

I am having trouble with speedtest installed on my raspberry pi.

Not to sure when it happened but I know I was having trouble with speedtest when it was not uploading data to influx database that is connected to grafana.

Python version: 2.7.16
Debian version: 10.9
Raspbian GNU/Linux 10 (buster)
Linux raspberrypi 5.10.17-v7l+

You might get better results by informing the Speedtest team as they say on their web page:

Speedtest CLI is maintained by the Ookla team. For assistance, please direct all inquiries to

Looking at the repo, your error message suggests your version is out-of-date.