ModuleNotFoundError: No module named 'pcbnew'

Hello all,

I have a somewhat fresh install of KDE neon (Ubuntu 22.04) where I installed the Kicad nightly from PPA.

I have installed InteractiveHtmlBom plugin, but the icon did not appeared in the pcbnew.

I tried to run the scripting console and it greeted me with:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/kicad-nightly/scripting/kicad_pyshell/__init__.py", line 23, in <module>
    import pcbnew
ModuleNotFoundError: No module named 'pcbnew'

I only have Python3 installed:

mm@P15:~$ python
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux

My version info is:

Application: KiCad PCB Editor x86_64 on x86_64

Version: 7.99.0-unknown-dd8b52af93~170~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 2.7.4
	FontConfig 2.13.1
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.14

Platform: KDE neon 5.27, 64 bit, Little endian, wxGTK, KDE, x11

Build Info:
	Date: Mar 23 2023 08:33:41
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.81.0
	ngspice: 38
	Compiler: GCC 11.3.0 with C++ ABI 1016

Build settings:

Yes the build settings section is empty.
Any help would be appreciated!

1 Like

The 7.99 version is a development ‘bleeding edge’ version and it is not considered stable. The latest ‘stable’ build is 7.0.1. Unless you really know what you are doing I would stick to using the 7.0.1 version. You also need to be aware that any designs you do in 7.99 can’t subsequently be opened by 7.0.x.

Yeah I used the nightly to testdrive my contributions, but with the 7.0 release I have nothing in the pipe.
I installed 7.01 from PPA and it works correctly so it must be something regression in the nightly.
Many thanks for your advice!

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