|
Bugzilla – Full Text Bug Listing |
| Summary: | python problems with ns3.4 on RH family | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Laurynas Riliskis <laurynas.riliskis> |
| Component: | build system | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gjcarneiro |
| Priority: | P5 | ||
| Version: | ns-3.4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
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 |
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+