For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut> 27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR: Traceback (most recent call last): File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command return NetTestCommand(command).run() File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__ self._command_class = get_command_class(command) File "/root/lnst/NetTest/NetTestCommand.py", line 209, in get_command_class return NetTestCommandTest(command) File "/root/lnst/NetTest/NetTestCommand.py", line 65, in NetTestCommandTest fp, pathname, description) File "/root/lnst/Tests/TestIperf.py", line 86 except OSError as e: ^ SyntaxError: invalid syntax </cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword is not known to python2.4.
I was able to workaround it with following steps:
1. install python2.6 from epel [1] 2. run nettestslave with following command line: # PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use: except OSError, e:
Hth, Jan
On 06/27/2012 03:16 PM, Jan Tluka wrote:
For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut> 27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR: Traceback (most recent call last): File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command return NetTestCommand(command).run() File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__ self._command_class = get_command_class(command) File "/root/lnst/NetTest/NetTestCommand.py", line 209, in get_command_class return NetTestCommandTest(command) File "/root/lnst/NetTest/NetTestCommand.py", line 65, in NetTestCommandTest fp, pathname, description) File "/root/lnst/Tests/TestIperf.py", line 86 except OSError as e: ^ SyntaxError: invalid syntax </cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword is not known to python2.4.
Oh, I didn't realize that. I'm using the 'as' keyword as well somewhere. How are we going to deal with this? Should I change it to the way that's compatible with 2.4?
Radek
I was able to workaround it with following steps:
- install python2.6 from epel [1]
- run nettestslave with following command line:
# PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use: except OSError, e:
Hth, Jan
[1] http://fedoraproject.org/wiki/EPEL _______________________________________________ LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
Thu, Jun 28, 2012 at 08:10:45AM CEST, rpazdera@redhat.com wrote:
On 06/27/2012 03:16 PM, Jan Tluka wrote:
For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut> 27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR: Traceback (most recent call last): File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command return NetTestCommand(command).run() File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__ self._command_class = get_command_class(command) File "/root/lnst/NetTest/NetTestCommand.py", line 209, in get_command_class return NetTestCommandTest(command) File "/root/lnst/NetTest/NetTestCommand.py", line 65, in NetTestCommandTest fp, pathname, description) File "/root/lnst/Tests/TestIperf.py", line 86 except OSError as e: ^ SyntaxError: invalid syntax </cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword is not known to python2.4.
Oh, I didn't realize that. I'm using the 'as' keyword as well somewhere. How are we going to deal with this? Should I change it to the way that's compatible with 2.4?
Radek
IMO, I would not stick to the old syntax. RHEL5 is quite old and a workaround exists.
@Jirka, any thoughts on this?
I was able to workaround it with following steps:
- install python2.6 from epel [1]
- run nettestslave with following command line:
# PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use: except OSError, e:
Hth, Jan
[1] http://fedoraproject.org/wiki/EPEL _______________________________________________ LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
Thu, Jun 28, 2012 at 09:12:08AM CEST, jtluka@redhat.com wrote:
Thu, Jun 28, 2012 at 08:10:45AM CEST, rpazdera@redhat.com wrote:
On 06/27/2012 03:16 PM, Jan Tluka wrote:
For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut> 27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR: Traceback (most recent call last): File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command return NetTestCommand(command).run() File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__ self._command_class = get_command_class(command) File "/root/lnst/NetTest/NetTestCommand.py", line 209, in get_command_class return NetTestCommandTest(command) File "/root/lnst/NetTest/NetTestCommand.py", line 65, in NetTestCommandTest fp, pathname, description) File "/root/lnst/Tests/TestIperf.py", line 86 except OSError as e: ^ SyntaxError: invalid syntax </cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword is not known to python2.4.
Oh, I didn't realize that. I'm using the 'as' keyword as well somewhere. How are we going to deal with this? Should I change it to the way that's compatible with 2.4?
Radek
IMO, I would not stick to the old syntax. RHEL5 is quite old and a workaround exists.
@Jirka, any thoughts on this?
Yes, please send patch changing this to old syntax. Once RHEL5 is gone (in the future) we can change couple of things back again.
Thanks
Jirka
I was able to workaround it with following steps:
- install python2.6 from epel [1]
- run nettestslave with following command line:
# PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use: except OSError, e:
Hth, Jan
[1] http://fedoraproject.org/wiki/EPEL _______________________________________________ LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
On 06/29/2012 09:38 AM, Jiri Pirko wrote:
Thu, Jun 28, 2012 at 09:12:08AM CEST, jtluka@redhat.com wrote:
Thu, Jun 28, 2012 at 08:10:45AM CEST, rpazdera@redhat.com wrote:
On 06/27/2012 03:16 PM, Jan Tluka wrote:
For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut> 27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR: Traceback (most recent call last): File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command return NetTestCommand(command).run() File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__ self._command_class = get_command_class(command) File "/root/lnst/NetTest/NetTestCommand.py", line 209, in get_command_class return NetTestCommandTest(command) File "/root/lnst/NetTest/NetTestCommand.py", line 65, in NetTestCommandTest fp, pathname, description) File "/root/lnst/Tests/TestIperf.py", line 86 except OSError as e: ^ SyntaxError: invalid syntax </cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword is not known to python2.4.
Oh, I didn't realize that. I'm using the 'as' keyword as well somewhere. How are we going to deal with this? Should I change it to the way that's compatible with 2.4?
Radek
IMO, I would not stick to the old syntax. RHEL5 is quite old and a workaround exists.
@Jirka, any thoughts on this?
Yes, please send patch changing this to old syntax. Once RHEL5 is gone (in the future) we can change couple of things back again.
Thanks
Jirka
Ok, I'll try to get all the occurrences of this in one patch.
Radek
I was able to workaround it with following steps:
- install python2.6 from epel [1]
- run nettestslave with following command line:
# PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use: except OSError, e:
Hth, Jan
[1] http://fedoraproject.org/wiki/EPEL _______________________________________________ LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
lnst-developers@lists.fedorahosted.org