errorMessageTemplate = Template("""$reason You need to install wxPython 2.8.12.1 with unicode support to run RIDE. 36 wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/""") supported_versions = ["2.8"]
try: import wxversion from wxversion import VersionError if sys.platform == 'darwin': supported_versions.append("2.9") supported_versions.append("3.0") # 新增该代码,让ride支持wxpython3.0 wxversion.select(supported_versions) import wx
查看 wxpython 是否在环境变量中
1
brew info wxpython
这说明正常
1 2 3 4 5 6 7 8 9 10
# taoyi @ TYMAC in ~ [1:57:29] C:1 $ brew info wxpython wxpython: stable 3.0.2.0 (bottled) Python bindings for wxWidgets https://www.wxwidgets.org/ /usr/local/Cellar/wxpython/3.0.2.0_1 (1,108 files, 37.9MB) * Poured from bottle on 2018-09-05 at 01:53:47 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wxpython.rb ==> Dependencies Required: python@2 ✔, wxmac ✔
# taoyi @ TyMac in ~ [0:12:56] $ which ride.py /Users/taoyi/.pyenv/shims/ride.py
这种情况就需要使用/usr/local/bin/ride.py来启动ride
1 2 3
# taoyi @ TyMac in ~ [0:13:00] $ which ride.py /usr/local/bin/ride.py
这种情况就只需要使用ride.py来启动ride
问题解决
遇到ride无法启动的问题【Windows】
1 2 3 4 5 6 7 8 9
Python 2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license"for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org >>> from robotide import main wxPython not found. You need to install wxPython 2.8 toolkit with unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
# taoyi @ TYMAC in ~/Desktop [21:22:36] $ /usr/local/bin/ride.py Wrong wxPython version. You need to install wxPython 2.8.12.1 with unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/