On 7/12/22 14:40, Shayan Fatima wrote:
> Hi everyone! I am new to ns3 and linux and I am trying to build the
> ns3.34 on ubuntu 22.04 but it is showing the following error. Can anyone
> help me debug it?
This problem is due to Ubuntu 22.04 upgrade of Python to Python 3.10.
ns-3.34 Python features were only tested up to Python 3.9 (what was
available at the time). The pybindgen module (version 0.22.0 included
with ns-allinone-3.34) needs an upgrade to work on Python 3.10.
If you do not need Python bindings, you can work around this by
disabling Python at configure time.
$ ./waf configure --disable-python
or you can delete the pybindgen-0.22.0 directory altogether.
If you need Python bindings, you will need to replace pybindgen-0.22.0
with something newer such as 0.22.1 release or the tip of the
development tree.
- Tom