gpt4 book ai didi

python - MacVim vdebug python 错误

转载 作者:太空宇宙 更新时间:2023-11-03 19:03:17 25 4
gpt4 key购买 nike

我正在尝试使用vdebug使用 MacVim 和 xdebug 来调试代码。我通过 homebrew 安装了 MacVim 和 python,并且安装了 xdebug 并且可以与 MacGDBp 一起正常工作。

当我使用 F5 键监听 vdebug 并重新加载页面(xdebug 远程自动启动已打开)时,我在 vdebug 快速修复窗口中收到 python 错误:

An error occured: <type 'exceptions.ImportError'>
Traceback (most recent call last):
File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
self.runner.run()
File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
self.open()
File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 74, in open
raise e
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

我已经用谷歌搜索了一段时间,但找不到有效的解决方案。有什么想法吗?

最佳答案

这对我有用!发布以防其他人遇到同样的问题:

https://stackoverflow.com/a/12697440/557215

在重新安装 MacVim 之前,它会暂时将 homebrew 版本的 python 链接到 mac 系统版本。现在 xdebug 可以工作了!

关于python - MacVim vdebug python 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15511571/

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