[pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows
Dieter Verfaillie
dieterv at optionexplicit.be
Tue Nov 2 08:00:58 WST 2010
Hi,
Quoting "David ROY" <david at gamr7.com>:
> I'm trying to compile a Python package that uses pygtk and it's
> codegen/argtypes facilities (the package is pygoocanvas).
>
> I succeeded both on Linux and Windows (after having a hard time on
> Windows) but I still have some virtual accessors and interfaces not being
> created, on both platforms.
>
> This happens because some of the types used in the .defs files are unknown
> to argtypes:
>
> Could not write virtual accessor method GooCanvasItem.get_child_property:
> No ArgType for GValue*
> Could not write virtual accessor method GooCanvasItem.get_items_at: No
> ArgType for GList*
> Could not write virtual accessor method GooCanvasItem.child_notify: No
> ArgType for GParamSpec*
> etc...
I think you need to pass load_types='arg-types.py' when you create
your TemplateExtension for goocanvas.
You might take a look at the installer I've done for pygoocanvas at
http://github.com/dieterv/pygoocanvas for the complete setup.py.
Note: the code there depends on other improvements I've been working
on to make the whole building pyg* python bindings on windows with
mingw+msys work out of the box. Especially the patches to pygobject
and pygtk might interest you. You can find the git repos with my
patches at http://github.com/dieterv/
I'm providing built binaries (more like unofficial snapshots) of the
above work here: http://www.optionexplicit.be/projects/gnome-windows/
Just navigate to the newest directory, et voila :)
hth,
Dieter
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the pygtk
mailing list