vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

ImportError on load #76

Closed xaviershay closed 11 years ago

xaviershay commented 11 years ago

I get the following error when loading a markdown file:

Error detected while processing /Users/xavier/.vim/bundle/vim-pandoc/syntax/pandoc.vim:                   
line  108:                                                                                                Traceback (most recent call last):                                                                          File "<string>", line 1, in <module>                                                                    ImportError: No module named re                                                                           
Error detected while processing function pandoc#Pandoc_Find_Bibfile:                                      
line   49:                                                                                                
Traceback (most recent call last):                                                                        
  File "<string>", line 2, in <module>                                                                    
ImportError: No module named os  

:python import sys; sys.prefix shows /usr/local/Cellar/python/2.7.2 which doesn't exist (I'm using homebrew). 2.7.3 does and I have symlinked it to no avail.

I have also tried reinstalling vim, but it doesn't appear to pick up my valid python path. I have grepped my dotfiles for any mention of python and cannot find any.

Any other suggestions?

xaviershay commented 11 years ago

Figured it out. Uninstall everything, then force vim to compile against the system ruby and python.

brew unlink python
brew unlink vim
brew remove vim

export PATH=/usr/bin # Ensure that only system versions are used, things like rbenv are ignored
brew install vim
brew link --overwrite vim
brew link --overwrite python