adrienverge / yamllint

A linter for YAML files.
GNU General Public License v3.0
2.79k stars 265 forks source link

Wrong pip version used #674

Open timothee-dione-evooq opened 2 months ago

timothee-dione-evooq commented 2 months ago

Hi, I try running this hook on Ubuntu 23.10, and when I launch the command "pre-commit run", I systematically get the following error:

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-bolo7r0i/ WARNING: You are using pip version 19.1, however version 20.3.4 is available.

The point is the following:

Does someone have an idea on how I can resolve it ?

Thanks

andrewimeson commented 1 month ago

This isn't related to yamllint, this is a pre-commit issue. I would just pre-commit uninstall on the repo, and the uninstall and reinstall pre-commit with pip. If that doesn't work, find out how to get help from the pre-commit project.

timothee-dione-evooq commented 3 weeks ago

The solution was to update virtualenv to the last version for my distribution (Ubuntu 23.10). The version could be found here: https://packages.ubuntu.com/mantic/virtualenv