Python论坛  - 讨论区

标题:[python-chinese] newedit_3.2 error message

2006年10月20日 星期五 04:10

Bian Alex python.bian在gmail.com
星期五 十月 20 04:10:10 HKT 2006

下了limodou的newedit作为学习WXPY的参考,运行是出现如下信息:

Traceback (most recent call last):
  File "D:\Downloads\newedit_3.2\NewEdit.py", line 246, in ?
    App()
  File "D:\Downloads\newedit_3.2\NewEdit.py", line 103, in __init__
    self.frame.Show()
AttributeError: 'NoneType' object has no attribute 'Show'

self.frame 为什么变了 'NoneType' ?
py2.4,wxpy2.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/132c9b65/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:02

limodou limodou在gmail.com
星期五 十月 20 09:02:47 HKT 2006

On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> 下了limodou的newedit作为学习WXPY的参考,运行是出现如下信息:
>
> Traceback (most recent call last):
>   File "D:\Downloads\newedit_3.2\NewEdit.py", line 246, in
> ?
>     App()
>   File "D:\Downloads\newedit_3.2\NewEdit.py", line 103, in
> __init__
>     self.frame.Show ()
> AttributeError: 'NoneType' object has no attribute 'Show'
>
> self.frame 为什么变了 'NoneType' ?
> py2.4,wxpy2.6

1. NewEdit已经改名为UliPad了。最新版本是3.4。你可以从
http://wiki.woodpecker.org.cn/moin/UliPad
中下载最新了,建议从svn中同步,因为已经有许多改动从3.4版发布
2. 这是有错误了,可以看一下error.txt


-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:08

Bian Alex python.bian在gmail.com
星期五 十月 20 09:08:01 HKT 2006

Ulipad3.4 downloading......
error.txt
[Traceback]Traceback (most recent call last):
  File "D:\Downloads\newedit_3.2\modules\Mixin.py", line 121, in execplugin
    v = f(*args, **kwargs)
  File "D:\Downloads\newedit_3.2\mixins\Import.py", line 34, in getmainframe
    app.mainframe = frame = MainFrame(app, filenames)
  File "D:\Downloads\newedit_3.2\mixins\MainFrame.py", line 95, in __init__
    makemenu.setmenutext(self, a)
  File "D:\Downloads\newedit_3.2\modules\makemenu.py", line 175, in
