Problem starting up the wxPython demo.py program

Hi all,

I just installed the wxPython-2.4.1.2 demo RPM on my RedHat Linux 9.0
machine, which has Python 2.2.2 on it, and I'm having a problem running the
demo.py program. Here is a trace of the results:

python demo.py
The font "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-1,
                  -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-15,
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-15,*-r-*"
does not support all the required character sets for the current locale
"en_US.iso885915"
  (Missing character set "ISO8859-15")
  (Missing character set "ISO8859-15")
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 16, in ?
    import wx # This module uses the new wx namespace
  File "/usr/lib/python2.2/site-packages/wx/__init__.py", line 45, in ?
    from wxPython import wx
  File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 6, in ?
    from misc2 import *
  File "/usr/lib/python2.2/site-packages/wxPython/misc2.py", line 18, in ?
    from utils import *
  File "/usr/lib/python2.2/site-packages/wxPython/utils.py", line 982, in ?
    wxCONFIG_USE_NO_ESCAPE_CHARACTERS =
utilsc.wxCONFIG_USE_NO_ESCAPE_CHARACTERS
AttributeError: 'module' object has no attribute
'wxCONFIG_USE_NO_ESCAPE_CHARACTERS'

Anyone have any ideas/suggestions about what this is or what I can do about
it?

Thanks in advance for your help,
Doug Farrell

Farrell, Doug wrote:

Hi all,

I just installed the wxPython-2.4.1.2 demo RPM on my RedHat Linux 9.0
machine, which has Python 2.2.2 on it, and I'm having a problem running the
demo.py program. Here is a trace of the results:

python demo.py
The font "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-1,
                  -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-15,
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-15,*-r-*"
does not support all the required character sets for the current locale
"en_US.iso885915"
  (Missing character set "ISO8859-15")

I think this can be fixed by setting LANG=en_US in the environment.

Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 16, in ?
    import wx # This module uses the new wx namespace
  File "/usr/lib/python2.2/site-packages/wx/__init__.py", line 45, in ?
    from wxPython import wx
  File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 6, in ?
    from misc2 import *
  File "/usr/lib/python2.2/site-packages/wxPython/misc2.py", line 18, in ?
    from utils import *
  File "/usr/lib/python2.2/site-packages/wxPython/utils.py", line 982, in ?
    wxCONFIG_USE_NO_ESCAPE_CHARACTERS =
utilsc.wxCONFIG_USE_NO_ESCAPE_CHARACTERS
AttributeError: 'module' object has no attribute
'wxCONFIG_USE_NO_ESCAPE_CHARACTERS'

This makes me think that you may have something left over from a previoius install. Uninstall the wxPythonGTK rpm and then ensure that there is nothing in /usr/lib/python2.2/site-packages/wxPython and then install wxPythonGTK again.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!