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

質問編集履歴

14

追記及び修正

2019/11/25 00:16

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -205,4 +205,5 @@
205
205
  以下はruntime.txtファイルの中身になります。
206
206
  ```
207
207
  python-3.7.3 python-3.7.5
208
- ```
208
+ ```
209
+ runtime.txtファイルの中身を、自分の環境のバージョンpython-3.7.5のみとし、再度```pip freeze > requirements.txt```とし「git commit」から「git push heroku master」としました、再度```ModuleNotFoundError: No module named 'future'```こちらのエラーが発生してしまいました。。

13

修正

2019/11/25 00:15

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -200,4 +200,9 @@
200
200
  virtualenvwrapper==4.8.4
201
201
  whitenoise==4.1.4
202
202
 
203
+ ```
204
+ 追記5
205
+ 以下はruntime.txtファイルの中身になります。
206
+ ```
207
+ python-3.7.3 python-3.7.5
203
208
  ```

12

追記

2019/11/24 19:10

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -149,4 +149,55 @@
149
149
  To https://git.heroku.com/test-app0011.git
150
150
  ! [remote rejected] master -> master (pre-receive hook declined)
151
151
  error: failed to push some refs to 'https://git.heroku.com/test-app0011.git'
152
+ ```
153
+ 追記4
154
+ 以下はrequirements.txtファイルの中身になります。
155
+ ```
156
+ ansicolors==1.1.8
157
+ cachetools==3.1.1
158
+ certifi==2019.9.11
159
+ chardet==3.0.4
160
+ cycler==0.10.0
161
+ decorator==4.4.1
162
+ dj-database-url==0.5.0
163
+ Django==2.2.7
164
+ django-heroku==0.3.1
165
+ ez-setup==0.9
166
+ FiPy==3.3
167
+ future==0.18.2
168
+ gitdb2==2.0.6
169
+ GitPython==3.0.5
170
+ gunicorn==20.0.0
171
+ idna==2.8
172
+ imageio==2.6.1
173
+ imageio-ffmpeg==0.3.0
174
+ joblib==0.14.0
175
+ kiwisolver==1.1.0
176
+ matplotlib==3.1.2
177
+ moviepy==1.0.1
178
+ music21==5.7.1
179
+ numpy==1.17.3
180
+ pbr==5.4.3
181
+ Pillow==6.2.1
182
+ proglog==0.1.9
183
+ psycopg2==2.8.4
184
+ pyparsing==2.4.5
185
+ python-dateutil==2.8.1
186
+ pytz==2019.3
187
+ reppy==0.4.14
188
+ requests==2.22.0
189
+ scikit-learn==0.21.3
190
+ scipy==1.3.1
191
+ six==1.13.0
192
+ smmap2==2.0.5
193
+ sqlparse==0.3.0
194
+ stevedore==1.31.0
195
+ tqdm==4.38.0
196
+ unroll==0.1.0
197
+ urllib3==1.25.7
198
+ virtualenv==16.7.7
199
+ virtualenv-clone==0.5.3
200
+ virtualenvwrapper==4.8.4
201
+ whitenoise==4.1.4
202
+
152
203
  ```

11

修正

2019/11/24 11:49

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -122,4 +122,31 @@
122
122
  To https://git.heroku.com/test-app0011.git
123
123
  ! [remote rejected] master -> master (pre-receive hook declined)
124
124
  error: failed to push some refs to 'https://git.heroku.com/test-app0011.git'
125
+ ```
126
+
127
+ **追記3**
128
+ 「git add. git commit」を再度行いましたら、エラー内容が変わりました。
129
+ ```
130
+ Enumerating objects: 1023, done.
131
+ Counting objects: 100% (1023/1023), done.
132
+ Delta compression using up to 8 threads
133
+ Compressing objects: 100% (1004/1004), done.
134
+ Writing objects: 100% (1023/1023), 3.24 MiB | 107.00 KiB/s, done.
135
+ Total 1023 (delta 93), reused 0 (delta 0)
136
+ remote: Compressing source files... done.
137
+ remote: Building source:
138
+ remote:
139
+ remote: -----> Python app detected
140
+ remote: ! Requested runtime (python-3.7.3 python-3.7.5) is not available for this stack (heroku-18).
141
+ remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
142
+ remote: ! Push rejected, failed to compile Python app.
143
+ remote:
144
+ remote: ! Push failed
145
+ remote: Verifying deploy...
146
+ remote:
147
+ remote: ! Push rejected to test-app0011.
148
+ remote:
149
+ To https://git.heroku.com/test-app0011.git
150
+ ! [remote rejected] master -> master (pre-receive hook declined)
151
+ error: failed to push some refs to 'https://git.heroku.com/test-app0011.git'
125
152
  ```

10

追記及び修正

2019/11/24 11:38

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -61,4 +61,65 @@
61
61
 
