wx.App() crashes on Kubuntu Natty

Hi everyone,

my Ubuntu Natty 11.04, python 2.7, wxlib 2.8, libglib 2.0 does not
like wx. If I try

import wx
aux=wx.App()

I get the message

(python:8865): GLib-CRITICAL **: g_hash_table_insert_internal:
assertion `hash_table != NULL' failed

How can I cope with this problem?

Bes wishes from Germany

Poseidonius

Does it actually crash or is it a warning and execution of the program continues?

I don't have an active kubuntu box anymore but things are working fine on my 11.04 ubuntu box. Because of how GTK works there are a few factors that can cause different warnings to be printed in different environments, even when they are mostly the same. For example some themes are not just simple styles and such, but "engines" that have some of their code executed at runtime, and that could be where the warning is coming from. In these cases you may see the same warnings if you run other GTK apps from a command line.

···

On 11/18/11 2:18 AM, Poseidonius wrote:

Hi everyone,

my Ubuntu Natty 11.04, python 2.7, wxlib 2.8, libglib 2.0 does not
like wx. If I try

import wx
aux=wx.App()

I get the message

(python:8865): GLib-CRITICAL **: g_hash_table_insert_internal:
assertion `hash_table != NULL' failed

How can I cope with this problem?

--
Robin Dunn
Software Craftsman