amoffat / snake

Full Python Scripting in Vim
1.41k stars 56 forks source link

SetuptoolsDeprecationWarning is shown at importing virtualenv in plugin_loader.py #31

Closed fx-kirin closed 2 years ago

fx-kirin commented 2 years ago

When I updated setuptools to 61.2.0, this error is shown every time I start vim. I figured out it was because the command import virtualenv caused this warning message.

Error detected while processing function LoadSnake:
line    9:
/home/myuser/.local/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other
standards-based tools.
  warnings.warn(
Press ENTER or type command to continue

Other message is also shown but I didn't figure out where it was caused.

/home/myuser/.local/lib/python3.8/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")

For now, I inserted warning filter like below.

import warnings
warnings.filterwarnings("ignore")
fx-kirin commented 2 years ago

I just found out virtualenv version is outdated. Sorry for the noise.