Page MenuHomeSolus

KDE Testing ISO: python3-tkinter fails
Closed, ResolvedPublic


I just tested the public ISO for Plasma and trying to open Idle for Python I got the following error:

Traceback (most recent call last):
  File "/usr/bin/idle3", line 5, in <module>
  File "/usr/lib/python3.6/idlelib/", line 1472, in main
    root = Tk(className="Idle")
  File "/usr/lib/python3.6/tkinter/", line 2020, in __init__ = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: unknown color name "BACKGROUND"

This is a problem with python-tkinter and if you try to test tkinter you get the same error:

$ python3
Python 3.6.6 (default, Oct  7 2018, 22:15:25) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>> tkinter.test
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'tkinter' has no attribute 'test'
>>> tkinter._test()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/tkinter/", line 3985, in _test
    root = Tk()
  File "/usr/lib/python3.6/tkinter/", line 2020, in __init__ = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: unknown color name "BACKGROUND"

This can be fixed with the following two commands:

$ xrdb -load /dev/null
$ xrdb -query

However it will need to be done on each reboot.
Note that I did not have this issue on the Patreon version.

Event Timeline

padraig created this task.Oct 26 2018, 9:45 PM
Herald removed sunnyflunk as the assignee of this task. · View Herald TranscriptOct 26 2018, 9:45 PM
Herald added a subscriber: sunnyflunk.

I can reproduce this on the ISO, but not on my system (350MB updates since the ISO!). I did backport some bug fixes which may have fixed it (one in particular I'm thinking of that's relevant).

DataDrake triaged this task as Normal priority.Oct 26 2018, 11:06 PM
DataDrake edited projects, added Software; removed Lacks Project.

I installed from the ISO today and then updated so it's still happening for me. I wonder if I'm missing some package that resolves this.
If it's any help this issue was in MATE too and was seemingly fixed during the week: T3830

Unfortunately the diff between ISO and my system is rather large!

This doesn't happen on my workstation but I also have about 400 more packages on that than the laptop. If it stops happening after I install something or update I'll let you know.

Very same here. Got the latest test iso installation and I'm running matplotlib 2.2.3-18.

are you on stable or unstable? I run tkinter._test() and it doesn't throw any error and displays the tcl/tk version I'm using

Guess I'm on stable. Didn't add any repositories or so.

then wait for the next sync and test again

This has stopped happening for me in the last few days during which time I installed the following packages: lutris, scikit-learn and system-devel, presumably it is something in the last of those as that has lots of dependencies. I'll test with uninstalling things tomorrow to see if I can narrow it down. In the meantime here is the full list of packages installed from eopkg history in case anything jumps out as to what causes it:

* enchant 1.6.0-12-1-x86_64 is installed.
* brotli 1.0.7-3-1-x86_64 is installed.
* woff2 1.0.2-2-1-x86_64 is installed.
* libwebkit-gtk 2.22.4-59-1-x86_64 is installed.
* notify-python 0.1.1-1-1-x86_64 is installed.
* bubblewrap 0.3.1-5-1-x86_64 is installed.
* libgnome-desktop 3.28.2-22-1-x86_64 is installed.
* python-evdev 1.1.2-4-1-x86_64 is installed.
* libgnome-keyring 3.12.0-11-1-x86_64 is installed.
* lutris is installed.
* scikit-learn 0.19.1-8-1-x86_64 is installed.
* libtool-devel 2.4.6-8-1-x86_64 is installed.
* python-configobj 5.0.6-3-1-x86_64 is installed.
* quilt 0.65-5-1-x86_64 is installed.
* diffstat 1.62-9-1-x86_64 is installed.
* libgpg-error-devel 1.35-17-1-x86_64 is installed.
* flex 2.6.4-13-1-x86_64 is installed.
* flex-devel 2.6.4-13-1-x86_64 is installed.
* ruamel_yaml 0.11.11-1-1-x86_64 is installed.
* util-linux-devel 2.33-23-1-x86_64 is installed.
* libpcre-devel 8.42-18-1-x86_64 is installed.
* gettext-devel is installed.
* mpc-devel 1.1.0-6-1-x86_64 is installed.
* ninja 1.9.0-4-1-x86_64 is installed.
* libffi-devel 3.2.1-11-1-x86_64 is installed.
* texinfo 6.3-7-1-x86_64 is installed.
* catbox 1.7.0-4-1-x86_64 is installed.
* file-devel 5.32-16-1-x86_64 is installed.
* gcc 8.2.0-44-1-x86_64 is installed.
* intltool 0.51.0-5-1-x86_64 is installed.
* libuv 1.25.0-6-1-x86_64 is installed.
* cmake 3.13.4-27-1-x86_64 is installed.
* glib2-devel 2.56.3-48-1-x86_64 is installed.
* libgudev-devel 232-5-1-x86_64 is installed.
* make 4.2.1-6-1-x86_64 is installed.
* bison 3.3.1-8-1-x86_64 is installed.
* bison-devel 3.3.1-8-1-x86_64 is installed.
* openssl-devel 1.0.2q-34-1-x86_64 is installed.
* libarchive-bin 3.3.3-22-1-x86_64 is installed.
* pkg-config 0.29.2-7-1-x86_64 is installed.
* m4 1.4.18-6-1-x86_64 is installed.
* g++ 8.2.0-44-1-x86_64 is installed.
* gobject-introspection-devel 1.56.1-18-1-x86_64 is installed.
* mpfr-devel 4.0.1-6-1-x86_64 is installed.
* bash-completion-devel 2.8-15-1-x86_64 is installed.
* glibc-devel 2.29-54-1-x86_64 is installed.
* fakeroot 1.22-10-1-x86_64 is installed.
* ypkg 29-133-1-x86_64 is installed.
* abireport 1.0.6-4-1-x86_64 is installed.
* xz-devel 5.2.4-23-1-x86_64 is installed.
* gfortran 8.2.0-44-1-x86_64 is installed.
* gmp-devel 6.1.2-10-1-x86_64 is installed.
* linux-headers 4.9.122-64-1-x86_64 is installed.
* ncurses-devel 6.1-13-1-x86_64 is installed.
* zlib-devel 1.2.11-20-1-x86_64 is installed.
* readline-devel 6.3.008-7-1-x86_64 is installed.
* diffutils 3.7-9-1-x86_64 is installed.
* libxml2-devel 2.9.8-21-1-x86_64 is installed.
* expat-devel 2.2.6-15-1-x86_64 is installed.
* polkit-devel 0.113-21-1-x86_64 is installed.
* patch 2.7.6-7-1-x86_64 is installed.
* pam-devel 1.3.1-17-1-x86_64 is installed.
* systemd-devel 239-77-1-x86_64 is installed.
* meson 0.49.2-26-1-x86_64 is installed.
* dbus-devel 1.12.10-27-1-x86_64 is installed.
* autoconf 2.69-5-1-x86_64 is installed.
* automake 1.16.1-11-1-x86_64 is installed.
* binutils 2.31.1-36-1-x86_64 is installed.
* nasm 2.14.02-11-1-x86_64 is installed.

Further to my previous comment, this stopped happening after installing system-devel, I am not sure whether it was that or one of it's dependencies that resolves it.

I installed tkinter and ran the test function: all worked here with an official installation of Plasma. I think this can be closed.

DataDrake closed this task as Resolved.Sep 27 2020, 10:01 PM
DataDrake claimed this task.