Я пытаюсь развернуть свой проект django в Heroku с помощью Heroku CLI и сталкиваюсь с ошибкой установки

Все идет правильно, пока я не выполню эту команду:

git push heroku master

Мне делают такой массаж:

git push heroku master
Enumerating objects: 55, done.
Counting objects: 100% (55/55), done.
Delta compression using up to 8 threads
Compressing objects: 100% (46/46), done.
Writing objects: 100% (55/55), 15.40 KiB | 685.00 KiB/s, done.
Total 55 (delta 14), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote:  !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote:                         Detected buildpacks: Python,Node.js
remote:                         See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the buildpack default: python-3.10. 
remote:        To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.10.4
remote: -----> Installing pip 22.0.4, setuptools 60.10.0 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting argcomplete==1.8.1
remote:          Downloading argcomplete-1.8.1-py2.py3-none-any.whl (34 kB)
remote:        Collecting argh==0.26.2
remote:          Downloading argh-0.26.2-py2.py3-none-any.whl (30 kB)
remote:        Collecting attrs==19.3.0
remote:          Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
remote:        Collecting Automat==0.8.0
remote:          Downloading Automat-0.8.0-py2.py3-none-any.whl (31 kB)
remote:        Collecting blessings==1.6
remote:          Downloading blessings-1.6.tar.gz (19 kB)
remote:          Preparing metadata (setup.py): started
remote:          Preparing metadata (setup.py): finished with status 'error'
remote:          error: subprocess-exited-with-error
remote:
remote:          × python setup.py egg_info did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> [1 lines of output]
remote:              error in blessings setup command: use_2to3 is invalid.
remote:              [end of output]
remote:
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:        error: metadata-generation-failed
remote:
remote:        × Encountered error while generating package metadata.
remote:        ╰─> See above for output.
remote:
remote:        note: This is an issue with the package mentioned above, not pip.
remote:        hint: See above for details.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to murmuring-badlands-28149.
remote:
To https://git.heroku.com/murmuring-badlands-28149.git
 ! [remote rejected] master -> master (pre-receive hook declined)

файл settings.py:

Я использую windows 10 и запускаю этот код из подсистемы Ubuntu 20.04

Вероятно, вам необходимо обновить библиотеку благословений до версии 1.7.

https://github.com/erikrose/blessings

Из примечаний к релизу:

1.7:
Drop support for Python 2.6 and 3.3, which are end-of-lifed.
Switch from 2to3 to the six library.
Вернуться на верх