teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

7

追記

2018/05/10 06:55

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -105,6 +105,8 @@
105
105
 
106
106
  バージョン指定になにか問題があるのでしょうか?
107
107
 
108
+ **追記:**
109
+
108
110
  ```
109
111
  $ git push heroku master
110
112
 

6

追記

2018/05/10 06:55

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -103,4 +103,35 @@
103
103
 
104
104
  を実行しましたが、上記と同じエラーの状態です。
105
105
 
106
- バージョン指定になにか問題があるのでしょうか?
106
+ バージョン指定になにか問題があるのでしょうか?
107
+
108
+ ```
109
+ $ git push heroku master
110
+
111
+ 中略
112
+
113
+ Collecting psycopg2==2.5.4 (from -r /tmp/build_913e4d05229c1e72f99624d15a3471d5/requirements.txt (line 6))
114
+ remote: Downloading https://files.pythonhosted.org/packages/63/c3/802668cb3cfc2880c2a8364623e7105a0257724a2612bb66ec733aaddb8c/psycopg2-2.5.4.tar.gz (682kB)
115
+ remote: Complete output from command python setup.py egg_info:
116
+ remote: running egg_info
117
+ remote: creating pip-egg-info/psycopg2.egg-info
118
+ remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
119
+ remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
120
+ remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
121
+ remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
122
+ remote: Error: could not determine PostgreSQL version from '10.3'
123
+ remote:
124
+ remote: ----------------------------------------
125
+ remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_zleh1xw/psycopg2/
126
+ remote: ! Push rejected, failed to compile Python app.
127
+ remote:
128
+ remote: ! Push failed
129
+ remote: Verifying deploy...
130
+ remote:
131
+ remote: ! Push rejected to ayblog.
132
+ remote:
133
+ To https://git.heroku.com/ayblog.git
134
+ ! [remote rejected] master -> master (pre-receive hook declined)
135
+ error: failed to push some refs to 'https://git.heroku.com/ayblog.git'
136
+
137
+ ```

5

追記

2018/05/10 06:47

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -101,6 +101,6 @@
101
101
  $git push heroku master
102
102
  ```
103
103
 
104
- を実行しましたが、同じエラーの状態です。
104
+ を実行しましたが、上記と同じエラーの状態です。
105
105
 
106
106
  バージョン指定になにか問題があるのでしょうか?

4

追記

2018/05/09 22:59

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -71,4 +71,36 @@
71
71
 
72
72
  psycopg2 のバージョンが合ってないなどの可能性はあるでしょうか?
73
73
 
74
- おわかりの方がいましたら、アドバイスをいただけますと幸いです。
74
+ おわかりの方がいましたら、アドバイスをいただけますと幸いです。
75
+
76
+ **追記:**
77
+
78
+ requirements.txtに以下のとおり、psycopg2==2.7.4 を指定しました。
79
+
80
+ ```
81
+ dj-database-url==0.5.0
82
+ Django==1.11
83
+ gunicorn==19.8.1
84
+ pytz==2018.4
85
+ whitenoise==3.3.1
86
+ psycopg2==2.7.4
87
+ ```
88
+
89
+ そして、ターミナルで以下を実行します。
90
+
91
+ ```
92
+ $ pip install psycopg2
93
+ Collecting psycopg2
94
+ 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
95
+ Installing collected packages: psycopg2
96
+ Successfully installed psycopg2-2.7.4
97
+
98
+ ```
99
+
100
+ ```
101
+ $git push heroku master
102
+ ```
103
+
104
+ を実行しましたが、同じエラーの状態です。
105
+
106
+ バージョン指定になにか問題があるのでしょうか?

3

誤字

2018/05/09 22:58

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -69,4 +69,6 @@
69
69
 
70
70
  などがあるので、データベース関連のpip?などに問題があるのかと睨んでいます。
71
71
 
72
+ psycopg2 のバージョンが合ってないなどの可能性はあるでしょうか?
73
+
72
74
  おわかりの方がいましたら、アドバイスをいただけますと幸いです。

2

誤字

2018/05/09 11:04

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -61,8 +61,8 @@
61
61
 
62
62
  エラー文としては
63
63
 
64
- **Error: could not determine PostgreSQL version from '10.3'
64
+ **Error: could not determine PostgreSQL version from '10.3'**
65
- **
65
+
66
66
  や、
67
67
 
68
68
  ** Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyexa91l/psycopg2/**

1

誤字

2018/05/09 11:04

投稿

mbase
mbase

スコア17

title CHANGED
File without changes
body CHANGED
@@ -59,13 +59,13 @@
59
59
 
60
60
  ```
61
61
 
62
- エラーとして
62
+ エラーとして
63
63
 
64
- Error: could not determine PostgreSQL version from '10.3'
64
+ **Error: could not determine PostgreSQL version from '10.3'
65
-
65
+ **
66
66
  や、
67
67
 
68
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyexa91l/psycopg2/
68
+ ** Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyexa91l/psycopg2/**
69
69
 
70
70
  などがあるので、データベース関連のpip?などに問題があるのかと睨んでいます。
71
71