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

[python related] vim crashes while starting #373

Closed
writecoffee opened this issue Jun 9, 2013 · 2 comments
Closed

[python related] vim crashes while starting #373

writecoffee opened this issue Jun 9, 2013 · 2 comments

Comments

@writecoffee
Copy link

I compiled the ycm_core successfully after pointing the CMake flag -DPYTHON_LIBRARY to the libpython2.7.so manually.

But when I start my vim it starts calling the python and it failed.


Traceback (most recent call last):

File "/myenv/env/improvement/lib/python2.7/site.py", line 563, in main()

File "/myenv/env/improvement/lib/python2.7/site.py", line 545, in main

known_paths = addusersitepackages(known_paths)

File "/myenv/env/improvement/lib/python2.7/site.py", line 278, in addusersitepackages

user_site = getusersitepackages()

File "/myenv/env/improvement/lib/python2.7/site.py", line 253, in getusersitepackages

user_base = getuserbase() # this will also set USER_BASE

File "/myenv/env/improvement/lib/python2.7/site.py", line 243, in getuserbase

USER_BASE = get_config_var('userbase')

File "/myenv/env/improvement/lib/python2.7/sysconfig.py", line 472, in get_config_var

return get_config_vars().get(name)

File "/myenv/env/improvement/lib/python2.7/sysconfig.py", line 405, in get_config_vars

import re

File "/myenv/env/improvement/lib/python2.7/re.py", line 105, in

import sre_compile

File "/myenv/env/improvement/lib/python2.7/sre_compile.py", line 14, in

import sre_parse

File "/myenv/env/improvement/lib/python2.7/sre_parse.py", line 17, in

from sre_constants import *

File "/myenv/env/improvement/lib/python2.7/sre_constants.py", line 18, in

from _sre import MAXREPEAT

ImportError: cannot import name MAXREPEAT


From the hint of the traceback, I looked into my default python (python2.7.4 shown from the which command), the _sre module does have the member MAXREPEAT. My vim is as follows:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 27 2013 21:36:33)
Included patches: 1-672

I spent a lot of time setting it up, a quick hint is very appreciated.

@Valloric
Copy link
Member

I don't really know how to help here; the problem is caused by your Vim/machine configuration in some way.

@Valloric
Copy link
Member

Valloric commented Jul 9, 2013

Actually this is a duplicate of issue #241.

bijancn pushed a commit to bijancn/YouCompleteMe that referenced this issue Jul 26, 2016
Update JediHTTP

Fixes ycm-core#1924

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/373)
<!-- Reviewable:end -->
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 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

2 participants