62
62
  ```
63
63
  Requirement already satisfied: future in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.18.2)
64
+ ```
65
+ **追記2**
66
+ 以下は```git push heroku master````時の全ログになります。
67
+ ```
68
+ Enumerating objects: 1020, done.
69
+ Counting objects: 100% (1020/1020), done.
70
+ Delta compression using up to 8 threads
71
+ Compressing objects: 100% (1002/1002), done.
72
+ Writing objects: 100% (1020/1020), 3.24 MiB | 221.00 KiB/s, done.
73
+ Total 1020 (delta 92), reused 0 (delta 0)
74
+ remote: Compressing source files... done.
75
+ remote: Building source:
76
+ remote:
77
+ remote: -----> Python app detected
78
+ remote: -----> Installing python-3.7.5
79
+ remote: -----> Installing pip
80
+ remote: -----> Installing SQLite3
81
+ remote: -----> Installing requirements with pip
82
+ remote: Collecting ansicolors==1.1.8 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 1))
83
+ remote: Downloading https://files.pythonhosted.org/packages/53/18/a56e2fe47b259bb52201093a3a9d4a32014f9d85071ad07e9d60600890ca/ansicolors-1.1.8-py2.py3-none-any.whl
84
+ remote: Collecting cachetools==3.1.1 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 2))
85
+ remote: Downloading https://files.pythonhosted.org/packages/2f/a6/30b0a0bef12283e83e58c1d6e7b5aabc7acfc4110df81a4471655d33e704/cachetools-3.1.1-py2.py3-none-any.whl
86
+ remote: Collecting certifi==2019.9.11 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 3))
87
+ remote: Downloading https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl (154kB)
88
+ remote: Collecting chardet==3.0.4 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 4))
89
+ remote: Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
90
+ remote: Collecting cycler==0.10.0 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 5))
91
+ remote: Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
92
+ remote: Collecting decorator==4.4.1 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 6))
93
+ remote: Downloading https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl
94
+ remote: Collecting dj-database-url==0.5.0 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 7))
95
+ remote: Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
96
+ remote: Collecting Django==2.2.7 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 8))
97
+ remote: Downloading https://files.pythonhosted.org/packages/a0/36/463632a2e9161a7e713488d719a280e8cb0c7e3a66ed32a32e801891caae/Django-2.2.7-py3-none-any.whl (7.5MB)
98
+ remote: Collecting django-heroku==0.3.1 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 9))
99
+ remote: Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
100
+ remote: Collecting ez-setup==0.9 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 10))
101
+ remote: Downloading https://files.pythonhosted.org/packages/ba/2c/743df41bd6b3298706dfe91b0c7ecdc47f2dc1a3104abeb6e9aa4a45fa5d/ez_setup-0.9.tar.gz
102
+ remote: Collecting FiPy==3.3 (from -r /tmp/build_c8e06546abf97c1bc21c0e780e00c581/requirements.txt (line 11))
103
+ remote: Downloading https://files.pythonhosted.org/packages/d5/44/71e621c7b06e3ef4f19b8e064d729b6f7378ae3c9a1ecaf66f0ad16e0cea/FiPy-3.3.tar.gz (714kB)
104
+ remote: Complete output from command python setup.py egg_info:
105
+ remote: Traceback (most recent call last):
106
+ remote: File "<string>", line 1, in <module>
107
+ remote: File "/tmp/pip-build-8fey8q1r/FiPy/setup.py", line 15, in <module>
108
+ remote: from _setup.build_docs import build_docs
109
+ remote: File "/tmp/pip-build-8fey8q1r/FiPy/_setup/build_docs.py", line 4, in <module>
110
+ remote: from future.utils import text_to_native_str
111
+ remote: ModuleNotFoundError: No module named 'future'
112
+ remote:
113
+ remote: ----------------------------------------
114
+ remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8fey8q1r/FiPy/
115
+ remote: ! Push rejected, failed to compile Python app.
116
+ remote:
117
+ remote: ! Push failed
118
+ remote: Verifying deploy...
119
+ remote:
120
+ remote: ! Push rejected to test-app0011.
121
+ remote:
122
+ To https://git.heroku.com/test-app0011.git
123
+ ! [remote rejected] master -> master (pre-receive hook declined)
124
+ error: failed to push some refs to 'https://git.heroku.com/test-app0011.git'
64
125
  ```

9

修正

2019/11/24 09:05

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -60,5 +60,5 @@
60
60
  おそらくこちらのエラーなのですが、futureモジュールは入っているみたいです。```pip3 install future```の結果は、以下の通りです。
61
61
 
62
62
  ```
63
- Requirement already satisfied: future in /Users/shinya/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.18.2)
63
+ Requirement already satisfied: future in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.18.2)
64
64
  ```

8

修正

2019/11/24 05:28

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -56,4 +56,9 @@
56
56
  remote: ----------------------------------------
57
57
  remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7nson9r1/FiPy/
58
58
  remote: ! Push rejected, failed to compile Python app.
59
+ ```
60
+ おそらくこちらのエラーなのですが、futureモジュールは入っているみたいです。```pip3 install future```の結果は、以下の通りです。
61
+
62
+ ```
63
+ Requirement already satisfied: future in /Users/shinya/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.18.2)
59
64
  ```

