免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2145 | 回复: 0
打印 上一主题 下一主题

SPE 运行一段时间就不能用了? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-10 14:54 |只看该作者 |倒序浏览
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 :
- encoding  : iso-8859-1
Launching application...
Create: Mdi: .tabs
Create: Mdi:   .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报告错误而不能启动!


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4799/showart_153681.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP