Menu

#198 importing wxPython crashes

open
nobody
None
5
2004-05-21
2004-05-21
No

It seems that some ingredients in the recipe are bad :-((
I'm running Linux Fedora Core 1.

$ rpm -Uvh wxGTK-devel-2.4.2-1.i386.rpm
wxGTK-2.4.2-1.i386.rpm
$ rpm -Uvh wxPythonGTK2-py2.2-2.5.1.5-1.i386.rpm

$ python -V
Python 2.2.3

$ python /usr/lib/python2.2/boa-constructor-0.2.3/Boa.py
Starting Boa Constructor v0.2.3
importing wxPython
reading user preferences

(process:9260): GLib-GObject-CRITICAL **: gtype.c:1871:
initialization assertion failed, use g_type_init()
prior to this function

(process:9260): Gdk-CRITICAL **: file gdkscreen-x11.c:
line 139 (gdk_screen_get_width): assertion
`GDK_IS_SCREEN (screen)' failed

(process:9260): GLib-GObject-CRITICAL **: gtype.c:1871:
initialization assertion failed, use g_type_init()
prior to this function

(process:9260): Gdk-CRITICAL **: file gdkscreen-x11.c:
line 157 (gdk_screen_get_height): assertion
`GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
File
"/usr/lib/python2.2/boa-constructor-0.2.3/Boa.py", line
214, in ?
import Preferences, About, Utils
File
"/usr/lib/python2.2/boa-constructor-0.2.3/Preferences.py",
line 157, in ?
if screenWidth / screenHeight >= 2:
ZeroDivisionError: integer division or modulo by zero

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I see exactly the same on my Mandrake 10 box:

    boa-constructor-0.2.3-2mdk
    wxPythonGTK-2.5.1.5-1mdk
    python-2.3.3-6mdk

    Cheers,

    Coops.

    coopsnakes@homemail.com.au

     
  • John A Meinel

    John A Meinel - 2004-07-24

    Logged In: YES
    user_id=266114

    I get that as well. I added 2 lines to do a workaround (if
    screenHeight == 0: screenHeight = 1)

    I don't know if this will help, though. I'm trying to run on
    wxPython2.5, and I'm getting *lots* of complaints about
    missing windows, etc. So it fixed that bug, but I didn't get
    it to work in the end.

     

Log in to post a comment.

MongoDB Logo MongoDB