pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

speedtest-cli-2.1.2nb1 error ValueError: invalid literal for int() with base 10:



O/S:

NetBSD  9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
mailto:mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64

Package:

root: pkgin sfd speedtest-cli
full dependency tree for speedtest-cli-2.1.2nb1
        libuuid>=2.18
        libffi>=3.3nb1
        python38>=3.8.0
        py38-setuptools-[0-9]*
        py38-expat-[0-9]*

Error:

root: speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
  File "/usr/pkg/bin/speedtest-cli", line 33, in <module>
    sys.exit(load_entry_point('speedtest-cli==2.1.2', 'console_scripts',
'speedtest-cli')())
  File "/usr/pkg/lib/python3.8/site-packages/speedtest.py", line 1986, in
main
    shell()
  File "/usr/pkg/lib/python3.8/site-packages/speedtest.py", line 1872, in
shell
    speedtest = Speedtest(
  File "/usr/pkg/lib/python3.8/site-packages/speedtest.py", line 1091, in
__init__
    self.get_config()
  File "/usr/pkg/lib/python3.8/site-packages/speedtest.py", line 1173, in
get_config
    ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''

Fix:

Found Here: https://forums.linuxmint.com/viewtopic.php?p=2001221

vi /usr/pkg/lib/python3.8/site-packages/speedtest.py 

line 1173

        ignore_servers = list(
            map(int, server_config['ignoreids'].split(','))

change to

        ignore_servers = list(
            map(int, server_config['ignoreids'].split(',')[:-1])




Home | Main Index | Thread Index | Old Index