wxwidgets - Running ride.py shows error "wxPython with ansi encoding is not supported" -
when executing file called ride.py, following error message:
wxpython ansi encoding not supported need install wxpython 2.8 toolkit unicode support run ride. see http://wxpython.org more information.
configuration:
- my os centos6
- python version 2.7
- wxwidget version 2.8.12
- ride version robotframework-ride-1.1
- robotframework version 2.7.7
it looks ride doesn't support ansi mode. xw.platforminfo includes "ansi" below.
>>> print wx.platforminfo ('__wxgtk__', 'wxgtk', 'ansi', 'gtk2', 'wx-assertions-off', 'swig-1.3.29')
but wxpython, source, compiled on os. don't know how set "ansi" mode. compile steps noted below:
$../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
thanks comments.
can change value of wx.platforminfo?????
it looks you've installed ansi version of wxpython , installation instructions robotframework-ride (their emphasis):
ride's gui implemented using wxpython toolkit. version 2.8.6 or newer unicode support required. ansi version not supported.
so you'll need reinstall wxpython after it's been built unicode support. per build guide, config should include --enable-unicode
, this:
../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 \ --enable-unicode \ --with-libjpeg=builtin \ --with-libpng=builtin \ --with-libtiff=builtin \ --with-zlib=builtin \
Comments
Post a Comment