james-atkinson / speedcomplainer

A python app that will test your internet connection and then complain to your service provider (and log to a data store if you'd like)
509 stars 105 forks source link

IndexError: list index out of range #15

Open andysom25 opened 8 years ago

andysom25 commented 8 years ago

Got everything set up and now this is what I'm getting when I run the script:

 python speedcomplainer.py
======================================
 Starting Speed Complainer!
 Lets get noisy!
======================================
sh: 1: /usr/local/bin/speedtest-cli: not found
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "speedcomplainer.py", line 99, in run
    speedTestResults = self.doSpeedTest()
  File "speedcomplainer.py", line 116, in doSpeedTest
    downloadResult = resultSet[1]
IndexError: list index out of range

Help ?

engFelipeMonteiro commented 8 years ago

Its happens when the speedtest return a error and can't split correctly.

elzach commented 8 years ago

Just got this same error Python 2.7 too @andysom25 did you find a solution?

tcwatson commented 8 years ago

I just installed this and am getting the same error... anyone ever fix it?

Edit: just realized, the first line of the error says sh: 1: /usr/local/bin/speedtest-cli: not found

To fix, do: pip install speedtest-cli