Bug 2059 - pybindgen and pygccxml-1.6.2
pybindgen and pygccxml-1.6.2
Product: ns-3
Classification: Unclassified
Component: python bindings
PC Linux
: P5 enhancement
Assigned To: Gustavo J. A. M. Carneiro
Depends on:
  Show dependency treegraph
Reported: 2015-02-05 17:25 EST by Tom Henderson
Modified: 2015-03-12 20:00 EDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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
  File "/home/buildslave/scratch/bake/source/pybindgen-", 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.