質問編集履歴

4

追記しました

2022/07/14 06:55

投稿

myao
myao

スコア116

test CHANGED
@@ -1 +1 @@
1
- Herokuでデプロイすると「App not compatible with buildpack」 とエラーが返される
1
+ 「ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory」 とエラーが返される
test CHANGED
@@ -1,7 +1,7 @@
1
1
  **前提・実現したいこと**
2
2
  ---
3
3
  HerokuでGithub接続して作成したアプリケーションをデプロイしようとしたのですが、
4
- アプリケーションをサーバーで動作しようとすると「App not compatible with buildpack」とエラーが起こりました。
4
+ アプリケーションをサーバーで動作しようとすると「ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 」とエラーが起こりました。
5
5
 
6
6
  初歩的な質問で恐縮ですが、ご教授いただけると幸いです。
7
7
 
@@ -11,8 +11,17 @@
11
11
  ```ここに言語を入力
12
12
  -----> Building on the Heroku-20 stack
13
13
  -----> Using buildpack: heroku/python
14
+ -----> Python app detected
14
- -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
15
+ -----> No Python version was specified. Using the buildpack default: python-3.10.5
15
- More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
16
+ To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
17
+ -----> Installing python-3.10.5
18
+ -----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
19
+ -----> Installing SQLite3
20
+ -----> Installing requirements with pip
21
+ Processing /tmp/build/80754af9/asgiref_1625643473416/work
22
+ ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/tmp/build/80754af9/asgiref_1625643473416/work'
23
+
24
+ ! Push rejected, failed to compile Python app.
16
25
  ! Push failed
17
26
  ```
18
27
  とエラーが返されました。
@@ -24,15 +33,9 @@
24
33
  ├──polls
25
34
  ├──db.sqlite3
26
35
  ├── manage.py
36
+ ├──README.md
37
+ ├── requirements.txt
27
38
  ```
28
-
29
- **試したこと**
30
- ---
31
- ・対応のバージョンでアプリケーションを作成し直しました。(Python3.6.9→Python3.8.13)
32
-
33
- ・Heroku7.60.2にバージョンアップしました。
34
-
35
- ・PythonのビルドパックをHerokuに設置しました。
36
39
 
37
40
  **使用ツール**
38
41
  ---

3

誤字

2022/07/13 11:33

投稿

myao
myao

スコア116

test CHANGED
@@ -1 +1 @@
1
- Herokでデプロイすると「App not compatible with buildpack」 とエラーが返される。
1
+ Herokuでデプロイすると「App not compatible with buildpack」 とエラーが返される。
test CHANGED
@@ -37,5 +37,5 @@
37
37
  **使用ツール**
38
38
  ---
39
39
  Python3.8.13
40
- Herok7.60.2
40
+ Heroku7.60.2
41
41
  Windows10

2

追記しました

2022/07/13 11:32

投稿

myao
myao

スコア116

test CHANGED
@@ -1 +1 @@
1
- App not compatible with buildpack とエラーが返される。
1
+ Herokでデプロイすると「App not compatible with buildpack とエラーが返される。
test CHANGED
File without changes

1

追加

2022/07/13 11:23

投稿

myao
myao

スコア116

test CHANGED
@@ -1 +1 @@
1
- 作成したアプリケーションをHerokuでデプロイしたい
1
+ App not compatible with buildpack とエラーが返される。
test CHANGED
@@ -1,35 +1,41 @@
1
1
  **前提・実現したいこと**
2
2
  ---
3
+ HerokuでGithub接続して作成したアプリケーションをデプロイしようとしたのですが、
3
- 機械学習初心者です。Pythonで作成したアプリケーションをこちらのイト(https://qiita.com/osakasho/items/527421ec483052055b34) を参考にデプロイしよう進めたところ、エラーが起こりました。
4
+ アプリケーションをサーバーで動作しようとすると「App not compatible with buildpack」とエラーが起こりました。
4
5
 
5
6
  初歩的な質問で恐縮ですが、ご教授いただけると幸いです。
7
+
8
+
9
+ **エラー**
10
+ ---
11
+ ```ここに言語を入力
12
+ -----> Building on the Heroku-20 stack
13
+ -----> Using buildpack: heroku/python
14
+ -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
15
+ More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
16
+ ! Push failed
17
+ ```
18
+ とエラーが返されました。
6
19
 
7
20
  **ディレクトリ構造**
8
21
  ---
9
22
  ```ここに言語を入力
10
- mysite──────mysute
23
+ mysite──────mysite
11
- ├──polls
24
+ ├──polls
12
- ├── templates
13
- ├──db.sqlite3
25
+ ├──db.sqlite3
14
- ├── manage.py
26
+ ├── manage.py
15
- |
16
- ├──main.py
17
- ├── Procfile
18
- ├──runtime.txt
19
- ├── requirements.txt
20
- ```
27
+ ```
28
+
21
- **エラー**
29
+ **試したこと**
22
30
  ---
31
+ ・対応のバージョンでアプリケーションを作成し直しました。(Python3.6.9→Python3.8.13)
32
+
33
+ ・Heroku7.60.2にバージョンアップしました。
34
+
23
- git push heroku masterを行うと
35
+ ・PythonのビルドパックをHerokuに設置しました。
24
- ```ここに言語を入力
25
- To https://git.heroku.com/アプリケーション名.git
26
- ! [remote rejected] master -> master (pre-receive hook declined)
27
- error: failed to push some refs to 'https://git.heroku.com/アプリケーション名.git'
28
- ```
29
- とエラーが返されました。
30
36
 
31
37
  **使用ツール**
32
38
  ---
33
- Python3.6.9
39
+ Python3.8.13
34
- Djando2.2.7
40
+ Herok7.60.2
35
41
  Windows10