作为版本控制,我使用 git 并调用 Meld 来 merge 冲突文件。 (作为 IDE,我使用 Qt Creator,但我认为这不是问题所在)。 我不明白为什么 merge 过程会失败,因为不同时间使用此过程来 merge 项目(远程和本地项目)。
最佳答案
gi 模块运行,除了it fails to find the GTK DLL :
---------------------------
cx_Freeze: Python error in main script
---------------------------
Traceback (most recent call last):
File "bin/meld", line 205, in check_requirements
import gi
File "C:/msys64/MINGW32/lib/python3.7/site-packages/gi/__init__.py", line 42, in <module>
File "ExtensionLoader_gi__gi.py", line 23, in <module>
File "ExtensionLoader_gi__gi.py", line 15, in __bootstrap__
File "C:/msys64/MINGW32/lib/python3.7/imp.py", line 342, in load_dynamic
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/msys64/MINGW32/lib/python3.7/site-packages\cx_Freeze/initscripts/__startup__.py", line 14, in run
File "C:/msys64/MINGW32/lib/python3.7/site-packages\cx_Freeze/initscripts/Console.py", line 26, in run
File "bin/meld", line 362, in <module>
check_requirements()
File "bin/meld", line 211, in check_requirements
missing_reqs("GTK+", gtk_requirement, e)
File "bin/meld", line 194, in missing_reqs
show_error_and_exit(_("Cannot import: ") + mod + "\n" + str(exc))
File "bin/meld", line 182, in show_error_and_exit
raise Exception(error_text)
Exception: Cannot import: GTK+
DLL load failed: The specified module could not be found.
---------------------------
OK
---------------------------
我已将 C:\Program Files (x86)\Meld\lib
添加到我的 Path
user environment variable ,现在 Meld 工作正常。
关于Git 运行 Meld 作为 merge 工具失败 'check_requirements import gi',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55123873/