初めて利用するので、質問・返信にいたらないことがあったら申し訳ございません。ご教授お願いいたします!
前提・実現したいこと
Flaskで作ったアプリをHerokuにgit push heroku masterしたいので、エラーを解消したいです。
発生している問題・エラーメッセージ
error: failed to push some refs to 'https://git.heroku.com/learn-build-flask-todo-app.git'
該当のソースコード
Bash
1ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/ktietz/src/ci/alabaster_1611921544520/work'
全体のコード
Enumerating objects: 50, done. Counting objects: 100% (50/50), done. Delta compression using up to 12 threads Compressing objects: 100% (48/48), done. Writing objects: 100% (50/50), 294.10 KiB | 2.70 MiB/s, done. Total 50 (delta 26), reused 0 (delta 0), pack-reused 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: -----> Python app detected remote: -----> No Python version was specified. Using the buildpack default: python-3.9.9 remote: To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.9.9 remote: -----> Installing pip 21.3.1, setuptools 57.5.0 and wheel 0.37.0 remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip remote: Processing /home/ktietz/src/ci/alabaster_1611921544520/work remote: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/ktietz/src/ci/alabaster_1611921544520/work' remote: remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 96dfb1fef80fdfdac1dcf51bcd1dbea08b375fe3 remote: ! remote: ! We have detected that you have triggered a build from source code with version 96dfb1fef80fdfdac1dcf51bcd1dbea08b375fe3 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to learn-build-flask-todo-app. remote: To https://git.heroku.com/learn-build-flask-todo-app.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/learn-build-flask-todo-app.git'
該当のソースコード
Bash
1ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/ktietz/src/ci/alabaster_1611921544520/work'
試したこと
Stackflowやその他ブログを参考に以下をのことを試みました。
0. requirements.txtの@pathの部分の削除
0. requirements.txtの再読み込み
開発環境
- Mac
- リストVSCOde
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。