From edfc961ff810697e9d5af9c44063d5ae9d1cda52 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 21 Dec 2025 13:33:45 +0800 Subject: [PATCH] transplanted tk --- koboldcpp.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/koboldcpp.sh b/koboldcpp.sh index 41784bce5..71844f46c 100755 --- a/koboldcpp.sh +++ b/koboldcpp.sh @@ -29,11 +29,22 @@ KCPP_CUDAAPPEND=-cuda${KCPP_CUDA//.}$KCPP_APPEND if [ -n "$TRANSPLANT_TK" ]; then echo Attempting to use a transplanted tkinter from ubuntu-24.04.3 to fix fontconfig issues + bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF' +import tkinter +print("Before Tk version:", tkinter.Tcl().call("info", "patchlevel")) +EOF + ldd "conda/envs/linux/lib/libtk8.6.so" rm -f "conda/envs/linux/lib/libtcl8.6.so" rm -f "conda/envs/linux/lib/libtk8.6.so" - chmod 755 "conda/envs/linux/lib/libtcl8.6.so" "conda/envs/linux/lib/libtk8.6.so" curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtcl8.6.so --output conda/envs/linux/lib/libtcl8.6.so curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtk8.6.so --output conda/envs/linux/lib/libtk8.6.so + chmod 755 "conda/envs/linux/lib/libtcl8.6.so" "conda/envs/linux/lib/libtk8.6.so" + ls -lah conda/envs/linux/lib + bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF' +import tkinter +print("After Tk version:", tkinter.Tcl().call("info", "patchlevel")) +EOF + ldd "conda/envs/linux/lib/libtk8.6.so" echo Tkinter Transplant completed fi