You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: