質問編集履歴
7
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -212,6 +212,10 @@
|
|
212
212
|
|
213
213
|
|
214
214
|
|
215
|
+
**追記:**
|
216
|
+
|
217
|
+
|
218
|
+
|
215
219
|
```
|
216
220
|
|
217
221
|
$ git push heroku master
|
6
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -209,3 +209,65 @@
|
|
209
209
|
|
210
210
|
|
211
211
|
バージョン指定になにか問題があるのでしょうか?
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
```
|
216
|
+
|
217
|
+
$ git push heroku master
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
中略
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
Collecting psycopg2==2.5.4 (from -r /tmp/build_913e4d05229c1e72f99624d15a3471d5/requirements.txt (line 6))
|
226
|
+
|
227
|
+
remote: Downloading https://files.pythonhosted.org/packages/63/c3/802668cb3cfc2880c2a8364623e7105a0257724a2612bb66ec733aaddb8c/psycopg2-2.5.4.tar.gz (682kB)
|
228
|
+
|
229
|
+
remote: Complete output from command python setup.py egg_info:
|
230
|
+
|
231
|
+
remote: running egg_info
|
232
|
+
|
233
|
+
remote: creating pip-egg-info/psycopg2.egg-info
|
234
|
+
|
235
|
+
remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
|
236
|
+
|
237
|
+
remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
|
238
|
+
|
239
|
+
remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
|
240
|
+
|
241
|
+
remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
|
242
|
+
|
243
|
+
remote: Error: could not determine PostgreSQL version from '10.3'
|
244
|
+
|
245
|
+
remote:
|
246
|
+
|
247
|
+
remote: ----------------------------------------
|
248
|
+
|
249
|
+
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_zleh1xw/psycopg2/
|
250
|
+
|
251
|
+
remote: ! Push rejected, failed to compile Python app.
|
252
|
+
|
253
|
+
remote:
|
254
|
+
|
255
|
+
remote: ! Push failed
|
256
|
+
|
257
|
+
remote: Verifying deploy...
|
258
|
+
|
259
|
+
remote:
|
260
|
+
|
261
|
+
remote: ! Push rejected to ayblog.
|
262
|
+
|
263
|
+
remote:
|
264
|
+
|
265
|
+
To https://git.heroku.com/ayblog.git
|
266
|
+
|
267
|
+
! [remote rejected] master -> master (pre-receive hook declined)
|
268
|
+
|
269
|
+
error: failed to push some refs to 'https://git.heroku.com/ayblog.git'
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
```
|
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -204,7 +204,7 @@
|
|
204
204
|
|
205
205
|
|
206
206
|
|
207
|
-
を実行しましたが、同じエラーの状態です。
|
207
|
+
を実行しましたが、上記と同じエラーの状態です。
|
208
208
|
|
209
209
|
|
210
210
|
|
4
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -145,3 +145,67 @@
|
|
145
145
|
|
146
146
|
|
147
147
|
おわかりの方がいましたら、アドバイスをいただけますと幸いです。
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
**追記:**
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
requirements.txtに以下のとおり、psycopg2==2.7.4 を指定しました。
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
```
|
160
|
+
|
161
|
+
dj-database-url==0.5.0
|
162
|
+
|
163
|
+
Django==1.11
|
164
|
+
|
165
|
+
gunicorn==19.8.1
|
166
|
+
|
167
|
+
pytz==2018.4
|
168
|
+
|
169
|
+
whitenoise==3.3.1
|
170
|
+
|
171
|
+
psycopg2==2.7.4
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
そして、ターミナルで以下を実行します。
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
$ pip install psycopg2
|
184
|
+
|
185
|
+
Collecting psycopg2
|
186
|
+
|
187
|
+
Using cached https://files.pythonhosted.org/packages/8c/a5/0e61d6f4a140a6e06a9ba40266c4b49123d834f1f97fe9a5ae0b6e45112b/psycopg2-2.7.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
|
188
|
+
|
189
|
+
Installing collected packages: psycopg2
|
190
|
+
|
191
|
+
Successfully installed psycopg2-2.7.4
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
$git push heroku master
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
を実行しましたが、同じエラーの状態です。
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
バージョン指定になにか問題があるのでしょうか?
|
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,4 +140,8 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
+
psycopg2 のバージョンが合ってないなどの可能性はあるでしょうか?
|
144
|
+
|
145
|
+
|
146
|
+
|
143
147
|
おわかりの方がいましたら、アドバイスをいただけますと幸いです。
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,9 +124,9 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
**Error: could not determine PostgreSQL version from '10.3'
|
127
|
+
**Error: could not determine PostgreSQL version from '10.3'**
|
128
128
|
|
129
|
-
|
129
|
+
|
130
130
|
|
131
131
|
や、
|
132
132
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -120,19 +120,19 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
エラーとして
|
123
|
+
エラー文としては
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
Error: could not determine PostgreSQL version from '10.3'
|
127
|
+
**Error: could not determine PostgreSQL version from '10.3'
|
128
128
|
|
129
|
-
|
129
|
+
**
|
130
130
|
|
131
131
|
や、
|
132
132
|
|
133
133
|
|
134
134
|
|
135
|
-
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyexa91l/psycopg2/
|
135
|
+
** Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyexa91l/psycopg2/**
|
136
136
|
|
137
137
|
|
138
138
|
|