conda-forge / conda-forge/git-feedstock
gitk fails because it uses tclsh instead of wish
- Dominant language
- Shell
- Stars
- 1
- Forks
- 43
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
Hello. I have created the following environment:
```
conda create -n git git tcllib
```
and, in my new environment, when I run gitk, I get the error:
```
invalid command name "image"
while executing
"image create bitmap tri-rt -background black -foreground blue -data {
#define tri-rt_width 13
#define tri-rt_height 13
static unsigned cha..."
(file "/scratchu/guez/miniconda3/envs/git/bin/gitk" line 3531)
```
According to the gitk maintainer, the reason is that, in the conda installation, gitk invokes tclsh instead of wish. See [issue 34 of gitk](https://github.com/j6t/gitk/issues/34). What do you think?
### Installed packages
```shell
# packages in environment at /scratchu/guez/miniconda3/envs/git:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
bzip2 1.0.8 hda65f42_8 conda-forge
c-ares 1.34.5 hb9d3cd8_0 conda-forge
ca-certificates 2025.8.3 hbd8a1cb_0 conda-forge
git 2.51.0 pl5321h8305f47_1 conda-forge
keyutils 1.6.3 hb9d3cd8_0 conda-forge
krb5 1.21.3 h659f571_0 conda-forge
libcurl 8.14.1 h332b0f4_0 conda-forge
libedit 3.1.20250104 pl5321h7949ede_0 conda-forge
libev 4.33 hd590300_2 conda-forge
libexpat 2.7.1 hecca717_0 conda-forge
libgcc 15.1.0 h767d61c_5 conda-forge
libgcc-ng 15.1.0 h69a702a_5 conda-forge
libgomp 15.1.0 h767d61c_5 conda-forge
libiconv 1.18 h3b78370_2 conda-forge
libnghttp2 1.67.0 had1ee68_0 conda-forge
libssh2 1.11.1 hcf80075_0 conda-forge
libstdcxx 15.1.0 h8f9b012_5 conda-forge
libstdcxx-ng 15.1.0 h4852527_5 conda-forge
libxcrypt 4.4.36 hd590300_1 conda-forge
libzlib 1.3.1 hb9d3cd8_2 conda-forge
ncurses 6.5 h2d0b736_3 conda-forge
openssl 3.5.2 h26f9b46_0 conda-forge
pcre2 10.46 h1321c63_0 conda-forge
perl 5.32.1 7_hd590300_perl5 conda-forge
tcllib 2.0 ha770c72_0 conda-forge
tk 8.6.13 noxft_hd72426e_102 conda-forge
zstd 1.5.7 hb8e6e7a_2 conda-forge
```
### Environment info
```shell
active environment : git
active env location : /scratchu/guez/miniconda3/envs/git
shell level : 1
user config file : /home/guez/.condarc
populated config files : /etc/conda/.condarc
/home/guez/.condarc
conda version : 4.10.3
conda-build version : 3.21.5
python version : 3.9.7.final.0
virtual packages : __linux=5.15.0=0
__glibc=2.31=0
__unix=0=0
__archspec=1=x86_64
base environment : /net/nfs/tools/u20/Python/anaconda-2021.11 (read only)
conda av data dir : /net/nfs/tools/u20/Python/anaconda-2021.11/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /scratchu/guez/miniconda3/pkgs
envs directories : /scratchu/guez/miniconda3/envs
/home/guez/.conda/envs
/net/nfs/tools/u20/Python/anaconda-2021.11/envs
platform : linux-64
user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Linux/5.15.0-139-generic ubuntu/20.04.6 glibc/2.31
UID:GID : 1151:1000
netrc file : None
offline mode : False
```
Contributor guide
Research direction
Start by inspecting how the git-feedstock package installs and launches gitk, then reproduce the reported failure in a conda environment containing git and tcllib. Compare the interpreter used by the installed gitk entry point with the required graphical Tcl/Tk interpreter. Done means gitk launches without the reported invalid command name "image" error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100