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?
Thanks everybody.
Cheers, Gene Heskett
Am Freitag, 5. Februar 2016 schrieb Gene Heskett:
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?
Thanks everybody.
Cheers, Gene Heskett
Hi Gene!
It's still the old solution with "xrdb", same that works on TDE :-) This is (still) in my ~/.xsessionrc :
# LINUXCNC ( sleep 10 xrdb -all -query|sed -e 's#[A-Z_]*BACKGROUND# gray90#' -e 's#[A-Z_]*FOREGROUND# Black#' -e 's#[A-Z_]*HIGHLIGHT# White#' -e 's#[A-Z_]*LOWLIGHT# Black ) &
Nik
Oops, line was truncated:
# LINUXCNC ( sleep 10 xrdb -all -query|sed -e 's#[A-Z_]*BACKGROUND# gray90#' \ -e 's#[A-Z_]*FOREGROUND# Black#' \ -e 's#[A-Z_]*HIGHLIGHT# White#' \ -e 's#[A-Z_]*LOWLIGHT# Black#'|xrdb -merge ) &
Am Freitag, 5. Februar 2016 schrieb Dr. Nikolaus Klepp:
Am Freitag, 5. Februar 2016 schrieb Gene Heskett:
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?
Thanks everybody.
Cheers, Gene Heskett
Hi Gene!
It's still the old solution with "xrdb", same that works on TDE :-) This is (still) in my ~/.xsessionrc :
# LINUXCNC ( sleep 10 xrdb -all -query|sed -e 's#[A-Z_]*BACKGROUND# gray90#' -e 's#[A-Z_]*FOREGROUND# Black#' -e 's#[A-Z_]*HIGHLIGHT# White#' -e 's#[A-Z_]*LOWLIGHT# Black ) &
Nik
On Fri, 5 Feb 2016 08:15:21 -0500 Gene Heskett gheskett@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)