Troubleshooting VIM Error: The IMP module is deprecated in favour of importlib

Source: Internet
Author: User
Tags deprecated

Problem Description:
After you open vim, the following error occurs:

Error detected while processing function youcompleteme#Enable[3]..<SNR>71_SetUpPython:line   42:/must>not&exist/foo:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module‘s documentation for alternative uses

Reason:
This problem occurs when using Python 3.7,
You can temporarily configure the following in. VIMRC and wait for the update Python 3.7来 to solve this problem:

Workaround:
In. VIMRC, add the following

" temporary fix" https://github.com/vim/vim/issues/3117if has(‘python3‘)  silent! python3 1endif

Other Workarounds:
https://github.com/vim/vim/issues/3117

Troubleshooting VIM Error: The IMP module is deprecated in favour of importlib

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.