2004年08月25日 星期三 15:26
在一台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等,可是我重装覆盖,都是不行 谁知道到底是哪里有问题。
2004年08月25日 星期三 15:33
gentoo.cn,您好! 曾经有人说装过plone会影响wxPython的,因为plone自带一个。查一查你的路径设置是不是有别的东西在里面。我看见了: File "C:\Program Files\Plone 2\Python\lib\site-packages\wxPython\wx.py", 真是plone搞的。 ======= 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 chatme at 263.net 2004-08-25
2004年08月25日 星期三 15:33
Zoom.Quiet,您好! 我上传了一个用graphviz生成的图。看一看吧。 ======= 2004-08-25 14:40:40 您在来信中写道:======= >Hollo , >ps. >那个关系图是使用 >PyUMLGraphy 生成的,还是使用Graphviz 脚本?? > >++++++++++++++++++++++++++++++++++++++++ > 咦咦咦?!?! >没有想到,一个模板解析失败的示例,居然可以催生一个全新的模块! >http://wiki.woodpecker.org.cn/moin.cgi/Otter_2fOtterTemplet#head-784c68bff82aeb6e3602b762f5ecc3328643ce62 > >大家都去看一看哪! >模板,通用模板,Python 代码模板……………… >是比数学游戏实用的小工具开发哪! > >感谢Limodou 的示范! > >http://wiki.woodpecker.org.cn/moin.cgi/meteor_28_e6_b5_81_e6_98_9f_29_e6_a8_a1_e6_9d_bf_e7_b3_bb_e7_bb_9f_e8_af_b4_e6_98_8e > > >-- >Free as in Freedom > > Zoom.Quiet > >#=========================================# >]Time is unimportant, only life important![ >#=========================================# > >sender is the Bat!2.12.00 > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! limodou chatme at 263.net 2004-08-25
2004年08月25日 星期三 15:37
看起来你的程序实际调用的是机器上安装的 Plone 2 里面的 wx,那个 版本低,没有程序运行必须的特性。 On 2004-08-25 15:26:1093418765 +0800, gentoo.cn wrote: > 在一台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等,可是我重装覆盖,都是不行 > 谁知道到底是哪里有问题。
Zeuux © 2025
京ICP备05028076号