You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've updated Python to 3.10.7 and now I cannot deploy due to the following error:
-----> $ python manage.py collectstatic --noinput
Traceback (most recent call last):
File "/tmp/build_0207dfb0/manage.py", line 8, in
from django.core.management import execute_from_command_line
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/init.py", line 13, in
from django.core.management.base import (
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/base.py", line 17, in
from django.db.migrations.exceptions import MigrationSchemaMissing
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/migrations/init.py", line 2, in
from .operations import * # NOQA
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/migrations/operations/init.py", line 1, in
from .fields import AddField, AlterField, RemoveField, RenameField
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/migrations/operations/fields.py", line 4, in
from django.db.models.fields import NOT_PROVIDED
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/init.py", line 5, in
from django.db.models.deletion import (
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/deletion.py", line 5, in
from django.db.models import signals, sql
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/sql/init.py", line 2, in
from django.db.models.sql.query import * # NOQA
File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/sql/query.py", line 11, in
from collections import Counter, Iterator, Mapping, OrderedDict
ImportError: cannot import name 'Iterator' from 'collections' (/app/.heroku/python/lib/python3.10/collections/init.py)
! Error while running '$ python manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1 https://devcenter.heroku.com/articles/django-assets
! Push rejected, failed to compile Python app.
! Push failed
Hi @dlo @rloewenherz
the newest Heroku stack, which is Heroku-22, requires python-3.10.7.
Could you please update the settings?
Cheers
Mariusz
The text was updated successfully, but these errors were encountered: