spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

Always get error while opening a .py file after reinstalled spf13 #739

Open kxxoling opened 9 years ago

kxxoling commented 9 years ago

The Python version on my OS X 10.10.2 is 2.7.9, and I try to import __future__ in python repl env. it's nothing wrong with it. Anybody has an idea?

Full log is below:

"app.py" 179L, 5723C
Error detected while processing /Users/windrunner/.spf13-vim-3/.vim/bundle/python-mode/autoload/pymode/virtualenv.vim:
line    3:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/windrunner/.spf13-vim-3/.vim/bundle/python-mode/pymode/__init__.py", line 3, in <module>
    from __future__ import absolute_import
ImportError: No module named __future__
Error detected while processing /Users/windrunner/.spf13-vim-3/.vim/bundle/python-mode/ftplugin/python/pymode.vim:
line   12:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/windrunner/.spf13-vim-3/.vim/bundle/python-mode/pymode/__init__.py", line 3, in <module>
    from __future__ import absolute_import
ImportError: No module named __future__
verbal commented 9 years ago

I am seeing this as well.

mgoffin commented 9 years ago

Also starting to see this.

labeneator commented 8 years ago

You may have recently installed a new python. Adjust your PATH to refer to your older python first. In my case, brew installed a python that broke pymode. I just added /usr/bin/ before /usr/local/bin/