--- Begin Message ---
Source: pylint, pylint-django
Control: found -1 pylint/2.15.3-1
Control: found -1 pylint-django/2.0.13-2
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: breaks needs-update
Dear maintainer(s),
With a recent upload of pylint the autopkgtest of pylint-django fails in
testing when that autopkgtest is run with the binary packages of pylint
from unstable. It passes when run with only packages from testing. In
tabular form:
pass fail
pylint from testing 2.15.3-1
pylint-django from testing 2.0.13-2
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of pylint to testing
[1]. Due to the nature of this issue, I filed this bug report against
both packages. Can you please investigate the situation and reassign the
bug to the right package?
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=pylint
https://ci.debian.net/data/autopkgtest/testing/amd64/p/pylint-django/27163271/log.gz
Running “django-admin startproject testproject”
Running “django-admin startapp testapp”
Running “pylint --version”
pylint 2.15.3
astroid 2.12.10
Python 3.10.7 (main, Sep 8 2022, 14:34:29) [GCC 12.2.0]
Running “pylint -E --load-plugins=pylint_django testapp/”
Exception on node <Module.testapp l.0 at 0x7f369f1c2500> in file
'/tmp/autopkgtest-lxc.6ld_wzc5/downtmp/autopkgtest_tmp/testproject/testapp/__init__.py'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp
testapp/__init__.py:1:0: F0002: testapp/__init__.py: Fatal error while
checking 'testapp/__init__.py'. Please open an issue in our bug tracker
so we address this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
from django.apps import AppConfig
class TestappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'testapp'
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.apps
testapp/apps.py:1:0: F0002: testapp/apps.py: Fatal error while checking
'testapp/apps.py'. Please open an issue in our bug tracker so we address
this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-20.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
from django.db import models
# Create your models here.
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.models
testapp/models.py:1:0: F0002: testapp/models.py: Fatal error while
checking 'testapp/models.py'. Please open an issue in our bug tracker so
we address this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
from django.test import TestCase
# Create your tests here.
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.tests
testapp/tests.py:1:0: F0002: testapp/tests.py: Fatal error while
checking 'testapp/tests.py'. Please open an issue in our bug tracker so
we address this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
from django.contrib import admin
# Register your models here.
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.admin
testapp/admin.py:1:0: F0002: testapp/admin.py: Fatal error while
checking 'testapp/admin.py'. Please open an issue in our bug tracker so
we address this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
from django.shortcuts import render
# Create your views here.
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.views
testapp/views.py:1:0: F0002: testapp/views.py: Fatal error while
checking 'testapp/views.py'. Please open an issue in our bug tracker so
we address this. There is a pre-filled template that you can use in
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt'.
(astroid-error)
Can't write the issue template for the crash in
/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt because
of: '[Errno 2] No such file or directory:
'/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt''
Here's the content anyway:
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
Then create a new crash issue:
https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
Issue title:
Crash ```` (if possible, be more specific about what made pylint crash)
Content:
When parsing the following file:
<!--
If sharing the code is not an option, please state so,
but providing only the stacktrace would still be helpful.
-->
```python
```
pylint crashed with a ``AstroidError`` and with the following stacktrace:
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
782, in _lint_file
check_astroid_module(module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1049, in check_astroid_module
retval = self._check_astroid_module(
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
1099, in _check_astroid_module
walker.walk(node)
File "/usr/lib/python3/dist-packages/pylint/utils/ast_walker.py",
line 95, in walk
callback(astroid)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 739, in wrap_func
return with_method(orig_method, *args, **kwargs)
File
"/usr/lib/python3/dist-packages/pylint_django/augmentations/__init__.py",
line 317, in ignore_import_warnings_for_related_fields
consumer._atomic = ScopeConsumer(new_things, consumer.consumed,
consumer.scope_type) # pylint: disable=W0212
TypeError: ScopeConsumer.__new__() missing 1 required positional
argument: 'scope_type'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line
784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
```
.
************* Module testapp.migrations.__init__
testapp/migrations/__init__.py:1:0: F0002:
testapp/migrations/__init__.py: Fatal error while checking
'testapp/migrations/__init__.py'. Please open an issue in our bug
tracker so we address this. There is a pre-filled template that you can
use in '/home/debci/.cache/pylint/pylint-crash-2022-10-16-06-16-21.txt'.
(astroid-error)
autopkgtest [06:16:22]: test django-sample
OpenPGP_signature
Description: OpenPGP digital signature
--- End Message ---