Hello, Thank you for reporting this. Is upgrading to Python 3.6.2 or superior a possibility ? It might be the solution here. We detected a potential problem recentely, but there are very few 3.6.0 and 3.6.1 users so this is the first actual report of an issue (see https://github.com/PyCQA/pylint/issues/5065). We're going to release a final version compatible with 3.6.0 and 3.6.1, probably based on 2.9.5 and not on the latest 2.11. We will also drop python 3.6 when it's no longer supported in december 2021, so if you want the latest features, upgrading to 3.7 will be necessary soon. Le mar. 5 oct. 2021 à 01:09, Dan Stromberg <strombrg@gmail.com> a écrit :
The traceback looks like:
$ python3.6 -m pylint keepercommander/commands/record_common.py cmd output started 2021 Mon Oct 04 03:54:33 PM PDT Traceback (most recent call last): File "/usr/local/cpython-3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/cpython-3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/__main__.py", line 9, in <module> pylint.run_pylint() File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/__init__.py", line 24, in run_pylint PylintRun(sys.argv[1:]) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/lint/run.py", line 268, in __init__ linter.load_default_plugins() File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 547, in load_default_plugins checkers.initialize(self) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/checkers/__init__.py", line 84, in initialize register_plugins(linter, __path__[0]) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/utils/utils.py", line 195, in register_plugins module.register(linter) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/checkers/refactoring/__init__.py", line 50, in register linter.register_checker(RefactoringChecker(linter)) File "/Users/dstromberg/.local/lib/python3.6/site-packages/pylint/checkers/refactoring/refactoring_checker.py", line 468, in __init__ self._consider_using_with_stack = ConsiderUsingWithStack() TypeError: __new__() missing 3 required positional arguments: 'module_scope', 'class_scope', and 'function_scope'
It doesn't appear to matter what file I try to lint; pylint gives that same traceback.
Further detail: $ python3.6 -m pylint --version cmd output started 2021 Mon Oct 04 03:55:06 PM PDT pylint 2.11.1 astroid 2.8.0 Python 3.6.0 (default, Oct 4 2021, 15:45:33) [GCC Apple LLVM 12.0.5 (clang-1205.0.22.11)]
$ python3.6 --version cmd output started 2021 Mon Oct 04 04:06:05 PM PDT Python 3.6.0
Pypi seems to believe that pylint still supports CPython 3.6 though.
The same pylint version of the same input file with CPython 3.7 works as I'm accustomed to.
Is there any possibility of a fix, or workaround?
Thanks! I really like pylint.
--
Dan Stromberg | Senior Software Engineer
Mobile +1.949.342.6502
** This email is confidential and is intended for the recipient(s) addressed herein ** _______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-leave@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: pierre.sassoulas@gmail.com