Temat: terminal a speed test

Witam,

Zainstalowałem sobie speed testa i niestety pojawiam się taki błąd

root@Salon:~# ./speedtest-cli --list
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Traceback (most recent call last):
  File "./speedtest-cli", line 410, in <module>
    speedtest()
  File "./speedtest-cli", line 308, in speedtest
    servers = closestServers(config['client'], True)
  File "./speedtest-cli", line 207, in closestServers
    uh = urllib2.urlopen('http://www.speedtest.net/speedtest-servers.php')
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 615, in http_error_302
    self.inf_msg + msg, headers, fp)
urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Found

2

Odp: terminal a speed test

Zgłoś błąd do twórców speedtest-cli

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez build000 2015-07-13 20:54:56)

Odp: terminal a speed test

Musisz mieć najpierw zainstalowany python-pip, a on sporo ciągnie zależności -  prawie wszystko  z pythona (prawie wszystkie moduły dodatkowe, a one z kolei ciągną sporo swoich zależności) - instalujesz: pip install speedtest-cli - u mnie to normalnie działa. I na CC, i na trunku (działa tak samo na python3-pip - w repo dodatków pythona są obie wersje).
Jak nie masz odpowiednio pojemnego flash to czeka Cię extroot do tego zadania.
Pomijam już sam fakt, że na routerze z zegarem CPU poniżej 400 MHz/RAM poniżej 32 MB... to w ogóle loteria...

4

Odp: terminal a speed test

chciałem uruchomić go na 1043V1 może się uda. zainstalowałem pythona, ale nie ma w rezpozytorium python -pip

5 (edytowany przez build000 2015-07-13 21:31:16)

Odp: terminal a speed test

Może zacznijmy od podstaw: python-pip jest na CC (i trunk) i zależy skąd to instalowałeś i jaką wersję...
python-pip - tak się nazywa moduł do instalacji, instalujesz sam moduł standardowo:

opkg update
opkg install python-pip

Wszystko pod warunkiem, że na 1043v1 masz zainstalowaną jedną z w/w wersji bazowych, czyli CC i/lub trunk (czy było w BB/AA to nie pamiętam - musisz sobie sprawdzić).
Dopiero sam moduł python-pip (i zależności) dostarczają niezbędnych bibliotek do użycia polecenia pythona, dostępnego w standardowej ścieżce $BIN/$SBIN:

pip install ...

6

Odp: terminal a speed test

ok teraz to juz iem muszę sie przesiąść z AA na CC najlepiej

7

Odp: terminal a speed test

Od razu Ci podpowiem, że jeżeli chodzi o CC/python-pip (i zależności)/1043v1 to bez extroot nawet nie próbuj - za mały flash na to.