import error cant find module ast when i start VIM editor wit pyflakes

446 Views Asked by At

On my Macbook (OSX Lion) I'm running python 2.7 with Vim 7.3 and installed pyflakes.

I followed the steps described here, but installed pyflakes, pylint and pep8 with macports.

After running Bundleinstall and starting new Vim I got the following errormessage:

Import Error: cant find module ast
1

There are 1 best solutions below

0
On

Because of a bug in versions of vim < 7.3.430, vundle may not like filetype on during configuration. However, pyflakes needs filetype on

If you cannot update vim to escape the bug, then a workaround is to flip on the filetype before vundle configures pyflakes and then back off afterwards. For example

filetype on
Bundle 'kevinw/pyflakes-vim'
filetype off