LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2014, 04:45 PM   #1
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Rep: Reputation: Disabled
speedtest-cli


Trying to run speed test on system, I install successfully and ran on my Red Hat Enterprise Linux Server release 5.8 (Tikanga)


But I am not able to get it to run on my
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)

Getting Error:

# ./speedtest-cli --share
Retrieving speedtest.net configuration...
Traceback (most recent call last):
File "./speedtest-cli", line 692, in ?
main()
File "./speedtest-cli", line 686, in main
speedtest()
File "./speedtest-cli", line 509, in speedtest
config = getConfig()
File "./speedtest-cli", line 314, in getConfig
if int(uh.code) != 200:
AttributeError: addinfourl instance has no attribute 'code'


***********************
This is how I installed
***********************

tegw -O speedtest-cli --no-check-certificate https://raw.github.com/sivel/speedte...eedtest_cli.py

chmod +x speedtest-cli

./speedtest-cli

./speedtest-cli --simple
./speedtest-cli --version
./speedtest-cli --share
 
Old 12-17-2014, 04:57 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Looks like the version of python on your RHEL 4 machine isn't new enough to support the syntax being used in that code.

You have two choices:
1) Modify the code so it works correctly on your version of python
2) Install a newer version of python (SEE NOTE BELOW)

Note: Since python is integral to the functionality of yum, DO NOT replace the built-in version! You can download a newer release and use it from an alternate directory, but DO NOT "make install" and toss it into the default system directory, or you'll be in for a world of hurt.
 
Old 12-17-2014, 06:27 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
i take it you are NOT aware that 4.8 is NOT!!! supported by redhat

when 4 was given the reprieve from the executioner's block ( the move from 7 to 10 year support)
ONLY!!!
Only 4.9 is still supported on the EXTRA extended life-support


to run on 4.8
-- upgrade to 5.11 or 6.6 or 7.0

or
pay redhat a ton of cash for the 4.9 backport CRITICAL security updates
( that should not be a problem, seeing as you are already doing that to keep 5 at 5.8 and NOT the current 5.11)

then

install a second version of a newer version of python

as above

IF ( and this is a big IF )
if your version of 4 had the backport of yum installed then THAT version of python MUST!!! be used

but
you can install a second version in a "side by side" set up

Last edited by John VV; 12-17-2014 at 06:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet speedtest log jrahma Linux - Newbie 3 10-19-2014 11:59 PM
SQUID3 on Ubuntu Proxy crashing on speedtest.net mcai8rw2 Linux - Networking 4 03-13-2012 07:06 AM
speedtest? squid qwertyjjj Linux - Server 3 10-18-2009 06:45 AM
Speedtest my linux box htb Linux - Networking 2 10-11-2008 09:20 PM
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 06:42 AM


All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration