spf13-vim icon indicating copy to clipboard operation
spf13-vim copied to clipboard

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

Open kxxoling opened this issue 9 years ago • 3 comments

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__

kxxoling avatar Mar 23 '15 17:03 kxxoling

I am seeing this as well.

verbal avatar Apr 15 '15 21:04 verbal

Also starting to see this.

mgoffin avatar Oct 10 '15 13:10 mgoffin

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/

labeneator avatar Mar 05 '16 08:03 labeneator