Bug 2059

Summary: pybindgen and pygccxml-1.6.2
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: python bindingsAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: CONFIRMED ---    
Severity: enhancement CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Linux   

Description Tom Henderson 2015-02-05 17:25:50 EST
In trying to upgrade the python API scanning system to pygxxml-1.6.2, I encountered the following problem due to an apparent API change:

AttributeError: 'module' object has no attribute 'config_t'
Traceback (most recent call last):
  File "/home/buildslave/scratch/bake/source/ns-3.22/bindings/python/ns3modulescan-modular.py", line 280, in <module>
    ns3_module_scan(sys.argv[1], sys.argv[2], eval(sys.argv[3]), sys.argv[4], sys.argv[5])
  File "/home/buildslave/scratch/bake/source/ns-3.22/bindings/python/ns3modulescan-modular.py", line 260, in ns3_module_scan
    gccxml_options=gccxml_options)
  File "/home/buildslave/scratch/bake/source/pybindgen-0.17.0.886/pybindgen/gccxmlparser.py", line 693, in parse_init
    self.gccxml_config = parser.config_t(**gccxml_options)
AttributeError: 'module' object has no attribute 'config_t'


For ns-3.22 release, I am rolling back to pygccxml-1.0.0.  This fixed things for me (Fedora 21, 64-bit system).
Comment 1 Tom Henderson 2015-03-12 20:00:38 EDT
the 'pygccxml' module in bakeconf.xml should be updated also when this is fixed.