Closed tbutler-qontigo closed 1 week ago
Hey. Try upgrading astroid which is a dependency of Pylint. Do you know which version of astroid is in your environment?
I am running on a standard github actions linux runner which apparently is using 2.3.17.0
Closing as astroid's version should be managed by pylint, setting/hard coding the astroid version is going to create issues. (If you encounter this problem don't set up astroid or set it to a version that is compatible with pylint after letting a dependency manager solve this for you).
@Pierre-Sassoulas I am not trying to change the vwersion of asteroid - that was someone else's suggestion.
I am simply running on the standard github action runner with whatever version it comes with - apparently 2.3.17.0
How can pylint be made to work with python 11 on a standard ubuntu-latest
github actions runner?
thanks
I think the issue is in github actions runner, they should not set the astroid version (pylint 3.2.3 is not compatible with the installed astroid). You can try to set the pylint version and the astroid version yourself with some pre-install script added to the github action or similar. Or open an issue and wait for a fix in the github action directly.
I'm not sure github would make a fix just for this one app. How would I set the asteroid version? It isn't something I am really familiar with - I am more on the devops side trying to get this to work in our CI pipeline than the python programming side. Thanks
If you're using pylint 3.2.3
then the required astroid should be set automatically to
Unless something somewhere change the version of astroid, pylint is set correctly and should bring the proper dependencies on install. If you don't know what tool or script is ruining your day, you can install the proper astroid manually yourself with pip install "astroid>=3.2.2,<=3.3.0-dev0"
(or another python tool than pip). It will work only for pylint 3.2.3
and will ruin your day again if the pylint version change.
Bug description
Using pylint < 3 works and I have heard that using e.g. python 3.9 also works
Pylint output
Expected behavior
pylint should work
Pylint version
OS / Environment
No response
Additional dependencies
No response