Please see the message:
    Re: [ANN] vim patch to support python3 interface
at
    http://tech.groups.yahoo.com/group/vimdev/message/54379



Daniel Hast wrote:
> 
> I just started using Vim recently, and I've found it to be an extremely
> useful editor for Python. However, the self-installing Vim 7.2 executable
> is
> set up for use with Python 2.4, so it looks for python24.dll. Since it
> doesn't exist on my computer, I can't run any Python code in Vim. (Since
> Python 3.0 isn't backwards compatible, I can't just install Python 2.4,
> because then my programs wouldn't work.)
> 
> I downloaded the Vim 7.2 source from
> ftp://ftp.vim.org/pub/vim/pc/vim72src.zip and tried to compile it using
> MinGW, which I also just installed. I edited Make_ming.mak to add Python
> compilation options, specifically (right after the Python-related comment
> block):
> 
> PYTHON=c:/PROGRA~1/Python30
> PYTHON_VER=30
> 
> I then tried to compile it using the following command:
> 
> mingw32-make -f Make_ming.mak gvim.exe
> 
> It successfully compiled most of the files using gcc, but when it tried to
> compile if_python.c, the following error occurred:
> 
> if_python.c: In function `PythonIO_Init':
> if_python.c:951: error: structure has no member named `ob_type'
> if_python.c: In function `PythonMod_Init':
> if_python.c:2351: error: structure has no member named `ob_type'
> if_python.c:2352: error: structure has no member named `ob_type'
> if_python.c:2353: error: structure has no member named `ob_type'
> if_python.c:2354: error: structure has no member named `ob_type'
> if_python.c:2355: error: structure has no member named `ob_type'
> if_python.c:2356: error: structure has no member named `ob_type'
> mingw32-make: *** [gobj/if_python.o] Error 1
> 
> The compilation process then exited immediately. I tried this several
> times,
> each time with the same results. In if_python.c, at each of the lines
> mentioned in the above error message is a line like the following (where
> "[something]" is a variable name):
> 
> [something].ob_type = &PyType_Type;
> 
> What is causing this problem, and how can I compile Vim with Python 3.0?
> (I
> am using Windows XP, Vim 7.2, Python 3.0, MinGW 5.1.4, Make 3.81, and gcc
> 3.4.5.)
> 
> Thanks,
> Daniel Hast
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Compiling-Vim-7.2-with-Python-3.0-on-Windows-XP-tp21121227p23920154.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to