Skip to content

RuntimeError: attribute 'fullname' is only available when compiling C++ code #72

Open

Description

@davidmalcolm

I got this error when trying to use gccutils.pformat when compiling C code:

{{{
File "/home/tromey/Space/Trunk/gcc-python-plugin/cvtlisp.py", line 204, in map_tree
print gccutils.pformat(tree)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 123, in pformat
return pp.pformat(obj)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 176, in pformat
return self._recursive_format_obj(obj, set(), 0)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 208, in _recursive_format_obj
visited, depth + 1)
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 199, in _recursive_format_obj
for name, value in self.iter_tree_attrs(obj):
File "/home/tromey/Space/Trunk/gcc-python-plugin/gccutils.py", line 143, in iter_tree_attrs
value = getattr(obj, name)
RuntimeError: attribute 'fullname' is only available when compiling C++ code
}}}

Activity

  1. self-assigned this
    on Feb 9, 2017
  2. davidmalcolm commented on Feb 9, 2017

    @davidmalcolm
    OwnerAuthor

    Imported from trac issue 32. Created by tromey on 2012-01-25T16:52:42, last modified: 2012-01-25T16:52:42

  3. added 2 commits that reference this issue on May 29, 2019
    c96aefb
    03b5288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions