On Fri, 5 Feb 2016 08:15:21 -0500
Gene Heskett <gheskett(a)shentel.net> wrote:
Greetings guru's;
This did work before the 51 tde updates yesterday:
gene@GO704:~/linuxcnc$ python python_opencv_camera_example_with_gui.py
Traceback (most recent call last):
File "python_opencv_camera_example_with_gui.py", line 278, in <module>
main()
File "python_opencv_camera_example_with_gui.py", line 222, in main
root = Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: unknown color name "BACKGROUND"
This has been a dog & pony show I have been to before, several times,
and each time IIRC the fix was different. Historically, if by playing
the 10,000 monkeys with typewriters scene long enough that I manage to
fix 'BACKGROUND' the FOREGROUND will be the next excuse used to exit a
formerly working script.
Does anyone have a clue what to fix this time?
In addition to already posted .xsession solution you can:
a) Delete content of /opt/trinity/share/apps/tdedisplay/app-defaults (this
is probably what you did last time if update caused this to reappear)
b) Deselect "Apply colors to non-tde applications". But this have much wider
implications and generally undesirable "solution".
This bug was reported years ago. Also its not python that fails, its
specifically tkinter - almost all other apps reacts to bullshit in
xresources adequately (throw warning and use some sane defaults)
--
Nick Koretsky (nick.koretsky(a)gmail.com)