Traceback (most recent call last):
File “”, line 1, in
File “/usr/share/kicad/scripting/kicad_pyshell/init.py”, line 17, in
import wx
File “/usr/local/lib/python3.7/dist-packages/wx/init.py”, line 12, in version = wx.version.VERSION_STRING
AttributeError: module ‘wx’ has no attribute ‘version’
the error msg output is from pcbnew, when I click “scripting console”
~ » pcbnew marco@thinkPad
09:40:08 AM: Debug: Disabling glCopyBuffer() on intel GPU
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/kicad/scripting/kicad_pyshell/__init__.py", line 17, in <module>
import wx
File "/usr/local/lib/python3.7/dist-packages/wx/__init__.py", line 12, in <module>
__version__ = wx.__version__.VERSION_STRING
AttributeError: module 'wx' has no attribute '__version__'
====
when i import wx in python console, it’s ok
~ » ipython marco@thinkPad
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import wx
In [2]: wx.version()
Out[2]: '4.0.6 gtk3 (phoenix) wxWidgets 3.0.5'