ライドはソリューションを開始できません

手順に従ってrobotframework-rideをインストールすると、図に示すように、
python ride.pyコマンドを使用するとエラーが報告されることがわかりました

Traceback (most recent call last):
  File "D:\python\lib\site-packages\robotide\application\application.py", line 58, in OnInit
    self.frame = RideFrame(self, self._controller)
  File "D:\python\lib\site-packages\robotide\ui\mainframe.py", line 175, in __init__
    self._init_ui()
  File "D:\python\lib\site-packages\robotide\ui\mainframe.py", line 279, in _init_ui
    self.tree = Tree(self, self.actions,
  File "D:\python\lib\site-packages\robotide\ui\tree.py", line 86, in __init__
    self._images = TreeImageList()
  File "D:\python\lib\site-packages\robotide\ui\images.py", line 42, in __init__
    TestCaseController: _TreeImage(self, 'robot.png'),
  File "D:\python\lib\site-packages\robotide\ui\images.py", line 80, in __init__
    self.normal = self._get_image(image_list, normal)
  File "D:\python\lib\site-packages\robotide\ui\images.py", line 91, in _get_image
    img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

長い間オンラインで検索した後、最終的に解決策を見つけました:
この文をファイルD:\ python \ Lib \ site-packages \ robotide \ application \ application.pyに追加します

self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

図:
ここに画像の説明を挿入
これはwxpython言語の問題が原因です

D:\ python \ Scriptsの下で
python ride.pyを再度実行し、
最後にライドを開きます。
ここに画像の説明を挿入
参照リンク:https : //www.pythonheidong.com/blog/article/53154/

おすすめ

転載: blog.csdn.net/shenshenruoxi/article/details/106655003