免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-10 14:30 |只看该作者 |倒序浏览
python SPE.py --debug >  debug1.txt  2>&1


  1. SPE v0.8.2.a (c)2003-2005 www.stani.be

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

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

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

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

  16. Launching application...
  17. Create: Mdi: <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.tabs
  18. Create: Mdi:   <class 'sm.wxp.smdi.MdiSashTabsParentFrame'>.tabs
  19. Create: Framework: menu.
  20. Create: Framework: toolbar.
  21. Create: Framework: statusbar.
  22. Creating tabs...
  23.         Shell
  24.         Locals
  25.         Session
  26.         Output
  27.         Find
  28.         Browser
  29.         Recent
  30.         Todo
  31.         Index
  32.         Notes
  33.         Donate
  34. Traceback (most recent call last):
  35.   File "SPE.py", line 209, in ?
  36.     style           = style)
  37.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 1278, in __init__
  38.     wx.App.__init__(self,redirect=not debug)
  39.   File "D:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py", line 7473, in __init__
  40.     self._BootstrapApp()
  41.   File "D:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py", line 7125, in _BootstrapApp
  42.     return _core_.PyApp__BootstrapApp(*args, **kwargs)
  43.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 1297, in OnInit
  44.     style   = self.style,
  45.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 671, in __init__
  46.     Parent.__init__(self,app=app,page=page,**options)
  47.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 595, in __init__
  48.     parentFrame     = self,
  49.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 326, in __init__
  50.     self.__finish__()
  51.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 740, in __finish__
  52.     Parent.__finish__(self)
  53.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 599, in __finish__
  54.     Framework.__finish__(self)
  55.   File "D:\Program Files\Python24\Lib\site-packages\_spe\sm\wxp\smdi.py", line 424, in __finish__
  56.     self.panel.__finish__()
  57.   File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 121, in __finish__
  58.     self.__frame__()
  59.   File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 169, in __frame__
  60.     self.__remember__(openFiles=self._openFiles)
  61.   File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 189, in __remember__
  62.     self.loadWorkspace()
  63.   File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 322, in loadWorkspace
  64.     verbose     = True)
  65.   File "D:\Program Files\Python24\Lib\site-packages\_spe\Parent.py", line 854, in openList
  66.     print 'Opening %s'%fileName
  67. UnicodeEncodeError: 'latin-1' codec can't encode characters in position 11-14: ordinal not in range(256)

复制代码


那位高手看过

论坛徽章:
0
2 [报告]
发表于 2006-08-10 14:40 |只看该作者

找了半天还算不错终于找到了,分享一下,就是不知道是不是因为这个

上次碰到这个问题的时候我就从新安装了操作系统解决的,
后来才发现他有debug信息嘿嘿,好多了!
从网上找了一下!

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

  6. sys.setdefaultencoding('gb2312')

  7. # python 2.4.* 才支持 gb2312
  8. ----------------------------
复制代码


不过个人觉得SPE 每次启动的时候会把你上次修改过的文件调出来,如果你直接关的是SPE而没有关文件的话!
这个有点不爽,怀疑如果再下次启动前你挪动这个文件或改名都有可能造成SPE报告错误而不能启动!

[ 本帖最后由 kai0200 于 2006-8-10 14:44 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2006-08-10 14:55 |只看该作者
应该不会,打不开应该可以跳过去。不过我没有用过SPE。

论坛徽章:
0
4 [报告]
发表于 2006-08-11 15:42 |只看该作者
这个东东不稳定
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP