LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2009, 11:34 AM   #1
KirkD
Member
 
Registered: Oct 2007
Posts: 58

Rep: Reputation: 15
tclerror: unknown color name "black"


I have just installed CentOS 5.4 and one of the applications I'm trying to run is PyMol - a molecular visualization tool - and when I start it I get a Python error that terminates with "Tclerror: unknown color name black" This particular application has two windows, a view window and a TCL/TK window that provides menus, and action buttons. The view window shows up but the Tcl/Tk window does not.

I have another application that gives a similar error: "tclerror: unknown color name grey90" This application does load and run, but it is a much more complex app that is likely only partially hindered. I haven't found yet how this one fails.

It seems to me that I don't have tcl/tk installed, configured, or enabled correctly, but I have no idea how to test this or how to troubleshoot the problems.

Any advice is greatly appreciated!

-Kirk

UPDATE::

I did

yum install tcl tcl-devel tk tk-devel

and indeed the tcl-devel package was not there. All the others were there and latest version.

When I tried

$ wish
% pack [label .m -bg "grey90" -fg "black" -text "hello" -width 10 -height 3]


I got the window but upon executing the pack line, I received an error stating: unknown color name "grey90" I also tried "gray90" and just making it "black" on "black" Each time I received an unknown color name error.

We seem to have found the problem - any suggestions on how to fix it?
 
Old 11-05-2009, 11:51 AM   #2
Jim Bengtson
Member
 
Registered: Feb 2009
Location: Iowa
Distribution: Ubuntu 9.10
Posts: 164

Rep: Reputation: 38
Apparently "black" and "grey90" are not standard colors in PyMOL:
http://pymol.sourceforge.net/newman/...mds.html#6_3_2
 
Old 11-05-2009, 12:44 PM   #3
KirkD
Member
 
Registered: Oct 2007
Posts: 58

Original Poster
Rep: Reputation: 15
Solved

I figured it out. In my xorg.conf file, the parameter RgbPath was set incorrectly. I did a global find to locate the rgb.txt file and set RgbPath appropriately. All is well now.
 
Old 11-05-2009, 12:46 PM   #4
KirkD
Member
 
Registered: Oct 2007
Posts: 58

Original Poster
Rep: Reputation: 15
Jim,

You are correct about PyMol standard colors but that is from the command line within the PyMol viewer. The error was actually coming from the underlying Python code itself. See my other post for my solution.

-Kirk
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the "data type" of an "unknown variable" in "C Language" ? Affair Programming 8 06-20-2009 12:30 PM
"irq timeout" and "failed opcode was: unknown" dmesg messages kenneho Linux - Server 0 06-17-2009 02:35 AM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-16-2007 11:00 PM
amsn (on dapper): unknown color "Black" eantoranz Linux - Software 3 03-14-2006 06:31 PM
tcsh problem "Unknown color-ls variable 'su' " grizos Debian 4 11-22-2005 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration