You are not logged in.
Until recently, I was using the gvim-python3 package. However, now that package has been replaced by the gvim package, and running :python print(sys.version) gives 2.7.11 as the version. As I use vim-jedi, I would like the default python version to be 3.
I tried using ABS and changing the --enable-pythoninterp=dyanmic flag to --disable-pythoninterp in the PKGBUILD, but after installing the newly built VIM, and running vim --version, the default python version was still 2.7.11, and running vim --version shows the python/dyn flag.
Where should I look to figure out what I did wrong?
Last edited by dyoshida (2016-01-21 21:41:06)
Offline
Try with these options:
--disable-pythoninterp \
--enable-python3interp \
Moving to "Creating & Modifying Packages".
Offline
Just to clarify vim/gvim was compiled with both python2 and python3 support. You need to use ":python3 print(sys.version)" for it.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
@x33a: Thanks, that worked!
Before, I had:
--disable-pythoninterp \
--enable-python3interp=dynamic \
which was leading to python 2 still being available. Out of curiosity, what does the "dyanmic" bit do? (I was unable to find it from my Googling)
Last edited by dyoshida (2016-01-19 23:54:46)
Offline
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
It's a misspelling of "dynamic", but I don't know where you got it from, it's not in Arch's PKGBUILD.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
@anatolik: I did read that, but the fact that --enable-python3interp=dyanmic also includes python 2 was the bit that was surprising.
@WorMzy Edited It's in Arch's PKGBUILD.
Offline
@dyoshida, please mark the thread as solved.
Offline
Thanks for the help!
Offline
The problem was not in vim default python interpreter.
The real root of the problem is that the last version of jedi-vim (0.7.0) has been released in 2013 and did not work well with python3.
Since then python3 support in jedi-vim has been improved a lot. We asked jedi-vim to make a new release. 0.8.0 has been released and now it is in Arch repo. Please remove the hacked version of vim and update packages. jedi-vim suppose to work well now.
Moral of this story: do not try to add workarounds over workarounds. Try to fine the real root of the issue and fix that. Work with upstream more actively.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline