Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it does not work. It is definitly installed. I can see the files and it can even be imported into python, but when I attempt to do anything like draw a window, python crashes with a Segmentation fault .

Here is what happens when I start the python in the promt and type into it

vindicator 108% python
Python 2.3.3 (#1, Feb  5 2005, 18:59:45)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from wxPython.wx import *
>>>
>>> class MyApp(wxApp):
...     def OnInit(self):
...         frame = wxFrame(NULL, -1, "Hello from wxPython")
...         frame.Show(true)
...         self.SetTopWindow(frame)
...         return true
...
>>> app = MyApp(0)
Segmentation fault
vindicator 109%

When I run the test program with a -v option this happens:

vindicator 109% python -v wxtest.py
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
import site # precompiled from /usr/lib/python2.3/site.pyc
# /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
import os # precompiled from /usr/lib/python2.3/os.pyc
import posix # builtin
# /usr/lib/python2.3/posixpath.pyc matches /usr/lib/python2.3/posixpath.py
import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc
# /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
import stat # precompiled from /usr/lib/python2.3/stat.pyc
# /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc
# /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc
# /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
import types # precompiled from /usr/lib/python2.3/types.pyc
# /usr/lib/python2.3/site-packages/sitecustomize.pyc matches /usr/lib/python2.3/site-packages/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.3/site-packages/sitecustomize.pyc
# /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
import warnings # precompiled from /usr/lib/python2.3/warnings.pyc
# /usr/lib/python2.3/linecache.pyc matches /usr/lib/python2.3/linecache.py
import linecache # precompiled from /usr/lib/python2.3/linecache.pyc
import encodings # directory /usr/lib/python2.3/encodings
# /usr/lib/python2.3/encodings/__init__.pyc matches /usr/lib/python2.3/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.3/encodings/__init__.pyc
# /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
import codecs # precompiled from /usr/lib/python2.3/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.3/encodings/utf_8.pyc matches /usr/lib/python2.3/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.3/encodings/utf_8.pyc
Python 2.3.3 (#1, Feb  5 2005, 18:59:45)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wxPython # directory /usr/lib/python2.3/site-packages/wxPython
# /usr/lib/python2.3/site-packages/wxPython/__init__.pyc matches /usr/lib/python2.3/site-packages/wxPython/__init__.py
import wxPython # precompiled from /usr/lib/python2.3/site-packages/wxPython/__init__.pyc
# /usr/lib/python2.3/site-packages/wxPython/__version__.pyc matches /usr/lib/python2.3/site-packages/wxPython/__version__.py
import wxPython.__version__ # precompiled from /usr/lib/python2.3/site-packages/wxPython/__version__.pyc
dlopen("/usr/lib/python2.3/site-packages/wxPython/wxc.so", 2);
import wxPython.wxc # dynamically loaded from /usr/lib/python2.3/site-packages/wxPython/wxc.so
# /usr/lib/python2.3/site-packages/wxPython/wx.pyc matches /usr/lib/python2.3/site-packages/wxPython/wx.py
import wxPython.wx # precompiled from /usr/lib/python2.3/site-packages/wxPython/wx.pyc
# /usr/lib/python2.3/site-packages/wxPython/misc.pyc matches /usr/lib/python2.3/site-packages/wxPython/misc.py
import wxPython.misc # precompiled from /usr/lib/python2.3/site-packages/wxPython/misc.pyc
# /usr/lib/python2.3/site-packages/wxPython/misc2.pyc matches /usr/lib/python2.3/site-packages/wxPython/misc2.py
import wxPython.misc2 # precompiled from /usr/lib/python2.3/site-packages/wxPython/misc2.pyc
# /usr/lib/python2.3/site-packages/wxPython/windows.pyc matches /usr/lib/python2.3/site-packages/wxPython/windows.py
import wxPython.windows # precompiled from /usr/lib/python2.3/site-packages/wxPython/windows.pyc
# /usr/lib/python2.3/site-packages/wxPython/gdi.pyc matches /usr/lib/python2.3/site-packages/wxPython/gdi.py
import wxPython.gdi # precompiled from /usr/lib/python2.3/site-packages/wxPython/gdi.pyc
# /usr/lib/python2.3/site-packages/wxPython/fonts.pyc matches /usr/lib/python2.3/site-packages/wxPython/fonts.py
import wxPython.fonts # precompiled from /usr/lib/python2.3/site-packages/wxPython/fonts.pyc
# /usr/lib/python2.3/site-packages/wxPython/clip_dnd.pyc matches /usr/lib/python2.3/site-packages/wxPython/clip_dnd.py
import wxPython.clip_dnd # precompiled from /usr/lib/python2.3/site-packages/wxPython/clip_dnd.pyc
# /usr/lib/python2.3/site-packages/wxPython/events.pyc matches /usr/lib/python2.3/site-packages/wxPython/events.py
import wxPython.events # precompiled from /usr/lib/python2.3/site-packages/wxPython/events.pyc
# /usr/lib/python2.3/site-packages/wxPython/streams.pyc matches /usr/lib/python2.3/site-packages/wxPython/streams.py
import wxPython.streams # precompiled from /usr/lib/python2.3/site-packages/wxPython/streams.pyc
# /usr/lib/python2.3/site-packages/wxPython/utils.pyc matches /usr/lib/python2.3/site-packages/wxPython/utils.py
import wxPython.utils # precompiled from /usr/lib/python2.3/site-packages/wxPython/utils.pyc
# /usr/lib/python2.3/site-packages/wxPython/mdi.pyc matches /usr/lib/python2.3/site-packages/wxPython/mdi.py
import wxPython.mdi # precompiled from /usr/lib/python2.3/site-packages/wxPython/mdi.pyc
# /usr/lib/python2.3/site-packages/wxPython/frames.pyc matches /usr/lib/python2.3/site-packages/wxPython/frames.py
import wxPython.frames # precompiled from /usr/lib/python2.3/site-packages/wxPython/frames.pyc
# /usr/lib/python2.3/site-packages/wxPython/stattool.pyc matches /usr/lib/python2.3/site-packages/wxPython/stattool.py
import wxPython.stattool # precompiled from /usr/lib/python2.3/site-packages/wxPython/stattool.pyc
# /usr/lib/python2.3/site-packages/wxPython/controls.pyc matches /usr/lib/python2.3/site-packages/wxPython/controls.py
import wxPython.controls # precompiled from /usr/lib/python2.3/site-packages/wxPython/controls.pyc
# /usr/lib/python2.3/site-packages/wxPython/controls2.pyc matches /usr/lib/python2.3/site-packages/wxPython/controls2.py
import wxPython.controls2 # precompiled from /usr/lib/python2.3/site-packages/wxPython/controls2.pyc
# /usr/lib/python2.3/site-packages/wxPython/windows2.pyc matches /usr/lib/python2.3/site-packages/wxPython/windows2.py
import wxPython.windows2 # precompiled from /usr/lib/python2.3/site-packages/wxPython/windows2.pyc
# /usr/lib/python2.3/site-packages/wxPython/cmndlgs.pyc matches /usr/lib/python2.3/site-packages/wxPython/cmndlgs.py
import wxPython.cmndlgs # precompiled from /usr/lib/python2.3/site-packages/wxPython/cmndlgs.pyc
# /usr/lib/python2.3/site-packages/wxPython/windows3.pyc matches /usr/lib/python2.3/site-packages/wxPython/windows3.py
import wxPython.windows3 # precompiled from /usr/lib/python2.3/site-packages/wxPython/windows3.pyc
# /usr/lib/python2.3/site-packages/wxPython/image.pyc matches /usr/lib/python2.3/site-packages/wxPython/image.py
import wxPython.image # precompiled from /usr/lib/python2.3/site-packages/wxPython/image.pyc
# /usr/lib/python2.3/site-packages/wxPython/printfw.pyc matches /usr/lib/python2.3/site-packages/wxPython/printfw.py
import wxPython.printfw # precompiled from /usr/lib/python2.3/site-packages/wxPython/printfw.pyc
# /usr/lib/python2.3/site-packages/wxPython/sizers.pyc matches /usr/lib/python2.3/site-packages/wxPython/sizers.py
import wxPython.sizers # precompiled from /usr/lib/python2.3/site-packages/wxPython/sizers.pyc
# /usr/lib/python2.3/site-packages/wxPython/filesys.pyc matches /usr/lib/python2.3/site-packages/wxPython/filesys.py
import wxPython.filesys # precompiled from /usr/lib/python2.3/site-packages/wxPython/filesys.pyc
# /usr/lib/python2.3/locale.pyc matches /usr/lib/python2.3/locale.py
import locale # precompiled from /usr/lib/python2.3/locale.pyc
dlopen("/usr/lib/python2.3/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /usr/lib/python2.3/lib-dynload/_locale.so
Segmentation fault
vindicator 110%

Can anyone, please, help me or at least give some ideas.

Alexander Bayden
http://bayden.org

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.