Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: The imp module is deprecated in favour of importlib; #996

Closed
9mm opened this issue Jun 30, 2018 · 4 comments
Closed

Comments

@9mm
Copy link

9mm commented Jun 30, 2018

  • Macvim 8.1-149_1
  • VIM - Vi IMproved 8.1

Expected behavior:

Zero warnings

Actual behavior:

Upon typing any key after going into insert mode, it gives this warning.

Steps to reproduce

Open vim, enter insert mode, type any key.

@0x00000024
Copy link

0x00000024 commented Jul 2, 2018

It seems that the python3.7 update has caused this issue.

I'm using vim and fixed with this command:
brew reinstall vim --with-python@2

If you are using macvim, maybe you can try this command:
brew reinstall macvim --with-override-system-vim --with-python@2

@alaaibrahim
Copy link

This will happen when running any python3 (while using python3.7) in vim. not specific to Ultisnips.

See vim/vim#3117

@dbmrq
Copy link

dbmrq commented Jul 9, 2018

To anybody else who's having this issue, I think this is the best workaround:

Regardless of installed plugins, silently execute python3 once on the top of your vimrc:

if has('python3')
  silent! python3 1
endif

@lacygoill
Copy link
Contributor

The issue has been fixed in Vim with the patch 8.1.0201.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants