Open cmorsbach opened 1 year ago
Thank you for opening the issue, if you want you can also fix it and become a contributor. The fix is to remove the windows specificity of the requirements (maybe add a little changelog entry).
Sure thing, looks easy enough if you're fine with having that required for linux.
I just had a look, and in my opinion this problem cannot really come from pylint calling colorama. This is indeed only done if the platform is win32. So the problem must be in one of the other dependencies possibly using colorama. Do you still want this requirement in pylint, then?
If it's not strictly necessary, then no 😄 Your traceback still had pylint call in it and seemed pretty convincing though.
Well nothing in the call stack has colorama in it. Still I don't understand how in my linux environment we get past https://github.com/pylint-dev/pylint/blob/main/pylint/reporters/text.py#L230, since I get
$ python -c "import sys; print(f'{sys.platform=}')"
sys.platform='linux'
Well, in the end, I definitely have a case, where I have a problem with pylint, even if it might be exotic. 🤷
Wouldn't it make sense to ask for version 0.4.6 of colorama for every platform? The release is more than 2 years old and it added support for Python 3.9 (in 0.4.5).
Doing that would possibly prevent someone from using the old version of colorama if they want for no real reasons, I don't think we should do it unless we're sure there's an issue. (But we support >= python 3.9 which means pip is not going to bring versions < 0.4.5 anyway, as the current version of pylint is incompatible with python 3.8).
Bug description
The colorama==0.4.4 RecursionError described in #6012 and fixed in #6970 can also occur in non-windows environment. In our case it occurred on a GitLab Linux runner when pylint was executed as part of a GitLab pipeline. For some strange reason, the problem did not occur on the same system when logged in on the Linux shell.
Therefore, I suggest that the colorama>=0.4.5 dependency should also be enforced on Linux operating systems.
Configuration
No response
Command used
Pylint output
Expected behavior
Run without error
Pylint version
OS / Environment
SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux
Additional dependencies