You are not logged in.

#1 2012-02-08 02:26:46

umaxtu
Member
Registered: 2010-11-21
Posts: 31

UltiSnips requires py >=2.6 or any py3 when starting vim

How do I get this to stop popping up without removing UltiSnips?

Last edited by umaxtu (2012-02-08 02:31:11)

Offline

#2 2012-02-08 16:30:12

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

I have this problem too. Anyone?


Quis custodiet ipsos custodiet?

Offline

#3 2012-02-08 22:27:37

Regalis
Member
From: Poland::Cracow
Registered: 2012-02-08
Posts: 4
Website

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Hello, I had the same problem today. I use vim and ultisnips (snipmate) all the time so I decided to get on with it.

The problem is that Vim is compiled without python/python3. We can simply fix them by recompiling vim. I think this is the simplest way to do this:

# abs extra/vim
# cp -rv /var/abs/extra/vim /dev/shm
# cd /dev/shm/vim
# vim PKGBUILD

In function build() we have two ./configure, we must replace all --disable-python3interp --disable-pythoninterp by --enable-python3interp=dynamic --enable-pythoninterp=dynamic and add two more options: --with-python3-config-dir=/usr/lib/python3.2/config-3.2mu --with-python-config-dir=/usr/lib/python2.7/config

Now we can create a packages (vim, vim-runtime) with makepkg, install with pacman -U and feel happy by using UltiSnips. smile


Best regards,
Regalis

Offline

#4 2012-02-08 22:48:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

We're talking about official packages here, so I suggest opening a bug report.

https://bugs.archlinux.org/task/27527 ends with removing python3 interpreter from gvim. vim has neither http://projects.archlinux.org/svntogit/ … ckages/vim

Offline

#5 2012-02-22 04:23:24

88linux
Member
Registered: 2012-01-23
Posts: 5

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

So has anyone fixed this problem without recompiling vim?

Offline

#6 2012-02-22 05:31:35

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Did you read this topic?

Offline

#7 2012-02-29 16:13:22

flying sheep
Member
Registered: 2012-02-29
Posts: 96

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Barthalion wrote:

Did you read this topic?

hi, i’m new here!

i did read it, but didn’t see a solution without recompiling vim. could you please specify what we’re missing?

Offline

#8 2012-03-10 12:32:43

zozi56
Member
Registered: 2012-03-10
Posts: 14

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

I opened a bug report: https://bugs.archlinux.org/task/28851

Offline

#9 2012-03-11 00:56:58

oi_wtf
Member
From: /home/wtf
Registered: 2012-03-11
Posts: 191

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

flying sheep wrote:
Barthalion wrote:

Did you read this topic?

hi, i’m new here!

i did read it, but didn’t see a solution without recompiling vim. could you please specify what we’re missing?

i think what Barthalion wants to say is,
if you'd read carefully, you'd know that there's none but to remove UltiSnips...


Laptop:   Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-3630QM @ 2.40GHz, 8 GiB RAM, NViDiA GeForce GT 650M w/ 2 GiB
Desktop: Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-4771  @ 3.50GHz, 32 GiB RAM, AMD Radeon RX 480 w/ 8 GiB

Offline

#10 2012-03-19 02:01:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

The bug got closed, please test vim-ultisnips 2.1-2: http://projects.archlinux.org/svntogit/ … d90bcdc1b4

Maybe the package should be renamed to gvim-ultisnips?  ;P

Offline

#11 2012-03-19 18:35:30

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Hold on! So I can't have both vim and gvim at the same time out of the repos (because inter-conflict)? neutral

Last edited by masteryod (2012-03-19 18:35:44)

Offline

#12 2012-03-19 18:36:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Yup, that's right.

Offline

#13 2012-03-19 21:02:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

masteryod wrote:

Hold on! So I can't have both vim and gvim at the same time out of the repos (because inter-conflict)? neutral

gvim provides vim, so yes and no.
You can't have both the vim and gvim packages installed at once, but the gvim package also provides a vim binary.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#14 2012-03-20 09:41:23

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: UltiSnips requires py >=2.6 or any py3 when starting vim

Mr.Elendig wrote:

gvim provides vim, so yes and no.
You can't have both the vim and gvim packages installed at once, but the gvim package also provides a vim binary.

OK, I see it now, but I get "No protocol specified" after opening something in vim as root. Is this normal and should I just add

export XAUTHORITY=/home/<user>/.Xauthority

to the root's .bashrc or it's bug?

Offline

Board footer

Powered by FluxBB