speedtest-cliのversionを、2.0.0から2.1.2にアップデートしました。

こんばんは。

speedtest-cliは、ネットワーク間のスピードを測るアプリです。

このアプリ、とても便利なのですが、私の環境では、version 2.0.0だと、アップロードの計測が上手く行きません。

そこで、次のようにして、versionを、2.1.2にします。

そうすると、上手く計測できますよ。

お試しあれ!

[crayon]
$ sudo apt install python-pip
$ sudo pip install speedtest-cli
[/crayon]

Raspbian 9.6 stretch上のspeedtest-cliで、Memory Errorが出ました。対処方法。

Download Testは上手く行くのですが、Upload Testを行なおうとすると、次のようなエラーが出ます。
この、エラーが出るspeedtest-cliのバージョンは、1.0.0です。

[crayon]
Testing upload speedTraceback (most recent call last):
File “/usr/bin/speedtest”, line 11, in
load_entry_point(‘speedtest-cli==1.0.0’, ‘console_scripts’, ‘speedtest’)()
File “/usr/lib/python2.7/dist-packages/speedtest.py”, line 1400, in main
shell()
File “/usr/lib/python2.7/dist-packages/speedtest.py”, line 1376, in shell
speedtest.upload(callback=callback)
File “/usr/lib/python2.7/dist-packages/speedtest.py”, line 1086, in upload
data._create_data()
File “/usr/lib/python2.7/dist-packages/speedtest.py”, line 497, in _create_data
(chars * multiplier)[0:int(self.length) – 9]
MemoryError
[/crayon]

このような時には、GitHubで、最新版のspeedtest-cliをダウンロードしてインストールしてみます。

最新版の、バージョン2.0.2は、次のようにしてGitHubからインストールします。

[crayon]
pip install git+https://github.com/sivel/speedtest-cli.git
[/crayon]

今の所、エラーは出ておりません。
それでは、ごきげんよう。