Friday, March 6, 2015

Re: Unable to get omnicomplete to work for Python 3.4.3.

On Friday, March 6, 2015 at 9:47:03 AM UTC-6, Ben Fritz wrote:
> On Friday, March 6, 2015 at 9:35:25 AM UTC-6, boB Stepp wrote:
> > On Fri, Mar 6, 2015 at 1:05 AM, Christian Brabandt <cblists@256bit.org> wrote:
> > > Hi boB!
> > >
> > > On Fr, 06 Mär 2015, boB Stepp wrote:
> > >
> > >> I am very new to Vim and am in the process of setting up Vim for use
> > >> as my Python 3 editing environment as I continue to work on learning
> > >> Python. I thought it would be nice to use omnicompletion and have been
> > >> struggling to get it to work. A portion of my Vim version
> > >> information::
> > >>
> > >> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 2 2015 21:15:22)
> > >> MS-Windows 64-bit GUI version with OLE support
> > >> Included patches: 1-648
> > >> Compiled by hp@HP-PC
> > >> Huge version with GUI. Features included (+) or not (-):
> > >> +acl +digraphs +libcall +profile
> > >> +textobjects
> > >> +arabic +directx +linebreak
> > >> +python/dyn +title
> > >> +autocmd -dnd +lispindent +python3/dyn
> > >>
> > >> I am using 64-bit Vim 7.4, 64-bit Win7, and 64-bit Python 3.4.3. If I type:
> > >>
> > >> :python3 import sys; print(sys.version)
> > >>
> > >> I get
> > >>
> > >> 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
> > >>
>
> I see your Vim is compiled with dynamic python3 support.
>
> You're on Windows. Does the DLL version match what Vim was compiled with? Later in the version information, my Vim with Python 2 has "-DDYNAMIC_PYTHON_DLL=\"python27.dll\"". Does yours have something similar for Python 3, and does it match your installed python 3 DLL? Is this python 3 DLL somewhere on your system path where Vim can find it?

Oh, whoops. I wrote without fully reading again. It looks like your Vim is fully capable of running :python3 commands.

However the error message you are getting from your plugin is saying you don't have python support. Perhaps it is looking for python 2 support instead of python 3 for some reason? If I understand correctly Vim cannot run both python 2 and python 3 at the same time; if you have a mix of python versions used in your plugins then it will not work.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: