파이썬 인터프리터를 사용하여 c 실행 파일에서 tcl에 몇 가지 문제가 있습니다. 어떤 이유로 인해 <fullpath>Tix843.dll
을로드 할 수 없습니다. 그러나 파이썬 코드를 직접 (파이썬에서) 실행하면 제대로 작동합니다. DLL에 대한 경로/이름은 정확합니다 ... 의존성 워커와 함께 나는 Tkinter가 tix dll을로드하려고 시도하지만 그것을 발견하지 못합니다 ...Tcl : howto는 nameofexecutable의 동작을 변경합니다.
tcl 내의 모든 종류의 경로를 추적 한 후에 만 1 차이를 검출하십시오 : nameofexecutable
. 파이썬에서 직접 실행하면 python.exe
경로이지만 내 C 실행 파일에서 실행하면 path/name of the executable
(분명히)입니다.
tcl/tk에서 나는 nameofexecutable
이 많은 경로를 설정하는 데 사용되는 것을 알아 차 렸습니다. 그래서 이것이 내 문제를 일으킬 것이라고 생각합니다. 변화
argv[0]
설정되어 있지> - $auto_path
에 DLL의 경로를 추가이
- 시스템 경로
- 에 DLL의 경로를 추가
것들은 내가이 문제를 방지하기 위해 시도 PySys_SetArgv를 호출하기 전에 실행 파일을 실행하십시오 -> 변경하지 마십시오
바보 같은 일을하고 있습니까? 아니면 어떻게 nameofexecutable
을 설정할 수 있습니까? 이 문제를 해결할 다른 방법이 있습니까?
이 편집 : ... 여기 결과 종속성 워커 다시 확인하고 세드릭 지금은 단서를 중계하지 있습니다
00:00:07.800: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/reg1.2/tclreg12.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\program files (x86)\python27\dlls\TCL85.DLL" at address 0x02468871.
00:00:07.800: Loaded "c:\program files (x86)\python27\tcl\reg1.2\TCLREG12.DLL" at address 0x00440000. Successfully hooked module.
00:00:07.816: Unloaded "c:\program files (x86)\python27\tcl\reg1.2\TCLREG12.DLL" at address 0x00440000.
00:00:07.816: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/reg1.2/tclreg12.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module could not be found (126).
00:00:07.832: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/reg1.2/tclreg12.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\program files (x86)\python27\dlls\TCL85.DLL" at address 0x0246889C.
00:00:07.832: Loaded "c:\program files (x86)\python27\tcl\reg1.2\TCLREG12.DLL" at address 0x00440000. Successfully hooked module.
00:00:07.832: Unloaded "c:\program files (x86)\python27\tcl\reg1.2\TCLREG12.DLL" at address 0x00440000.
00:00:07.832: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/reg1.2/tclreg12.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module could not be found (126).
00:00:07.925: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/tix8.4.3/Tix843.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\program files (x86)\python27\dlls\TCL85.DLL" at address 0x02468871.
00:00:07.925: Loaded "c:\program files (x86)\python27\tcl\tix8.4.3\TIX843.DLL" at address 0x04480000. Successfully hooked module.
00:00:07.925: Unloaded "c:\program files (x86)\python27\tcl\tix8.4.3\TIX843.DLL" at address 0x04480000.
00:00:07.925: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/tix8.4.3/Tix843.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module could not be found (126).
00:00:07.941: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/tix8.4.3/Tix843.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\program files (x86)\python27\dlls\TCL85.DLL" at address 0x0246889C.
00:00:07.956: Loaded "c:\program files (x86)\python27\tcl\tix8.4.3\TIX843.DLL" at address 0x04480000. Successfully hooked module.
00:00:07.956: Unloaded "c:\program files (x86)\python27\tcl\tix8.4.3\TIX843.DLL" at address 0x04480000.
00:00:07.956: LoadLibraryExW("C:/Program Files (x86)/Python27/tcl/tix8.4.3/Tix843.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module could not be found (126).
00:00:07.956: LoadLibraryA("shell32") called from "c:\program files (x86)\python27\dlls\TK85.DLL" at address 0x024BBACD.
00:00:07.956: LoadLibraryA("shell32") returned 0x75480000.
그렇게는 DLL을 몇 시간을 찾을 수 있습니다 항상은 아니지만 및 그런 다음 실패합니다.
미안하지만 나는 그걸 시도했지만 성공하지 못했습니다 ... 실제로 DLL에 올바른 경로를 제공하고로드 할 수 없다고 말합니다 (또는 종속 라이브러리 ...) 종속성 워커를 확인했지만 그게 Tkinter 짐을 Tix.dll을로드 할 수 있습니다 ... 그래서 아무 생각이 문제를 해결하기 위해 –
Jen