This SIGSEGV issue is usually caused by an incompatible cppyy version. For ns-3.47, the Python bindings are only tested with:
cppyy==3.5.0
Using newer versions (e.g., 3.6.0+) can cause segmentation faults due to internal API changes.
Fix:
pip uninstall cppyy
pip install cppyy==3.5.0
After that, rebuild ns-3 and run the example again.
Also, since you're using Python 3.12/3.13, note that ns-3 Python bindings are not fully validated on newer Python versions yet. If the issue persists, try Python 3.10 or 3.11.
This is also mentioned in the ns-3.47 release notes.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/92ec2d65-1147-4c09-a6d1-1c7ab027d7fbn%40googlegroups.com.