SOLVED Ubuntu 19.10 Kicad Pcb_new Error. Unable to create the python console

Hi guys. My system is ubuntu 19.10 My problem is python script and Interactive bom not working. How I fix this problems? Thanks for answers

Paste full kicad version information.

5.1.4 latest version

Full version info is in Help -> About -> Show Version Info, it’s a lot more than just a number.

Also a few things to try

  1. Run apt-get install -f to fix any broken packages.
  2. Run interactive bom from console with python3 generate_interactive_bom.py <path to pcb file> --show-dialog. Paste output here if there are any errors.

Version:5.1.+ dfsg1-1,relaese build

Qu1ck’s instructions might be a bit of, what we actually need is Help -> About -> Copy Version Info and paste complete info in the reply. Should be something like:

Application: KiCad
Version: (5.1.5-rc1-10-gd701c3a48)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013

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

Application: KiCad
Version: 5.1.4+dfsg1-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.9.0/openssl/zlib nghttp2/1.39.2 librtmp/2.3
Platform: Linux 5.3.0-23-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.1
Compiler: Clang 8.0.1 with C++ ABI 1002

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

This looks like you are using the shipped Kicad version by Eaon Ermine aka Ubuntu 19.10. This version was pulled into Ubuntu from the Debian archives.

https://launchpad.net/ubuntu/+source/kicad

Unfortunately until 5.1.4+dfsg1-1 there was a wrong dependency on the Python2 version of wxgtk3.0 within the kicad binary set. This was fixed a few days ago which ended in a new version 5.1.4+dfsg1-2 within Debian unstable and testing. I’m sure your issue is related to this.

But version 5.1.4+dfsg1-2 isn’t available in 19.10. so far I know. You might be able to install the version from the current development release of Ubuntu or you might switch over to the PPA from Jean-Samuel. The latter option is mostly the preferred option in the long term so you can keep track on newer versions of KiCad.

3 Likes

Thanks for answer. I preferred 2nd option(PPA from Jean-Samuel.) and SOLVED it. Thanks for your help

It’s worth filing a bug report against Ubuntu with the broken shipped version

I sent the error message to ubuntu.

1 Like

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