当执行一个名为ride.py文件,我得到了以下错误消息:运行ride.py显示错误“的wxPython使用ANSI编码,不支持”
wxPython中使用ANSI编码,不支持你需要安装 带有unicode支持的wxPython 2.8工具包来运行RIDE。有关更多信息,请参阅 http://wxpython.org。
配置:
- 我的操作系统是CentOS6
- Python版本是2.7
- wxWidget版本是2.8.12
- 乘坐版本robotframework骑-1.1
- robotframework版本是2.7.7
它看起来骑车不支持ansi模式。 但xw.platformINfo包含如下的“ansi”。
>>> print wx.PlatformInfo
('__WXGTK__', 'wxGTK', 'ansi', 'gtk2', 'wx-assertions-off', 'SWIG-1.3.29')
但是作为源代码的wxPython是在OS上编译的。所以我不知道如何设置“ansi”模式。 编译步骤说明如下:
$../configure --prefix=/opt/wx/2.8 \
--with-gtk \
--with-gnomeprint \
--with-opengl \
--enable-debug \
--enable-debug_gdb \
--enable-geometry \
--enable-graphics_ctx \
--enable-sound --with-sdl \
--enable-mediactrl \
--enable-display \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-libtiff=builtin \
--with-zlib=builtin ;
$vi .make
(content of .make file)
make $* \
&& make -C contrib/src/gizmos $* \
&& make -C contrib/src/stc $*
$.make
$.make install
$cd wxPython
$python setup.py build_ext --inplace --debug WX_CONFIG=/opt/wx/2.8/bin/wx-config BUILD_GLCANVAS=0
$python setup.py install WX_CONFIG=/opt/wx/2.8/bin/wx-config
感谢您的意见。
我可以更改wx.PlatformInfo的价值?????
感谢您的帮助。但它不起作用。 – user2378427 2013-05-14 07:09:01