2017-02-22 13 views
1

vim 용 YouCompleteMe (./install.py --tern-complete --clang-complete)가 설치되어 있으며 오류가 있습니다.YoucompleteMe 오류 : 기호를 찾을 수 없음 : __PyCodecInfo_GetIncrementalDecoder

오류 :

나를 위해
Traceback (most recent call last): 
    File "<string>", line 19, in <module> 
    File "/Users/khotey/.vim/plugged/YouCompleteMe/autoload/../python/ycm/setup.py", line 37, in SetUpSystemPaths 
    from ycmd import server_utils as su 
    File "/Users/khotey/.vim/plugged/YouCompleteMe/python/ycm/../../third_party/ycmd/ycmd/server_utils.py", line 25, in <module> 
    import io 
    File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module> 
    import _io 
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder 
    Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so 
    Expected in: flat namespace 
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so 
YouCompleteMe unavailable: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder 
    Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so 
    Expected in: flat namespace 
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so 
Press ENTER or type command to continue 

답변

1

, 문제는 빔은 적절한 파이썬 버전을 사용하지 않았다. 너무 나를 위해 일한 것을 충분히 재미있게

brew unlink python 
brew link python 

Discussion in ycm issue.

+0

:

나는에 의해 나의 Mac에서 그것을 해결. 그것은 행복하게 파이썬의 맥 버전으로 설치합니다. Python의 BREW 버전을 다시 링크하거나 다시 설치 (제거한 경우)하는 것을 잊지 마십시오. – gloriphobia