2013-03-19 68 views
1

我試圖用vdebug與MacVim和xdebug來調試代碼。我通過自制軟件安裝了MacVim和python,並且安裝了xdebug,並且可以正常使用MacGDBp。MacVim vdebug python錯誤

當我與F5鍵vdebug聽取並重新加載頁面(Xdebug的遠程自動啓動是)我得到的vdebug quickfix窗口蟒蛇錯誤:

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 

我GOOGLE了一會兒並找不到工作解決方案。有任何想法嗎?

+0

難道這就是這樣的其他[問題/答案](http://stackoverflow.com/questions/1068510/using-simplexmltreebuilder-in-elementtree)? – summea 2013-03-19 22:18:03

+0

我不知道python,但我嘗試將代碼從answer 1添加到runner.py。這拋出了另一個錯誤,因爲我不知道python。我確信我用'''brew update'''和''brew upgrade'''更新了所有的東西。一樣。我不在CentOS上,所以回答兩個都沒有幫助。答案四是更多的Python。 我認爲這個問題是與我的python安裝,因爲這個項目有一個測試套件,似乎爲別人工作。我試圖卸載並重新安裝python視圖自制軟件,沒有運氣。 – 2013-03-19 23:08:47

回答

1

這對我有效!發佈的情況下,其他人有同樣的問題:

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

它暫時重新安裝的MacVim之前鏈接蟒蛇的自制版Mac系統的版本。現在xdebug的作品!

+0

很高興聽到它爲您工作! – summea 2013-03-19 23:30:06