DjangoをHerokuでデプロイする時にgit pushでエラーが発生する
解決したいこと
DjangoのサイトをHerokuでデプロイしたいのですが
$ git push heroku master
とタイプすると下記のエラーが発生します。
どなたか解決方法教えていただけないでしょうか。
バージョン
Python 3.9.7
Django 4.0.3
git branch
*(HEAD detached from origin/master)
heroku stack
*heroku-20
発生している問題・エラー
エラーメッセージ抜粋
このエラーのせいだと思います。
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/concourse/worker/volumes/live/ba25**60-e2b9-4a6d-6906-
エラーメッセージ本文
Enumerating objects: 350, done.
Counting objects: 100% (350/350), done.
Delta compression using up to 8 threads
Compressing objects: 100% (329/329), done.
Writing objects: 100% (350/350), 1.56 MiB | 5.56 MiB/s, done.
Total 350 (delta 103), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ----->
Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote: ! Python has released a security update! Please consider upgrading to python-3.9.13
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.9.7
remote: -----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote: Processing /opt/concourse/worker/volumes/live/ba252660-e2b9-4a6d-6906-9be4ed7deda4/volume/aiohttp_1646806382603/work
remote: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/concourse/worker/volumes/live/ba25**60-e2b9-4a6d-6906-9be4ed7deda4/volume/aiohttp_1646806**2603/work'
remote:
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to *****.
remote:
To https://git.heroku.com/*****.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/*****.git'
herokuエラーメッセージ
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
! Python has released a security update! Please consider upgrading to python-3.9.13
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.9.7
-----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Processing /opt/concourse/worker/volumes/live/ba252660-e2b9-4a6d-6906-9be4ed7deda4/volume/aiohttp_1646806382603/work
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/concourse/worker/volumes/live/ba252660-e2b9-4a6d-66-9be4ed7da4/volume/aiohttp_1646806382603/work'
! Push rejected, failed to compile Python app.
! Push failed
0