[SOLVED] Kicad Nightly "unable to create the Python console"

Using latest KiCad-nightly, I get an error when trying to run Python Console, but it works fine in stable version. See version info below.

ERROR
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘kicad_pyshell’

On the bug tracker, I found this issue which looks similar

Anyone got suggestions / tips ?

OS INFO
On 64-bit Ubuntu 20.04.1 LTS

VERSION INFO
Application: Pcbnew

Version: 5.99.0-unknown-d2d4ffe6d0~107~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.8.0-38-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11

Build Info:
Date: Jan 13 2021 10:17:22
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.3.0
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
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
KICAD_USE_OCC=ON
KICAD_SPICE=ON

You are probably running into https://gitlab.com/kicad/code/kicad/-/issues/7089
Just wait a day and install a newer nightly, it’s already fixed.

1 Like

The link below has two links to gitlab about a missing path to python, and this prevents the console to start.

1 Like

Ah, okay. I’ll wait it out.

Wait it out?
Just add an environment variable with the python path.
I did this a few weeks ago, and others have reported sucess with it too if you follow the links I posted.

1 Like

I’m quite clunky when it comes to fiddling with code, so thanks for the push. Adding a path to variable PYTHONPATH fixed it.

PYTHONPATH = /usr/share/kicad-nightly/scripting

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