(solved) [ nightly - 6.99 ] broken Scripting console ? Linux Ubuntu 22.10 / 22.04

i’m trying to test some plugins, ‘replicate layout’ in particular under latest nightly, but i’m not successful up to now, the root of the problem i think is related to this, the python console is not working:

image

this is happening under my older Ubuntu 22.04 installation and under a pristine 22.10 installation.

6.10 on the same system is working fine.

can anyone under Ubuntu confirm?

Application: KiCad x86_64 on x86_64

Version: 6.99.0-unknown-b93a3a57d7~164~ubuntu22.10.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.12.1
	HarfBuzz 2.7.4
	FontConfig 2.13.1
	libcurl/7.85.0 OpenSSL/3.0.5 zlib/1.2.11 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.3 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.49.0 librtmp/2.3

Platform: Ubuntu 22.10, 64 bit, Little endian, wxGTK, mate, x11

Build Info:
	Date: Dec 31 2022 20:32:48
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.6.3
	Curl: 7.85.0
	ngspice: 38
	Compiler: GCC 12.2.0 with C++ ABI 1017

Build settings:
	KICAD_USE_EGL=ON
	KICAD_SPICE=ON

Seeing the same issue on 22.10

Usually a plugin must be reworked for the next major version.

It could be the case here.

The issue us happening when you click on the python scripting console, so it’s not that.

Best would be to raise a issue on Issues · KiCad / KiCad Source Code / kicad · GitLab

1 Like

i suspected that, ‘replicate design’ in fact must be ‘forced’ to be installed on 6.99, but i’ve tried several plugins with the same result and still the python console not working is a bit worrying…

If i receive further confirmations i think i’ll be opening a issue, just to let more capable minds than me be aware of that…

The issue is due to wxWidgets mismatch.

(K)ubuntu ships with 3.0.5, but KiCad 6.99 has been built against 3.2.1.

With commit #0a044656 KiCad detects this and disables wxpython interface (scripting console and action plugin interface)

I suspect that we’ll have to install wxWidgets 3.2.1 (at the moment I don’t have a clue how to do this.

As for Replicate Layout plugin, the plugin is in the process of being ported to 6.99. There compatible version (2.0.0) now available but it does not work properly. I intend to fix it but I am still in the process of setting up a development environment to properly debug and test it. So you’ll have to wait.

EDIT: change reference from wxpython to wxwidgets

1 Like

thanks MitjaN,
i’m following KiCad and your plugin very closely, please let me know if i can be of assistance in any way,
for example testing stuff…
C.

1 Like

When I open the schematic or PCB editor in my current nightly I get:

And it’s a wild guess, but the thread below may also be related to this.

Application: KiCad x86_64 on x86_64

Version: 6.99.0-unknown-7d1f25fbf1~164~ubuntu20.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.10.1
	HarfBuzz 2.6.4
	FontConfig 2.13.1
	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 Mint 20.3, 64 bit, Little endian, wxGTK, xfce, x11

Build Info:
	Date: Jan  3 2023 21:39:21
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.5.2
	Curl: 7.68.0
	ngspice: 38
	Compiler: GCC 9.4.0 with C++ ABI 1013

Build settings:
	KICAD_USE_EGL=ON
	KICAD_SPICE=ON

1 Like

Python scripting is currently broken on Ubuntu PPA. We’re aware of the problem but don’t yet have a timeline for a fix.

@MitjaN Our Ubuntu PPA has wxWidgets 3.2.1 but it doesn’t yet have wxPython, which is the source of the issue.

Thanks for the info. So if I understand you correctly you (KiCad team or more specifically ubuntu packager) will also package correct wxwidgets? Am I correct in assuming that this will be done before V7 is released?

We have already packaged wxwidgets. What we haven’t done yet is package wxpython.

Sorry, my mistake. So you plan to package wxWidgets before V7 is released.

Yes, currently Ubuntu is broken as noted in this thread and obviously we have to fix that before release.

2 Likes

for the fellow Ubuntuers, suffering from wxPython-ache, in this post:

now lies the sweet medicine.

Thanks for the good work!

I am unclear how that backport works – is that a workaround to get the 3.2 widgets into the earlier LTS systems before loading v7-release-candidates? I was under the impression that the widgets were to be bundled into the upcoming v7-production release (and I think I will wait until the v7 release day to test further).

A quick unrelated off-topic question: any recommendations for a terminal emulator for linux (ubuntu-flavored if it matters)? And by that I don’t mean a shell terminal but a serial-port-via-usb-dongle terminal emulator. I have been using coolterm which gets the job done but it is really buggy on linux. I have used it for years on win and it has always been rock-solid. No fancy features needed as it is just for monitoring messages and sometimes for log-to-file. Any pointers appreciated, and message to keep the list noise down. thx.

i think that it is a temporary workaround, we’ll see very soon™ with the 7.0 release.

i use gtkterm:
image

Yes, that is wxWidgets 3.2 and matching wxPython for all currently supported releases, which allows you to compile KiCad 7.0.

These packages have also been copied into the KiCad 7.0 PPA, so you don’t need my PPA if you are waiting for the stable release, you get the relevant packages that way too.

FWIW, if you need the same for Debian bullseye (11), you can use

deb http://psi5.com/~geier/wx bullseye main as an APT source, which is signed by gpg key ID 9C43253495E4DCA837945F5BEBF67A846AABE354.

2 Likes

I think this was not fixed before the 7.0 stable release, still got the issue,
or it might be that I’m doing something wrong

image

Application: KiCad x86_64 on x86_64

Version: 7.0.0-da2b9df05c~162~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 6.0.0
	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.13

Platform: Ubuntu 22.04.1 LTS, 64 bit, Little endian, wxGTK, ubuntu, wayland

Build Info:
	Date: Feb 13 2023 14:17:19
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.87.0
	ngspice: 38
	Compiler: GCC 11.3.0 with C++ ABI 1016

Build settings:
	KICAD_SPICE=ON

ill try using the backports by @GyrosGeier and keep you guys updated
cc:/ @craftyjon

Ah ok, The Ubuntu PPA is still being worked on as mentioned on the discord server
will use the workaround for now.

1 Like

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