pygobject / pgi-docgen

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

ValueError: NULL pointer access when parsing atk-1.0 [Windows] #36

Closed tumagonx closed 10 years ago

tumagonx commented 10 years ago

OS: Windows Xp 32bit Python : 2.7.3 pgi/pgi-docgen: current

<^> python27 pgi-docgen.py -f temp "Gtk-3.0" Create docs: Namespace=Gtk, Version=3.0 Parsing GIR: Gtk-3.0 Parsing GIR: Gdk-3.0 Parsing GIR: cairo-1.0 Parsing GIR: Pango-1.0 Parsing GIR: GObject-2.0 Parsing GIR: GLib-2.0 Parsing GIR: Gio-2.0 Parsing GIR: GdkPixbuf-2.0 Parsing GIR: GModule-2.0 Parsing GIR: Atk-1.0 Traceback (most recent call last): File "pgi-docgen.py", line 81, in gen.write() File "d:\sources\pgi-docgen\pgidocgen\main.py", line 51, in write gen.write() File "d:\sources\pgi-docgen\pgidocgen\api.py", line 48, in write gen.write() File "d:\sources\pgi-docgen\pgidocgen\module.py", line 114, in write code = repo.parse_properties(obj) File "d:\sources\pgi-docgen\pgidocgen\repo.py", line 507, in parse_properties if spec.owner_type.pytype is obj: File "c:\python27\lib\site-packages\pgi\properties.py", line 51, in owner_type return PGType(self._spec.contents.owner_type) ValueError: NULL pointer access

lazka commented 10 years ago

Thanks. I can't directly reproduce on XP, but I had the same error with some libs on linux. i'll investigate.

lazka commented 10 years ago

Please try again with both updated.

tumagonx commented 10 years ago

great, it works now thanks