Vim YouCompleteMe和小牛队的Ultisnips

时间:2014-05-28 02:55:09

标签: python vim ultisnips

我有一个绝对令人难以置信的时间在小牛队上安装Ultisnips和YouCompleteMe。我已经安装了python,然后是vim。我已经让vim工作了,但是在尝试启用这两个插件时,永远不会结束python错误。

类似的事情:

Error detected while processing function UltiSnips#bootstrap#Bootstrap:
line   35:
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File"/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)

我已经通过谷歌搜索阅读了所有内容,但这场斗争似乎比山狮更难。

我的.vimrc在这里:https://github.com/nobleach/dotfiles/blob/master/.vimrc

我现在已经注释掉了两个有问题的插件(是的,我知道我有相互矛盾的绑定,我只使用了一个)

2 个答案:

答案 0 :(得分:0)

对于遇到这些问题的其他任何人来说,它实际上是有问题的自制的python安装。它需要被迫使用酿造的openssl verstion:

brew install openssl
brew link openssl --force
brew uninstall python
brew install python --with-brewed-openssl

应该让事情再次发生。

答案 1 :(得分:0)

对我来说,在我的mac中用自制软件升级python之后,我重新安装了vim以使所有的东西都能正常工作。

brew uninstall vim
brew install vim