2004年08月25日 星期三 15:42
Hollo limodou:
其实简单的从系统的环境设置中恢复原来的设置就好的,
Plone 自个儿来全路径的启动脚本没有关系的…………
/******** [2004-08-25]15:41:18 ; limodou wrote:
limodou> gentoo.cn,您好!
limodou> 曾经有人说装过plone会影响wxPython的,因为plone自带一个。查一查你的路径设置是不是有别的东西在里面。我看见了:
limodou> File "C:\Program Files\Plone
limodou> 2\Python\lib\site-packages\wxPython\wx.py",
limodou> 真是plone搞的。
limodou> ======= 2004-08-25 15:26:05 您在来信中写道:=======
>>在一台Windows XP的机器上安装Python2.3.4 + pywin32-202.win32-py2.3 +
>>wxPythonWIN32-2.5.2.7u-Py23
>>装完后直接运行demo
>>就报错“"Warning: No handler found for image type"”
>>查看错误信息:
>>C:\Python23\Lib\site-packages\wx\demo>demo
>>Traceback (most recent call last):
>>File "C:\Python23\Lib\site-packages\wx\demo\demo.py", line 4, in ?
>>Main.main()
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1582, in main
>>app = MyApp(False)
>>File "C:\Program Files\Plone
>>2\Python\lib\site-packages\wxPython\wx.py",
>>line
>>1957, in __init__
>>_wxStart(self.OnInit)
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1567, in OnInit
>>splash = MySplashScreen()
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1538, in __init__
>>bmp = wx.Image(opj("bitmaps/splash.gif")).ConvertToBitmap()
>>File "C:\Program Files\Plone
>>2\Python\lib\site-packages\wxPython\image.py", li
>>ne 339, in ConvertToBitmap
>>val = imagec.wxImage_ConvertToBitmap(self, *_args, **_kwargs)
>>wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed
>>in e:\Pr
>>ojects\wx2.4\src\msw\bitmap.cpp(507): invalid image
>>
>>手工加入wx.InitAllImageHandlers()在init过程中
>>C:\Python23\Lib\site-packages\wx\demo>gvim main.py
>>还是有问题:
>>C:\Python23\Lib\site-packages\wx\demo>demo
>>Traceback (most recent call last):
>>File "C:\Python23\Lib\site-packages\wx\demo\demo.py", line 4, in ?
>>Main.main()
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1583, in main
>>app = MyApp(False)
>>File "C:\Program Files\Plone
>>2\Python\lib\site-packages\wxPython\wx.py",
>>line
>>1957, in __init__
>>_wxStart(self.OnInit)
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1567, in OnInit
>>splash = MySplashScreen()
>>File "C:\Python23\Lib\site-packages\wx\demo\Main.py", line 1542, in __init__
>>self.Bind(wx.EVT_CLOSE, self.OnClose)
>>AttributeError: MySplashScreen instance has no attribute 'Bind'
>>
>>C:\Python23\Lib\site-packages\wx\demo>
>>
>>
>>以前这个机器上可能以前装过其它的Python等,可是我重装覆盖,都是不行
>>谁知道到底是哪里有问题。
>>
>>
>>
>>
>>_______________________________________________
>>python-chinese list
>>python-chinese at lists.python.cn
>>http://python.cn/mailman/listinfo/python-chinese
>>
limodou> = = = = = = = = = = = = = = = = = = = =
limodou> 致
limodou> 礼!
limodou> limodou
limodou> chatme at 263.net
limodou> 2004-08-25
********************************************/
--
Free as in Freedom
Zoom.Quiet
#=========================================#
]Time is unimportant, only life important![
#=========================================#
sender is the Bat!2.12.00
Zeuux © 2025
京ICP备05028076号