pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
128 stars 36 forks source link

AttributeError: 'list' object has no attribute '__module__' #65

Closed tumagonx closed 10 years ago

tumagonx commented 10 years ago

Using latest pgi-docgen and pgi I have this kind of error but not for all girs

<^> python27 pgi-docgen.py -f temp GstRtp-1.0 Create docs: Namespace=GstRtp, Version=1.0 Parsing GIR (GstRtp-1.0) Parsing GIR (GstBase-1.0) Parsing GIR (Gst-1.0) Parsing GIR (GObject-2.0) Parsing GIR (GLib-2.0) Parsing GIR (GModule-2.0)

(python.exe:1068): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(python.exe:1068): Gdk-CRITICAL **: gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed

(python.exe:1068): Gdk-WARNING : gdk_input_wintab_init: gdk_window_new failed Traceback (most recent call last): File "pgi-docgen.py", line 93, in main(sys.argv) File "pgi-docgen.py", line 89, in main gen.write(destdir) File "d:\Sources\pgi-docgen\pgidocgen\main.py", line 51, in write gen.write(dir) File "d:\Sources\pgi-docgen\pgidocgen\api.py", line 34, in write self._gen.write(path) File "d:\Sources\pgi-docgen\pgidocgen\module.py", line 70, in write self._write(sub_dir, namespace, version) File "d:\Sources\pgi-docgen\pgidocgen\module.py", line 141, in _write fields = repo.parse_fields(obj) File "d:\Sources\pgi-docgen\pgidocgen\repo.py", line 331, in parse_fields type_name = atype.module + "." + atype.name AttributeError: 'list' object has no attribute 'module**'

lazka commented 10 years ago

From the look of the traceback the pgi-docgen source seems to be a month old, please try with trunk.

tumagonx commented 10 years ago

tried a fresh clone and works