[pygccxml-development] Error after updating pyplusplus...
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-04-26 16:29:32
|
Hi, I've just switched to the svn version and now I get the following error when I try to recreate the Maya bindings: File "pypp_setup.py", line 637, in ? root = mod.parse() File "...pyplusplus/experimental/pypp_api.py", line 273, in parse parser.project_reader.COMPILATION_MODE.FILE_BY_FILE) File "...pygccxml/parser/project_reader.py", line 149, in read_files return self.__parse_file_by_file(files) File "...pygccxml/parser/project_reader.py", line 174, in __parse_file_by_file decls = reader.read_file( header ) File "...pygccxml/parser/source_reader.py", line 190, in read_file raise error AttributeError: 'NoneType' object has no attribute 'name' I had a quick look in the code, but because the exception is actually caught and then raised again the true source of the error is obfuscated. After changing the except statement so that it does not catch the exception I get: File "...pygccxml/parser/project_reader.py", line 174, in __parse_file_by_file decls = reader.read_file( header ) File "...pygccxml/parser/source_reader.py", line 181, in read_file declarations, files = self.__parse_gccxml_created_file( gccxml_file ) File "...pygccxml/parser/source_reader.py", line 256, in __parse_gccxml_created_file apply_visitor( linker_, decl ) File "...pygccxml/declarations/algorithm.py", line 263, in apply_visitor getattr( visitor, fname )() File "...pygccxml/parser/linker.py", line 107, in visit_class new_name = self.__inst.parent.name AttributeError: 'NoneType' object has no attribute 'name' Any ideas? - Matthias - |