Error detected while processing function <SNR>115_PollServerReady[7]..<SNR>115_Pyeval 异常修复

输入vim时会报一下异常:

Error detected while processing function <SNR>115_PollServerReady[7]..<SNR>115_Pyeval:
line    4:
/usr/lib/python2.7/dist-packages/OpenSSL/_util.py:6: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be
removed in the next release.

接着每次输入q 退出vim界面时也会接着报以下异常:

error detected while processing function <SNR>115_OnBufferUnload:
line    8:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/youcompleteme.py", line 465, in OnBufferUnload
    SendEventNotificationAsync( 'BufferUnload', deleted_buffer_number )
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/client/event_notification.py", line 69, in SendEventNotificationAsync
    event.Start()
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/client/event_notification.py", line 45, in Start
    'event_notification' )
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/client/base_request.py", line 137, in PostDataToHandlerAsync
    return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/client/base_request.py", line 152, in _TalkToHandlerAsync
    return BaseRequest.Session().post(
  File "/home/tzf/.vim/plugged/YouCompleteMe/python/ycm/client/base_request.py", line 196, in Session
    from requests_futures.sessions import FuturesSession
  File "/home/tzf/.vim/plugged/YouCompleteMe/third_party/requests-futures/requests_futures/sessions.py", line 24, in <module>
    from requests import Session
  File "/home/tzf/.vim/plugged/YouCompleteMe/third_party/requests_deps/requests/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl

原因: openSSL 库出问题

按以下步骤进行修复:

$ sudo rm -rf /usr/lib/python2.7/dist-packages/OpenSSL
$ sudo rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info

$ pip install pyopenssl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

猿-源

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值