質問編集履歴

3

ログの更新

2021/03/06 15:34

投稿

ojthon
ojthon

スコア0

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ```
22
22
 
23
- remote: -----> Downloading chromedriver v89.0.4389.72...
23
+ remote: -----> Downloading chromedriver v89.0.4389.82...
24
24
 
25
25
  remote: Archive: /tmp/chromedriver.zip
26
26
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  remote: unzip: cannot find zipfile directory in one of /tmp/chromedriver.zip or
36
36
 
37
- remote: /tmp/chromedriver.zip.zip, and cannot find /tmp/chromedriver.zip.ZIP, period
37
+ remote: /tmp/chromedriver.zip.zip, and cannot find /tmp/chromedriver.zip.ZIP, period.
38
38
 
39
39
  remote: ! Push rejected, failed to compile chromedriver app.
40
40
 
@@ -42,35 +42,13 @@
42
42
 
43
43
  remote: ! Push failed
44
44
 
45
- remote: !
46
-
47
- remote: ! ## Warning - The same version of this code has already been built: 4abf1389f781d56f541c7c52ed4c48aa4e4*****
48
-
49
- remote: !
50
-
51
- remote: ! We have detected that you have triggered a build from source code with version 4abf1389f781d56f541c7c52ed4c48aa4e4*****
52
-
53
- remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
54
-
55
- remote: !
56
-
57
- remote: ! If you are developing on a branch and deploying via git you must run:
58
-
59
- remote: !
60
-
61
- remote: ! git push heroku <branchname>:main
62
-
63
- remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
64
-
65
- remote:
66
-
67
45
  remote: Verifying deploy...
68
46
 
69
- remote:
47
+ remote:
70
48
 
71
49
  remote: ! Push rejected to [app_name].
72
50
 
73
- remote:
51
+ remote:
74
52
 
75
53
  To https://git.heroku.com/[app_name].git
76
54
 
@@ -84,15 +62,11 @@
84
62
 
85
63
  ### requirements.txt
86
64
 
87
- beautifulsoup4==4.9.3
88
-
89
65
  certifi==2020.12.5
90
66
 
91
67
  chardet==4.0.0
92
68
 
93
69
  click==7.1.2
94
-
95
- flake8==3.8.4
96
70
 
97
71
  Flask==1.1.2
98
72
 
@@ -112,25 +86,17 @@
112
86
 
113
87
  MarkupSafe==1.1.1
114
88
 
115
- mccabe==0.6.1
116
-
117
- pycodestyle==2.6.0
118
-
119
- pyflakes==2.2.0
120
-
121
89
  python-dateutil==1.5
122
90
 
123
91
  requests==2.25.1
124
92
 
125
93
  selenium==3.141.0
126
94
 
127
- simplejson==3.17.2
128
-
129
- soupsieve==2.2
130
-
131
95
  urllib3==1.26.3
132
96
 
133
97
  Werkzeug==1.0.1
98
+
99
+
134
100
 
135
101
 
136
102
 

2

原因箇所を明記

2021/03/06 15:34

投稿

ojthon
ojthon

スコア0

test CHANGED
File without changes
test CHANGED
@@ -1,14 +1,18 @@
1
1
  ### 概要
2
2
 
3
- Git bashmasterブランチに git push heroku master すると、下記エラーが発生してpushがリジェクトされる
3
+ herokuのBuildpackにchromedriverを追加してgit push heroku master すると、pushがリジェクトされる
4
4
 
5
5
 
6
6
 
7
- 丸1日ほどあれこれ調べながら試してみて、chromedriverのBuild Packが問題のようだという結論に至りましたが、効果的な解消方法がわかりません。
7
+ chromedriverのURL
8
8
 
9
- ご回答いただけますと幸いです。
9
+ https://github.com/heroku/heroku-buildpack-chromedriver.git
10
10
 
11
+
12
+
11
- 不足情報等あばご指摘くだ
13
+ 下記エラーが表示さてpushがリジェクトれます
14
+
15
+ buildpackからchromedriverを削除すると正常にpushできます。
12
16
 
13
17
 
14
18
 
@@ -164,10 +168,6 @@
164
168
 
165
169
  ・ローカル環境にてプログラム自体は問題なく動作しています。
166
170
 
167
- ・使用言語:python-3.8.5
168
-
169
-
170
-
171
171
 
172
172
 
173
173
  ### 試したこと

1

requirements.txtの追加

2021/03/06 15:19

投稿

ojthon
ojthon

スコア0

test CHANGED
File without changes
test CHANGED
@@ -78,6 +78,60 @@
78
78
 
79
79
 
80
80
 
81
+ ### requirements.txt
82
+
83
+ beautifulsoup4==4.9.3
84
+
85
+ certifi==2020.12.5
86
+
87
+ chardet==4.0.0
88
+
89
+ click==7.1.2
90
+
91
+ flake8==3.8.4
92
+
93
+ Flask==1.1.2
94
+
95
+ future==0.18.2
96
+
97
+ gunicorn==20.0.4
98
+
99
+ heroku==0.1.4
100
+
101
+ idna==2.10
102
+
103
+ itsdangerous==1.1.0
104
+
105
+ Jinja2==2.11.3
106
+
107
+ line-bot-sdk==1.19.0
108
+
109
+ MarkupSafe==1.1.1
110
+
111
+ mccabe==0.6.1
112
+
113
+ pycodestyle==2.6.0
114
+
115
+ pyflakes==2.2.0
116
+
117
+ python-dateutil==1.5
118
+
119
+ requests==2.25.1
120
+
121
+ selenium==3.141.0
122
+
123
+ simplejson==3.17.2
124
+
125
+ soupsieve==2.2
126
+
127
+ urllib3==1.26.3
128
+
129
+ Werkzeug==1.0.1
130
+
131
+
132
+
133
+
134
+
81
135
  ### 備考
82
136
 
83
137
  ■Build Packs