Giter Site home page Giter Site logo

Python error about yavide HOT 17 OPEN

jbakamovic avatar jbakamovic commented on May 18, 2024
Python error

from yavide.

Comments (17)

JBakamovic avatar JBakamovic commented on May 18, 2024

Please attach the whole log. Something is not right with installing the Python dependencies.

from yavide.

ikouchiha47 avatar ikouchiha47 commented on May 18, 2024

ok . I have to do it once again

from yavide.

petermeng avatar petermeng commented on May 18, 2024

Have you solved this problem? I have the same one.

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

It's Python dependency missing. I can't really tell more without more information. I haven't got Debian system running here.

Can you try running apt get install python-dev and let me know if it works out for you? This is dependency which should be installed by the install.sh script but something may have gone wrong.

from yavide.

petermeng avatar petermeng commented on May 18, 2024

I have install python-dev and also tried to reinstall pip. But it still does not work.

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

Can you try installing python3-dev package?

from yavide.

petermeng avatar petermeng commented on May 18, 2024

Yes, I have install python3-dev.
Building dependency tree
Reading state information... Done
python3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

By the way, I tried to install "clang watchdog" manually. But it failed.

#pip2 install "clang watchdog"
Invalid requirement: 'clang watchdog'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 82, in init
req = Requirement(req)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/requirements.py", line 96, in init
requirement_string[e.loc:e.loc + 8]))
InvalidRequirement: Invalid requirement, parse error at "'watchdog'"

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

Correct syntax should be pip2 install clang watchdog. You have extra "" there.

from yavide.

petermeng avatar petermeng commented on May 18, 2024

$ pip2 install clang watchdog
Requirement already satisfied: clang in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: watchdog in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: PyYAML>=3.10 in /usr/local/lib/python2.7/dist-packages (from watchdog)
Requirement already satisfied: argh>=0.24.1 in /usr/local/lib/python2.7/dist-packages (from watchdog)
Requirement already satisfied: pathtools>=0.1.1 in /usr/local/lib/python2.7/dist-packages (from watchdog)

I tried it again, and it still does not work.

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

In any case I didn't see clang/watchdog failure in the log but only the one related to libyaml-dev. Can you please try running apt-get install libyaml-dev?

from yavide.

petermeng avatar petermeng commented on May 18, 2024

I have installed libyaml-dev. By the way, is it possilbe that some of libs are very old?
sudo apt-get install libyaml-dev
[sudo] password for peter:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libyaml-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

from yavide.

Claudius42 avatar Claudius42 commented on May 18, 2024

As far as I understood your implementation works only with a vim version supporting python 2.x, correct?
Are there any plans to support vim compiled with '-python +python3'?

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

Hm, having python3 support should not break anything as long as there is python2 support compiled in as well. However, using python3 interpreter only would not work as project is python 2.x based. I am not sure I will be porting the code to new Python version. Probably not.

from yavide.

Claudius42 avatar Claudius42 commented on May 18, 2024

That's my problem, my installed vim (8.0.x) only supports python3 and not python 2.x. I use Ubuntu 14.04 LTS due to other requirements. I haven't found any pre-compiled binaries of vim supporting python 2.x and GUI for this target platform.
Which vim version do you use and did you get it? Can you provide any link or the parameters for the configure command to build vim from scratch in order to use your great setup?

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

First of all, Yavide requires gvim so what you should be really looking is if your gvim has been compiled with python2 support or not. This is a limitation mostly due to the clientserver feature which most distributions do not include in plain vim. There are numerous instructions on the web how to compile vim from the sources but I would advise to have a try with something from this stackoverflow answer. Read the comments as well.

from yavide.

yoni206 avatar yoni206 commented on May 18, 2024

I have installed vim.gnome-py2, which has both python and clientserver support.
Also, I ran update-alternatives for both vim and gvim.

Is there a way to get Yavide work through vim and not gvim? Right now, the command yavide opens gvim.

from yavide.

JBakamovic avatar JBakamovic commented on May 18, 2024

Is there a way to get Yavide work through vim and not gvim? Right now, the command yavide opens gvim.

As I mentioned it above, vim is not distributed with clientserver support compiled in. If you find one elsewhere or compile vim yourself so it has that feature, with minor fix you should be able to run yavide without any problems. Fix is replacing gvim occurrence with vim here and here.

from yavide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.