Closed lleixat closed 12 years ago
The plugin supports python 2.x only. Also using #dropper need to install the pygtk2.0 module for python 2.x if after you install python 2.7 and still have bugs. stop using the #dropper :(
I will add py3 support to todo list.
Actually I forgot that little detail. It is not so easy to live with python dependencies ;) Is it possible (and how) to force the use of this script with python2 [like in #!/usr/bin/env python2] ? (I tried several possibilities but without success.)
Thank you again to consider!
I don't know.
and even with '#!/usr/bin/env python2' . it only works under linux.
And there are errors when exec py3 on my machine. told me no py3 after using python command..
I think vim is using python and python3 separately. because :python is for python2.x :python3 is for python3.x and this script is using :python so I think you should check your python2.x library
I don't know.
On my system python
is an python 3.2 alias. pygtk 2.24 is properly installed too. I've tried to replace the /usr/bin/python -> /usr/bin/python2
alias, but nothing changes and the error is the same as above. Maybe the problem is pygtk2 compatibility.
Best regards.
try this
python import pygtk,gtk
python print pygtk,gtk
my output.
<module 'pygtk' from '/usr/lib/python2.7/dist-packages/pygtk.pyc'> <module 'gtk'
from '/usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.pyc'>
I thinks it's because vim falsely compiled or python package mistake.
I tried under arch linux and got this either.
but no error when execute import gtk
with python interpreter
hi,
with python2 only:
<module 'pygtk' from '/usr/lib/python2.7/site-packages/pygtk.pyc'><module 'gtk' from '/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.pyc'>
with python3, pygtk seems not be compatible (maybe). Another way to build UIs with py is using python-gobject (pyGI).
A dirty-crappy way to use it with pygtk is doing this import:
from gi.repository import Gtk
and you can continue to use pyGTK.
As I'm using Archlinux now. I can tell you what's wrong here now.
The gvim Archlinux compiled didn't link python2.7 correctly. You should recompile gvim yourself.
And before compile, don't forget to link python with python2.7
with
ln -sf python2.7 python
ok, thanks for the answer ;)
the PKGBUILD of gvim also mentioned this:
sed -i -e 's|vi_cv_path_python, python|vi_cv_path_python, python2|' \ vim-build/src/configure.in
Hi, I experience this issue with current master 2.5.1 version and colorv#dropper (spawning ColorPicker):
vim: 7.3 1-294 version compiled with +python/dyn and +python3/dyn python: v 3.2.2 os: linux 3.0-Arch x86_64
And many thanks for your hard work!
:wq! ;)