Gitk startup error

When I download gitk, I get an error

Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn while executing "wm state . $geometry(state)" (procedure "makewindow" line 320) invoked from within "makewindow" (file "/usr/local/git/bin/gitk" line 11250) 

Does anyone know a solution? I am working on Mac OS X 10.6.3

THX!

+6
git gitk macos
source share
3 answers

As mentioned in this post:

使用 Macport 安裝 mercury 結果 安裝 了 一堆 相依 的 library, 結果 造成 gitk 不能 執行

Err ... I meant:

Results using a Macport installation, mercurial installs many library dependencies, resulting in gitk that cannot execute.

Gitk will use the wrong version of the tk library.

The problem was that the first installation changed .bashrc to:

 export PATH=/opt/local/bin:/opt/local/sbin:$PATH 

changing the original PATH ( /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin )

Try instead in .bashrc :

 export PATH=$PATH:/opt/local/bin:/opt/local/sbin 
+3
source share

I had this problem on Leo. This was my solution:

 cd rm -rf .gitk 
+4
source share

Look for the launch of the ~ / .gitk script in your home directory. It will probably contain a string like set geometry(state) normal . Make sure the ~ / .gitk file has a Unix-style line ending and not a DOS line end, i.e. LF is not LFCR.

You may be able to remedy the situation by deleting ~ / .gitk and allowing it to be recreated the next time you run gitk, as noted by ejfresch. ~~~

+3
source share

All Articles