wxPython: help(wx) causes segfaulting?

Tim Chase python.list at tim.thechases.com
Sun Feb 26 11:35:13 EST 2006


Trying to get my feet wet with wxPython (moving from just 
command-line apps), I tried the obvious (or, at least to me 
was obvious):

Start python, "import wx" and then do a "help(wx)" to see 
what it can tell me.

Unfortunately, it spewed back a handful of errors, gasped, 
wheezed and died semi-hideously.

It's a stock install of Python 2.3.5 on Debian (testing). 
The session has been pasted below if it's of any help.  I 
can successfully "dir(wx)" and get back all the goods. 
However, the call to help() bombs out.

I'm having trouble figuring out what went wrong in the 
matter:  it looks like "g_object_new" is failing some 
assertion test, but not knowing the internal workings of 
CPython, I'm afraid this doesn't mean much to me.  Any help 
or suggestions would be appreciated.

If it makes a difference, other wxPython apps seem to run 
just fine (particularly pyalacarte has no trouble).

Thanks,

-tkc


Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more 
information.
 >>> import wx
 >>> help(wx)

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: 
g_type_add_interface_static: assertion 
`G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use IA__g_type_init() prior 
to this function

(process:11000): GLib-GObject-CRITICAL **: g_object_new: 
assertion `G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault







More information about the Python-list mailing list