From: Paulo S. <ps...@ig...> - 2005-02-25 15:32:42
|
Hi, i have an wxPython application running on windows perfectly, but when i tried to run it on linux (debian) it gave the following error: Traceback (most recent call last): File "confServ.py", line 88, in ? app = model.Application(CConfServ) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 365, in __init__ wx.App.__init__(self, 0) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py", line 5311, in __init__ self._BootstrapApp() File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py", line 4990, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 417, in OnInit self._initBackgrounds(self.resource) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 410, in _initBackgrounds bg = self.frameClass(None, bgRsrc) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 626, in __init__ aBgRsrc.name) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_windows.py", line 408, in __init__ newobj = _windows_.new_Frame(*args, **kwargs) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 21: ordinal not in range(128) On windows i had a similarly problem with coding but the statement # "#-*- coding: cp1252 -*-" resolved the problem. Thanks in advance, Paulo Sérgio. |