Hello I am interested to run some python scripts for Kicad (KiKit) and only work in python 3.
I downloaded last Kicad version and I see that the python console is still in python 2.7, no… nothing works.
How can I use Kicad python scripting with Python 3??
In the KiCon 2020 video from yesterday it was mentioned that the Linux versions of KiCad already uses Python3 (for maybe already half a year or so, maybe longer) while there are still some troubles with libraries for Windows and McIntosh.
Application: KiCad
Version: 5.1.7-a382d34a8~87~ubuntu20.04.1, 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-48-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.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.68.0
Compiler: GCC 9.3.0 with C++ ABI 1013
But it does not matter much probably. As programs often do, KiCad probably comes with it’s own python version baked in somewhere, to be independent on external programs.
Also note this line in your build settings:
Note:
I recently did a clean install of Linux Mint, and there was no “python”. I had to explicitly choose between python2 or python3, so I made a symbolic link for “python” to point to python3, as python 2 is officially obsolete since 2020-01-01. Just a week ago I read on the Linux Mint forum of somewone who updated to Mint 20, and he had apparently still “python” pointing to python2.