git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ttk error when starting git gui

From
DSDavid Shrader <dshrader@lanl.gov>
Date
Mar 30, 2017, 21:33 UTC
Message-ID
<c4e7185d-cef9-ce1b-a944-e92e0d17249c@lanl.gov>
In-Reply-To
<4addfbdb-1289-7958-87e5-8d8caa9febfb@avirtualhome.com>
On 03/30/2017 01:54 PM, Peter van der Does wrote:
Show 47 quoted lines
> On 3/30/17 1:01 PM, David Shrader wrote:
>> Hello,
>>
>> I get the following error when trying to start git gui:
>>
>> Error in startup script: wrong # args: should be "ttk::style theme use
>> theme"
>>      while executing
>> "ttk::style theme use"
>>      (procedure "ttext" line 4)
>>      invoked from within
>> "ttext $ui_workdir -background white -foreground black \
>>          -borderwidth 0 \
>>          -width 20 -height 10 \
>>          -wrap none \
>>          -takefocus 1 -highlightthickness 1\
>>          ..."
>>      (file
>> "/home/dshrader/opt/toss2/common/git/2.12.2/libexec/git-core/git-gui"
>> line 3190)
>>
>> I get this error with the latest released version 2.12.2. Two older git
>> versions are also available on this system, and neither has this issue.
>> Those older versions are 1.7.1 and 2.3.3. I don't see a call to ttext in
>> those corresponding git-gui executables, so that is probably why they work.
>>
>> Here are the steps to reproduce:
>>
>> 1) cd to existing git repository
>> 2) run 'git gui' (no gui comes up, and the error is printed in the
>> terminal)
>>
>> I'm running on a RHEL6 based system. Do I have an insufficient version
>> of whatever git gui uses for graphics in the later versions of git? When
>> I try 2.12.2 on my personal workstation running Fedora 25, I don't see
>> the same issue.
>>
>> Thank you very much for your time,
>> David
>>
>
> It looks like the git gui needs TCL/TK 8.6.0 or higher. Since that
> version the command 'ttk::style theme use' has been changed, which
> allows the command to be run without an argument and then returning the
> current theme used.
> I believe RHEL6 use Tk-8.5.7 but I can't be 100% sure.
>

Yep, 8.5.7 is what I have on the RHEL6-based system. Thanks for the info! David

-- 
David Shrader
HPC-ENV High Performance Computer Systems
Los Alamos National Lab
Email: dshrader <at> lanl.gov
Previous: Dennis KaarsemakerNext: Jessie Hernandez
Message 4 of 12 in “ttk error when starting git gui”
  1. David ShraderMar 30, 2017
  2. Peter van der DoesMar 30, 2017
  3. Dennis KaarsemakerMar 30, 2017
  4. David ShraderMar 30, 2017
  5. Jessie HernandezMar 31, 2017
  6. Konstantin KhomoutovMar 31, 2017
  7. Jessie HernandezMar 31, 2017
  8. Jessie HernandezMar 31, 2017
  9. Konstantin KhomoutovMar 31, 2017
  10. Jessie HernandezMar 31, 2017
  11. Konstantin KhomoutovMar 31, 2017
  12. Konstantin KhomoutovMar 31, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.