gpt4 book ai didi

python - 使用vim执行git提交操作时发生错误: Error detected while processing function PyKiteEvent

转载 作者:太空宇宙 更新时间:2023-11-03 20:28:55 24 4
gpt4 key购买 nike

我想进行git commit时遇到了问题,但是弹出了错误,如下所示:

"~/xxx/xxx/.git/COMMIT_EDITMSG" 10L, 411C
Error detected while processing function PyKiteEvent:
line 143:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/json/__init__.py", line 108, in <module>
from .decoder import JSONDecoder
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/json/decoder.py", line 5, in <module>
import struct
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: dlopen(/usr/local/opt/python/Frameworks/Python.framework/V
ersions/2.7/lib/python2.7/lib-dynload/_struct.so, 2): no suitable image
found. Did find:
^I/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/py
thon2.7/lib-dynload/_struct.so: code signature in (/usr/local/opt/pytho
n/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_s
truct.so) not valid for use in process using Library Validation: mapped
file has no cdhash, completely unsigned? Code has to be at least ad-ho
c signed.

如何解决这个问题?我正在使用 zsh,我的 MacOS 是 Majove 版本。谢谢。

最佳答案

在我执行brew unlink python && brew reinstall python之后,它就可以正常工作了。

关于python - 使用vim执行git提交操作时发生错误: Error detected while processing function PyKiteEvent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57644518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com