文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>SPE 运行一段时间就不能用了?

SPE 运行一段时间就不能用了?

时间:2006-08-10  来源:kai0200

SPE 产生错误可能是因为安装了什么程序,造成编码问题这个我还不清出问题所在 python SPE.py --debug >  debug1.txt  2>&1
 
SPE v0.8.2.a (c)2003-2005 www.stani.be

If spe fails to start:
- type "python SPE.py --debug > debug.txt 2>&1" at the command prompt
   (or if you use tcsh: "python SPE.py --debug >& debug.txt")
- send debug.txt with some info to spe.stani.be[at]gmail.com

Blender support disabled (run SPE inside Blender to enable).

Encrypted debugging disabled.
  If you prefer encrypted debugging, install the "Python Cryptography Toolkit"
  from http://www.amk.ca/python/code/crypto

Spe is running in debugging mode with this configuration:
- platform  : win32
- python    : 2.4.3
- wxPython  : 2.6.1.0.
- interface : <default>
- encoding  : iso-8859-1

Launching application...
Create: Mdi: <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.tabs
Create: Mdi:   <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.tabs
Create: Framework: menu.
Create: Framework: toolbar.
Create: Framework: statusbar.
Creating tabs...
        Shell
        Locals
        Session
        Output
        Find
        Browser
        Recent
        Todo
        Index
        Notes
        Donate
Traceback (most recent call last):
  File "SPE.py", line 209, in ?
    style           = style)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 1278, in __init__
    wx.App.__init__(self,redirect=not debug)
  File "D:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py", line 7473, in __init__
    self._BootstrapApp()
  File "D:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py", line 7125, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 1297, in OnInit
    style   = self.style,
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 671, in __init__
    Parent.__init__(self,app=app,page=page,**options)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 595, in __init__
    parentFrame     = self,
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 326, in __init__
    self.__finish__()
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 740, in __finish__
    Parent.__finish__(self)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 599, in __finish__
    Framework.__finish__(self)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 424, in __finish__
    self.panel.__finish__()
  File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 121, in __finish__
    self.__frame__()
  File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 169, in __frame__
    self.__remember__(openFiles=self._openFiles)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 189, in __remember__
    self.loadWorkspace()
  File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 322, in loadWorkspace
    verbose     = True)
  File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 854, in openList
    print 'Opening %s'%fileName
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 11-14: ordinal not in range(256)  上次碰到这个问题的时候我就从新安装了操作系统解决的,
后来才发现他有debug信息嘿嘿,好多了!
从网上找了一下!

CODE:
[Copy to clipboard]

在  python/lib/sit-packages/
下建立文件  sitecustomize.py
内容为
----------------------------
import     sys

sys.setdefaultencoding('gb2312')

# python 2.4.* 才支持 gb2312
---------------------------- 不过个人觉得SPE 每次启动的时候会把你上次修改过的文件调出来,如果你直接关的是SPE而没有关文件的话!
这个有点不爽,怀疑如果再下次启动前你挪动这个文件或改名都有可能造成SPE报告错误而不能启动!
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载