<i>Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch</i> status still Open with 3 other changes
by
.
D 2025-10-02T11:03:43.844
J icomment >\sI\shave\stried\sthe\schanges\sfrom\sbug-6fbabfe166\sand\sunfortunately\sthe\ssame\serror\spersists.\r\n\r\nSorry,\sbit\sof\sa\sbrain\sfade\son\smy\spart.\sWhen\syou\sreported\sthe\svalue\sof\s`tcl_library`\sfrom\s`tclsh`,\sI\sregistered\sit\sas\sthe\svalue\sin\stkinter\s(which\sof\scourse\sit\scould\snot\sbe).\sSo\sI\sassumed\sthe\sissue\swas\sa\smissing\ssearch\sin\sthe\szipfs\sarchive\sas\sopposed\sto\smounting\sit\sin\sthe\sfirst\splace.\sFixed\sin\sthe\sbranch\snow\sif\syou\swould\sbe\sso\skind\sas\sto\sretry.\sI\shave\stested\sit\swith\sthe\sfollowing\sprogram\swhich\sI\sthink\sdistills\sthe\sorder\sin\swhich\stkinter\sinitializes\sTcl.\r\n\r\n```\r\n#include\s<stdlib.h>\r\n#include\s"tcl.h"\r\nint\smain(int\sargc,\schar\s*argv[])\r\n{\r\n\s\s\sTcl_Interp\s*ip;\r\n\s\s\sTcl_FindExecutable(argv[0]);\r\n\s\s\sip\s=\sTcl_CreateInterp();\r\n\s\s\sif\s(Tcl_Init(ip)==\sTCL_ERROR)\s{\r\n\s\s\s\s\s\s\s\s\s\s\sprintf("Tcl\sinit\sfailed:\s%s",\sTcl_GetStringResult(ip));\r\n\s\s\s\s\s\s\s\s\s\s\sexit(1);\r\n\s\s\s}\r\n\s\s\sconst\schar\s*libPath\s=\sTcl_GetVar2(ip,\s"tcl_library",\sNULL,\s0);\r\n\s\s\sprintf("tcl_library=%s\\n",\slibPath);\r\n\s\s\sreturn\s0;\r\n}\r\n```\r\n\r\nWith\sthe\score-9-0-branch,\sthe\sabove\sgives\sthe\ssame\serror\sas\syou\swere\sseeing.\sWith\sthe\sbug-6fbabfe166\sbranch,\sTcl\sseems\sto\sinitialize\ssuccessfully.\r\n\r\nHaving\ssaid\sthat,\smy\spreference\swould\sstill\sbe\sto\sreplace\sthe\sTcl_FindExecutable\scall\sin\stkinter\swith\sTclZipfs_AppHook\sif\sat\sall\spossible\s(would\sneed\smore\stesting\sof\scourse).\sIt\savoids\sa\snumber\sof\sproblems\swith\sinitialization\sof\sencodings\swhen\sthe\ssystem\sencoding\sis\snot\sutf-8\sand\shas\sto\sbe\sloaded\sfrom\sdisk.\sIf\sthat\sis\snot\spossible\sand\smandating\s`--disable-zipfs`\sis\snot\san\soption,\sI\swill\sfurther\spursue\sthe\sbug-6fbabfe166\sbranch\sto\sget\sit\sworking\s(if\sit\sstill\sfails\sfor\syou).\r\n\r\nOn\sa\srelated\snote,\sI\sam\salso\swondering\sabout\sthe\s`_get_tcl_lib_path(void)`\sfunction\sin\stkinter.\sWhat\sis\sits\srole\sand\swill\sit\saffected\sby\sthe\stcl\slibrary\sbeing\sinside\sa\szipfs\sarchive\sand\snot\svisible\sto\sPython/tkinter?
J login apnadkarni
J mimetype text/x-markdown
K 6fbabfe1661c22e7990bb917e9fa49cc16e016ea
U apnadkarni
Z ef49d02fba3bfe1de24df7ccb91b81e1