Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236717

Re: problem with speedtest-cli

From Liam O'Toole <liam.p.otoole@gmail.com>
Newsgroups linux.debian.user
Subject Re: problem with speedtest-cli
Date 2021-07-01 21:30 +0200
Message-ID <CwaxP-2LU-1@gated-at.bofh.it> (permalink)
References <CovpL-6Dc-1@gated-at.bofh.it> <CovJ8-6Jg-3@gated-at.bofh.it> <Cw2Ah-6hA-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 01 Jul, 2021 at 18:52:42 +0800, kaye n wrote:
>    On Fri, Jun 11, 2021 at 12:28 AM Liam O'Toole
>    <[1]liam.p.otoole@gmail.com> wrote:
> 
>      On Fri, 11 Jun, 2021 at 00:08:51 +0800, kaye n wrote:
>      >    Hello guys
>      >    kaye@laptop:~$ speedtest-cli
>      >    Retrieving [1][2]speedtest.net configuration...
>      >    Traceback (most recent call last):
>      >      File "/usr/bin/speedtest-cli", line 11, in <module>
>      >        load_entry_point('speedtest-cli==2.0.2', 'console_scripts',
>      >    'speedtest-cli')()
>      >      File "/usr/lib/python3/dist-packages/speedtest.py", line
>      1887, in
>      >    main
>      >        shell()
>      >      File "/usr/lib/python3/dist-packages/speedtest.py", line
>      1783, in
>      >    shell
>      >        secure=args.secure
>      >      File "/usr/lib/python3/dist-packages/speedtest.py", line
>      1027, in
>      >    __init__
>      >        self.get_config()
>      >      File "/usr/lib/python3/dist-packages/speedtest.py", line
>      1113, in
>      >    get_config
>      >        map(int, server_config['ignoreids'].split(','))
>      >    ValueError: invalid literal for int() with base 10: ''
>      >    I don't know what's wrong.
>      >    Thank you for your time.
>      >    Kaye
>      >
>      It's a known issue[1]. A workaround is to edit the file
>      /usr/lib/python3/dist-packages/speedtest.py. Remove the following
>      block beginning on line 1112
>             ignore_servers = list(
>                 map(int, server_config['ignoreids'].split(','))
>             )
>      and replace it with
>              ignore_servers = [
>                          int(i) for i in
>      server_config['ignoreids'].split(',') if i
>                      ]
>      Hopefully the issue will be fixed in the next stable point release.
>      [1] [3]https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986637
> 
>    Hello!
>    It did not seem to fix the problem.
>    kaye@laptop:~$ speedtest-cli
>    Retrieving [4]speedtest.net configuration...
>    Traceback (most recent call last):
>      File "/usr/bin/speedtest-cli", line 11, in <module>
>        load_entry_point('speedtest-cli==2.0.2', 'console_scripts',
>    'speedtest-cli')()
>      File "/usr/lib/python3/dist-packages/speedtest.py", line 1887, in
>    main
>        shell()
>      File "/usr/lib/python3/dist-packages/speedtest.py", line 1783, in
>    shell
>        secure=args.secure
>      File "/usr/lib/python3/dist-packages/speedtest.py", line 1027, in
>    __init__
>        self.get_config()
>      File "/usr/lib/python3/dist-packages/speedtest.py", line 1113, in
>    get_config
>        map(int, server_config['ignoreids'].split(','))
>    ValueError: invalid literal for int() with base 10: ''
>    not a big deal, i can tolerate it.  but downloading huge files can be
>    frustrating. but really no biggie.
>    thank you for your time.
> 

The problem has been fixed in the latest stable update[1]. I suggest that you upgrade accordingly.

[1] https://www.debian.org/News/2021/20210619

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

problem with speedtest-cli kaye n <guikaye@gmail.com> - 2021-06-10 18:10 +0200
  Re: problem with speedtest-cli Liam O'Toole <liam.p.otoole@gmail.com> - 2021-06-10 18:30 +0200
    Re: problem with speedtest-cli kaye n <guikaye@gmail.com> - 2021-07-01 13:00 +0200
      Re: problem with speedtest-cli David Wright <deblis@lionunicorn.co.uk> - 2021-07-01 16:20 +0200
      Re: problem with speedtest-cli Liam O'Toole <liam.p.otoole@gmail.com> - 2021-07-01 21:30 +0200
        Re: problem with speedtest-cli kaye n <guikaye@gmail.com> - 2021-07-09 12:10 +0200
          Re: problem with speedtest-cli Dan Ritter <dsr@randomstring.org> - 2021-07-09 13:20 +0200
  Re: problem with speedtest-cli john doe <johndoe65534@mail.com> - 2021-06-10 20:00 +0200
    Re: problem with speedtest-cli Robbi Nespu <robbinespu@gmail.com> - 2021-06-11 02:00 +0200

csiph-web