7

修正及び追記

2019/11/24 05:28

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -38,9 +38,11 @@
38
38
  ※OSはmacOSMojaveを使用しております。
39
39
 
40
40
  **追記です**
41
- ```pip freeze > requirements.txt```こちらのコマンドは実行したと思っていたのですが、再度ご回答でご助言頂いた為、行いましたら、エラー内容が変わりました。
41
+ 以下のコマンドは実行したと思っていたのですが、再度ご回答でご助言頂いた為、行いましたら、エラー内容が変わりました。
42
+ ```
43
+ pip freeze > requirements.txt
44
+ ```
42
45
 
43
-
44
46
  ```
45
47
  Complete output from command python setup.py egg_info:
46
48
  remote: Traceback (most recent call last):

6

修正

2019/11/24 05:13

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -39,6 +39,8 @@
39
39
 
40
40
  **追記です**
41
41
  ```pip freeze > requirements.txt```こちらのコマンドは実行したと思っていたのですが、再度ご回答でご助言頂いた為、行いましたら、エラー内容が変わりました。
42
+
43
+
42
44
  ```
43
45
  Complete output from command python setup.py egg_info:
44
46
  remote: Traceback (most recent call last):

5

追記

2019/11/24 05:11

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -35,4 +35,21 @@
35
35
 
36
36
  どなたか解決の為、ご助言頂けましたら幸いです。。
37
37
 
38
- ※OSはmacOSMojaveを使用しております。
38
+ ※OSはmacOSMojaveを使用しております。
39
+
40
+ **追記です**
41
+ ```pip freeze > requirements.txt```こちらのコマンドは実行したと思っていたのですが、再度ご回答でご助言頂いた為、行いましたら、エラー内容が変わりました。
42
+ ```
43
+ Complete output from command python setup.py egg_info:
44
+ remote: Traceback (most recent call last):
45
+ remote: File "<string>", line 1, in <module>
46
+ remote: File "/tmp/pip-build-7nson9r1/FiPy/setup.py", line 15, in <module>
47
+ remote: from _setup.build_docs import build_docs
48
+ remote: File "/tmp/pip-build-7nson9r1/FiPy/_setup/build_docs.py", line 4, in <module>
49
+ remote: from future.utils import text_to_native_str
50
+ remote: ModuleNotFoundError: No module named 'future'
51
+ remote:
52
+ remote: ----------------------------------------
53
+ remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7nson9r1/FiPy/
54
+ remote: ! Push rejected, failed to compile Python app.
55
+ ```

4

追記及び修正

2019/11/24 05:10

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -26,7 +26,13 @@
26
26
  Requirement already satisfied: ez_setup in in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.9)
27
27
  ```
28
28
  と表示されたことから、既にインストール済みかと思われます。
29
+ 他、試したこととしましては、[GitHub](https://github.com/gitpython-developers/GitPython/issues/643)のページを参考に``` pip install setuptools```を実行いたしました。結果は以下となります。
30
+ ```
31
+ Requirement already satisfied: setuptools in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (42.0.0)
32
+ ```
33
+
29
- インストールされているにも関わらずこちらのエラーが発生してしまう原因がわからないです...
34
+ インストールされているにも関わらず何故エラーが発生してしまうか分からないといった状況です...
35
+
30
36
  どなたか解決の為、ご助言頂けましたら幸いです。。
31
37
 
32
38
  ※OSはmacOSMojaveを使用しております。

3

修正

2019/11/24 03:41

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -27,6 +27,6 @@
27
27
  ```
28
28
  と表示されたことから、既にインストール済みかと思われます。
29
29
  インストールされているにも関わらずこちらのエラーが発生してしまう原因がわからないです...
30
- どなたか解決の為、ご助言頂ければ幸いです。。
30
+ どなたか解決の為、ご助言頂けましたら幸いです。。
31
31
 
32
32
  ※OSはmacOSMojaveを使用しております。

2

修正

2019/11/24 03:31

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -26,6 +26,7 @@
26
26
  Requirement already satisfied: ez_setup in in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.9)
27
27
  ```
28
28
  と表示されたことから、既にインストール済みかと思われます。
29
+ インストールされているにも関わらずこちらのエラーが発生してしまう原因がわからないです...
29
- エラーの原因がわからない為、どなたかご助言いただければ幸いです。。
30
+ どなたか解決の為、ご助言ければ幸いです。。
30
31
 
31
32
  ※OSはmacOSMojaveを使用しております。

1

追記

2019/11/24 03:31

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -26,4 +26,6 @@
26
26
  Requirement already satisfied: ez_setup in in /Users/[username]/.pyenv/versions/3.7.5/lib/python3.7/site-packages (0.9)
27
27
  ```
28
28
  と表示されたことから、既にインストール済みかと思われます。
29
- エラーの原因がわからない為、どなたかご助言いただければ幸いです。。
29
+ エラーの原因がわからない為、どなたかご助言いただければ幸いです。。
30
+
31
+ ※OSはmacOSMojaveを使用しております。