[spe-users] SPE and path problems in hungarian Windows

"Dara Durum" <[email protected]> Sun, 7 May 2006 16:26:08 +0200
Newsgroups gmane.comp.python.spe.user
Message-ID <[email protected]>
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate
--


Hi !

I have a problem with SPE in hungarian windows. Hun. lang. use
iso-8859-2 (or win1250) encodings.

When I want to open an existing python file, I got errors like this:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 424, in __finis
h__
    self.panel.__finish__()
  File "C:\Python24\Lib\site-packages\_spe\Child.py", line 128, in __finish__
    self.__source__(self._fileName,self._source)
  File "C:\Python24\Lib\site-packages\_spe\Child.py", line 245, in __source__
    menu        = self.parentFrame.menuBar.edit)
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\stc.py", line 67, in __init__
    if path and path not in sys.path: sys.path.append(path)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 39: ordinal
 not in range(128)
Event>: Framework: <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.Activate(False)
Event>: Framework: <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.Activate(False)
Event<: Framework: <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.Activate(True)
Event:  Parent: <class 'Parent.Panel'>.onActivate
Warning: Parent: <class 'Parent.Panel'>.onActivate failed
exceptions.Exception
'Panel' object has no attribute 'fileName'
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I think that this is caused by hungarian characters in sys.path.
The main problem, that temp/tmp dirs stored in actual user's "doc. and
setting" folder.
This user name is containing hun chars like "á","é", etc.

But I don't know, how to make solution to this problem.

When I open a "cmd" in _spe dir, and start SPE_DEBUG.py, I not get this problem.

But when I use original links (icon) to debug or start SPE, the bug is
appearing.

Thanx for help:
    dd