Ubuntu 21.04 unable to launch python console and add plugins

Ubuntu 21.04 updated to latest (update/upgrade)
Everything works fine except the python console and adding plugins

[1] Python console
Tried following python versions, all fail in launch in pcbnew

  • 0 /usr/bin/python2.7 1 auto mode
    1 /usr/bin/python2.7 1 manual mode
    2 /usr/bin/python3 1 manual mode
    Python 3 is 3.9.5
    where to find debug output for further debugging ?

[2] Trying to add plugins. nothing worked with plugins in the following folders (which one is correct?)
[HOME] .config/kicad/scripting
[HOME] .config/kicad/scripting/plugins
[HOME] .kicad_plugins
[HOME] .kicad_plugins/scripting
[HOME] .kicad_plugins/scripting/plugins

where to find debug output for further debugging ?

Application: Pcbnew
Version: 5.1.10-88a1d61d58~88~ubuntu20.10.1, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 OpenSSL/1.1.1j zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.5/openssl/zlib nghttp2/1.43.0 librtmp/2.3
Platform: Linux 5.11.0-37-lowlatency x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.5 (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 10.2.0 with C++ ABI 1014

Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON

See the discrepancy here?
You need to manually update the repo url in apt sources or whatever package manager UI ubuntu has. During OS upgrades those are not automatically changed. That should fix python issues.

Excellent. Thanks so much. For those interested following fixed it. Just wondering why kickad does not detect the discrpancy between the Ubuntu version and kicad itself or a warning or notice perhaps.

[1] sudo add-apt-repository --yes ppa:kicad/kicad-5.1-releases
sudo apt update
sudo apt install --install-recommends kicad

[2] put the plugins in [HOME]/.kicad_plugins and refresh

Application: Pcbnew
Version: 5.1.10-88a1d61d58~90~ubuntu21.04.1, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 OpenSSL/1.1.1j zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.5/openssl/zlib nghttp2/1.43.0 librtmp/2.3
Platform: Linux 5.11.0-37-lowlatency x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OpenCASCADE Technology: 7.5.1
Curl: 7.74.0
Compiler: GCC 10.3.0 with C++ ABI 1014

Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=OFF
KICAD_USE_OCC=ON
KICAD_SPICE=ON

I have never seen any software on Linux which would do that.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.