VIM - python errors after upgrading to Python 2.2 (Windows OLE)

P Adhia padhia at yahoo.com
Tue Jan 29 10:59:32 EST 2002


I have few python macros that I load in my _vimrc file. I seem to have
broken the perfect harmony of my Vim 6.0 (OLE) and Python 2.1 after I
upgraded to Python 2.2.

Here is what I did,
- I uninstalled python 2.1
- I installed python 2.2 in the same directory (c:\python)

Now when I start GVIM, it errors on the first line of my python script
which is "from __future__ import nested_scopes", saying "ImportError:
no module named __future__"

Other Python scripts that I run from command line seem to be working
fine.

Also amazes me is the fact that if I do following while in VIM

:py import sys
:py print sys.version

It still prints "python 2.1 (#15, Apr 16 2001....". From what I can
tell, I have completely uninstalled Python 2.1. Is python support
built into VIM OLE ?

Any help, preferably that allows me to keep Python 2.2, is welcome.

TIA

P Adhia



More information about the Python-list mailing list