将 Meld 作为合并工具运行的 Git 失败“check_requirements import gi”

Sar*_*ara 7 git qt meld

尝试合并冲突文件时出错: 尝试合并冲突文件时出错

作为版本控制,我使用 git 并调用 Meld 以合并冲突文件。(作为 IDE,我使用 Qt creator,但我认为这不是问题)。我不明白为什么合并过程失败,因为这个过程用于合并项目(远程和本地项目)的时间不同。

Cee*_*man 9

gi 模块运行,但无法找到 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   
---------------------------
Run Code Online (Sandbox Code Playgroud)

我已经添加C:\Program Files (x86)\Meld\lib到我的Path 用户环境变量中,现在 Meld 工作正常。