Bug 616 - python problems with ns3.4 on RH family
python problems with ns3.4 on RH family
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3.4
PC Linux
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-30 08:59 UTC by Laurynas Riliskis
Modified: 2009-06-30 09:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurynas Riliskis 2009-06-30 08:59:54 UTC
ns-3.4 requires python >2.5, this can be tricky thing for RH based
machines. Since the default python is 2.4.3 and changing it to 2.5+
will brake the system (yumex etc..). Script files that are used just
uses #!/usr/bin/env python which needs to be rewritten. As well some
bindings will not work with the 2.4 version.
The installation of required python packets is really nasty then you
have 2 version.

to build when executing:
$python build.py
  File "build.py", line 96
    finally:
          ^
SyntaxError: invalid syntax

after inspecting code the try/catch syntax is from 2.5+
Comment 1 Gustavo J. A. M. Carneiro 2009-06-30 09:37:33 UTC
You're right, Python < 2.5 does not support try/except/finally in a single block, you cannot mix try/except and try/finally.

changeset:   30:a27797fe2367
tag:         tip
user:        Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>
date:        Tue Jun 30 14:36:14 2009 +0100
summary:     bug 616: python problems with ns3.4 on RH family