setmenutext
    caption = menu.GetText() + '\t' + accel[idname][0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0:
ordinal not in range(128)


2006/10/20, limodou <limodou at gmail.com>:
>
> On 10/20/06, Bian Alex <python.bian at gmail.com> wrote:
> > 下了limodou的newedit作为学习WXPY的参考,运行是出现如下信息:
> >
> > Traceback (most recent call last):
> >   File "D:\Downloads\newedit_3.2\NewEdit.py", line 246, in
> > ?
> >     App()
> >   File "D:\Downloads\newedit_3.2\NewEdit.py", line 103, in
> > __init__
> >     self.frame.Show ()
> > AttributeError: 'NoneType' object has no attribute 'Show'
> >
> > self.frame 为什么变了 'NoneType' ?
> > py2.4,wxpy2.6
>
> 1. NewEdit已经改名为UliPad了。最新版本是3.4。你可以从
> http://wiki.woodpecker.org.cn/moin/UliPad
> 中下载最新了,建议从svn中同步,因为已经有许多改动从3.4版发布
> 2. 这是有错误了,可以看一下error.txt
>
>
> --
> I like python!
> UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/1bce02cf/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:24

limodou limodou在gmail.com
星期五 十月 20 09:24:24 HKT 2006

On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> Ulipad3.4 downloading......
> error.txt
> [Traceback]Traceback (most recent call last):
>   File "D:\Downloads\newedit_3.2\modules\Mixin.py", line
> 121, in execplugin
>     v = f(*args, **kwargs)
>   File "D:\Downloads\newedit_3.2\mixins\Import.py", line
> 34, in getmainframe
>     app.mainframe = frame = MainFrame(app, filenames)
>   File "D:\Downloads\newedit_3.2\mixins\MainFrame.py", line
> 95, in __init__
>     makemenu.setmenutext(self, a)
>   File "D:\Downloads\newedit_3.2\modules\makemenu.py", line
> 175, in setmenutext
>     caption = menu.GetText() + '\t' + accel[idname][0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0:
> ordinal not in range(128)
>
你的python什么版本?

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:25

limodou limodou在gmail.com
星期五 十月 20 09:25:35 HKT 2006

On 10/20/06, limodou <limodou在gmail.com> wrote:
> On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> > Ulipad3.4 downloading......
> > error.txt
> > [Traceback]Traceback (most recent call last):
> >   File "D:\Downloads\newedit_3.2\modules\Mixin.py", line
> > 121, in execplugin
> >     v = f(*args, **kwargs)
> >   File "D:\Downloads\newedit_3.2\mixins\Import.py", line
> > 34, in getmainframe
> >     app.mainframe = frame = MainFrame(app, filenames)
> >   File "D:\Downloads\newedit_3.2\mixins\MainFrame.py", line
> > 95, in __init__
> >     makemenu.setmenutext(self, a)
> >   File "D:\Downloads\newedit_3.2\modules\makemenu.py", line
> > 175, in setmenutext
> >     caption = menu.GetText() + '\t' + accel[idname][0]
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0:
> > ordinal not in range(128)
> >
> 你的python什么版本?
>
建议你使用snapshot或svn中的版本,这块我改过的。


-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:38

Bian Alex python.bian在gmail.com
星期五 十月 20 09:38:29 HKT 2006

python2.4.2



2006/10/20, limodou <limodou at gmail.com>:
>
> On 10/20/06, limodou <limodou at gmail.com> wrote:
> > On 10/20/06, Bian Alex <python.bian at gmail.com> wrote:
> > > Ulipad3.4 downloading......
> > > error.txt
> > > [Traceback]Traceback (most recent call last):
> > >   File "D:\Downloads\newedit_3.2\modules\Mixin.py", line
> > > 121, in execplugin
> > >     v = f(*args, **kwargs)
> > >   File "D:\Downloads\newedit_3.2\mixins\Import.py", line
> > > 34, in getmainframe
> > >     app.mainframe = frame = MainFrame(app, filenames)
> > >   File "D:\Downloads\newedit_3.2\mixins\MainFrame.py", line
> > > 95, in __init__
> > >     makemenu.setmenutext(self, a)
> > >   File "D:\Downloads\newedit_3.2\modules\makemenu.py", line
> > > 175, in setmenutext
> > >     caption = menu.GetText() + '\t' + accel[idname][0]
> > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position
> 0:
> > > ordinal not in range(128)
> > >
> > 你的python什么版本?
> >
> 建议你使用snapshot或svn中的版本,这块我改过的。
>
>
> --
> I like python!
> UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/4806e09e/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 09:59

limodou limodou在gmail.com
星期五 十月 20 09:59:00 HKT 2006

On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> python2.4.2
>
>
我用2.4.3就不存在这个问题。不过你更新了代码更试一下吧。

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 10:01

Bian Alex python.bian在gmail.com
星期五 十月 20 10:01:12 HKT 2006

snapshot的3.4出现同样错误

在06-10-20,Bian Alex <python.bian at gmail.com> 写道:
>
> python2.4.2
>
>
>
> 2006/10/20, limodou <limodou at gmail.com>:
> >
> > On 10/20/06, limodou <limodou at gmail.com> wrote:
> > > On 10/20/06, Bian Alex < python.bian at gmail.com> wrote:
> > > > Ulipad3.4 downloading......
> > > > error.txt
> > > > [Traceback]Traceback (most recent call last):
> > > >   File "D:\Downloads\newedit_3.2\modules\Mixin.py", line
> > > > 121, in execplugin
> > > >     v = f(*args, **kwargs)
> > > >   File "D:\Downloads\newedit_3.2\mixins\Import.py", line
> > > > 34, in getmainframe
> > > >     app.mainframe = frame = MainFrame(app, filenames)
> > > >   File "D:\Downloads\newedit_3.2\mixins\MainFrame.py", line
> > > > 95, in __init__
> > > >     makemenu.setmenutext(self, a)
> > > >   File "D:\Downloads\newedit_3.2\modules\makemenu.py", line
> > > > 175, in setmenutext
> > > >     caption = menu.GetText() + '\t' + accel[idname][0]
> > > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position
> > 0:
> > > > ordinal not in range(128)
> > > >
> > > 你的python什么版本?
> > >
> > 建议你使用snapshot或svn中的版本,这块我改过的。
> >
> >
> > --
> > I like python!
> > UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> > My Blog: http://www.donews.net/limodou
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/729337d5/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 10:06

limodou limodou在gmail.com
星期五 十月 20 10:06:46 HKT 2006

On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> snapshot的3.4出现同样错误
>
很奇怪,只有很少的人出现过。不如使用英文界面得了

在UliPad目录下增加一个名为config.ini的文件,然后加入以下内容:

[language]
default =

这样启动就是英文界面了。有时间我装个python2.4.2试试吧。

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 10:40

Bian Alex python.bian在gmail.com
星期五 十月 20 10:40:32 HKT 2006

改成英文界面,可以正常使用了,谢谢

2006/10/20, limodou <limodou at gmail.com>:
>
> On 10/20/06, Bian Alex <python.bian at gmail.com> wrote:
> > snapshot的3.4出现同样错误
> >
> 很奇怪,只有很少的人出现过。不如使用英文界面得了
>
> 在UliPad目录下增加一个名为config.ini的文件,然后加入以下内容:
>
> [language]
> default =
>
> 这样启动就是英文界面了。有时间我装个python2.4.2试试吧。
>
> --
> I like python!
> UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/08d5e044/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 17:00

Bian Alex python.bian在gmail.com
星期五 十月 20 17:00:45 HKT 2006

找到出错的原因了,我用的是ansi的wx.谢谢li兄
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0:
ordinal not in range(128)

在06-10-20,Bian Alex <python.bian at gmail.com> 写道:
>
> 改成英文界面,可以正常使用了,谢谢
>
> 2006/10/20, limodou <limodou at gmail.com>:
> >
> > On 10/20/06, Bian Alex <python.bian at gmail.com> wrote:
> > > snapshot的3.4出现同样错误
> > >
> > 很奇怪,只有很少的人出现过。不如使用英文界面得了
> >
> > 在UliPad目录下增加一个名为config.ini的文件,然后加入以下内容:
> >
> > [language]
> > default =
> >
> > 这样启动就是英文界面了。有时间我装个python2.4.2试试吧。
> >
> > --
> > I like python!
> > UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> > My Blog: http://www.donews.net/limodou
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061020/22c1bcba/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年10月20日 星期五 17:02

limodou limodou在gmail.com
星期五 十月 20 17:02:58 HKT 2006

On 10/20/06, Bian Alex <python.bian在gmail.com> wrote:
> 找到出错的原因了,我用的是ansi的wx.谢谢li兄
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0:
> ordinal not in range(128)
>
哦,原来如此。

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号