After updating to Ubuntu 20.04, I (and all my colleagues) can’t run anything python related in Kicad anymore. When opening the Python Console in PCBnew, I get the error message “Error: unable to create the Python Console”.
When running kicad from a terminal, I get the following error message:
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/lib/python3/dist-packages/wx/init.py”, line 12, in version = wx.version.VERSION_STRING
AttributeError: module ‘wx’ has no attribute ‘version’
I have tried the different reinstall suggestions found here on the forum but with no luck.
Is this a general issue with 20.04? Suggestions are more than welcome
Thanks
Application: Pcbnew
Version: 5.1.5-br-unknown-nightly-202005092132, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-39-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.67.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.65.3
Compiler: GCC 9.2.1 with C++ ABI 1013
Especially because I have a stable 5.1.6.
Where do you get your KiCad version from?
I’m running Mint and I get my Kicad is from: “js-reynaud/kicad-5.1”
For some time the nightlies have version number 5.99, but I’m not sure if there are different kind of “current” nightlies.
Application: KiCad
Version: 5.1.6-c6e7f7d~86~ubuntu18.04.1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 5.3.0-59-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
Boost: 1.65.1
OpenCASCADE Community Edition: 6.9.1
Curl: 7.58.0
Compiler: GCC 7.5.0 with C++ ABI 1011
I am not sure how you upgraded, but something is definitely not right. The latest in the ppa the 5.1 branch for 20.04 is 5.1.6-202005120818+c6e7f7d~86~ubuntu20.04.1 as mentioned by paulvdh by the time of writing this.
When installing from the daily ppa (js-reynaud/kicad-5-nightly), the Python console is NOT working.
after purging kicad and reinstalling using stable PPA (ppa:js-reynaud/kicad-5.1) The python console is working again