Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update needed for the newest Heroku-22 stack #9

Open
Mariusz558 opened this issue Sep 7, 2022 · 1 comment
Open

Update needed for the newest Heroku-22 stack #9

Mariusz558 opened this issue Sep 7, 2022 · 1 comment

Comments

@Mariusz558
Copy link

Mariusz558 commented Sep 7, 2022

Hi @dlo @rloewenherz

the newest Heroku stack, which is Heroku-22, requires python-3.10.7.

Could you please update the settings?

Cheers
Mariusz

@Mariusz558
Copy link
Author

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

@dlo Any idea how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant