Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure you link against python2 #2

Closed
RedBeard0531 opened this issue Jan 30, 2013 · 9 comments
Closed

Make sure you link against python2 #2

RedBeard0531 opened this issue Jan 30, 2013 · 9 comments

Comments

@RedBeard0531
Copy link
Contributor

On Archlinux the default python is 3.x and you need to use python2 to get 2.x. Also need to include from /usr/lib/python2.7 not /usr/lib/python3.3m. Interestingly the ycm_core module compiles and loads fine as Py3 but ycm.py won't as it uses Py2 syntax. The error message in vim for this case incorrectly suggests that a missing libclang.so is to blame.

@Valloric
Copy link
Member

Thanks for catching this; should be fixed now.

@jan--f
Copy link

jan--f commented Feb 5, 2013

Issue seems to be still present.
When starting vim the following error is produced:
YouCompleteMe unavailable: requires python 2.x

python 2.7.3 is installed (also python3). vim is on version 7.3.754. ycm was build without semantic support for c family and worked very well. System is 64 bit Arch Linux 3.7.4-1.

@stuartmemo
Copy link

Having same issue...

Screen Shot 2013-02-05 at 16 29 52

@stelleg
Copy link

stelleg commented Feb 5, 2013

Same issue, set default python to alias to python2.7.3, still getting "YouCompleteMe unavailable: requires python 2.x"

python --version
Python 2.7.3

vim
YouCompleteMe unavailable: requires python 2.x

@yilinjuang
Copy link

Still having this issue
screenshot3

@vheon
Copy link
Contributor

vheon commented Jun 25, 2014

@frankyjuang what is the output of vim --version?

Grimy pushed a commit to Grimy/YouCompleteMe that referenced this issue Dec 22, 2014
@pinkisemils
Copy link

Updated 5 minutes ago, and python/ycm/base.py and python/ycm/vimsupport.py still reference python instead of python2.
Changing the shebang to use
#!/usr/bin/env python2
instead of
#!/usr/bin/env python
should not be that hard ;)

@micbou
Copy link
Collaborator

micbou commented Nov 11, 2015

Changing those shebangs would do nothing. In fact, we should remove them. There are only useful for the install.py and run_tests.py scripts.

@Yamakaky
Copy link

Could this be fixed for install.py and run_tests.py? This issue has been open for two years, even if it's a small change to make.

@hardboydu hardboydu mentioned this issue Jul 4, 2016
limbolily pushed a commit to limbolily/YouCompleteMe that referenced this issue Aug 9, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants