質問編集履歴

6

問題点の修正。

2020/02/02 23:32

投稿

totto1228
totto1228

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,8 +6,6 @@
6
6
 
7
7
  コード提供者はLinux環境で実行しており、問題なく動くそうです。
8
8
 
9
- 読み込むデータサイズが大きいので(500MB)、メモリ不足になっている可能性はあるのでしょうか。
10
-
11
9
 
12
10
 
13
11
  ### 実行内容

5

説明の追加

2020/02/02 23:32

投稿

totto1228
totto1228

スコア4

test CHANGED
File without changes
test CHANGED
@@ -1,12 +1,16 @@
1
- ### 前提・実現したいこと
1
+ ### 問題点
2
-
3
-
4
-
2
+
3
+
4
+
5
- Githubで公開されているpythonコード(https://github.com/d-murashkin/lead_detection)を使用してデータの処理をしたいのですが、エラーが解決できません。普段はpythonを使っておらず対処方法がわからないので、教えていただけると幸いです。minicondaで仮想環境を構築し、その中でデータ処理を行いたいと考えています。
5
+ Githubで公開されているpythonコード(https://github.com/d-murashkin/lead_detection)を使用してデータの処理をしたいのですが、エラーが解決できません。普段はpythonを使っておらず対処方法がわからないので、教えていただけると幸いです。
6
+
6
-
7
+ コード提供者はLinux環境で実行しており、問題なく動くそうです。
8
+
7
-
9
+ 読み込むデータサイズが大きいので(500MB)、メモリ不足になっている可能性はあるのでしょうか。
8
-
10
+
11
+
12
+
9
- ### 試したこと
13
+ ### 実行内容
10
14
 
11
15
  ```ここに言語を入力
12
16
 
@@ -40,7 +44,7 @@
40
44
 
41
45
 
42
46
 
43
- ### 発生している問題・エラーメッセージ
47
+ ### エラーメッセージ
44
48
 
45
49
 
46
50
 
@@ -74,7 +78,7 @@
74
78
 
75
79
 
76
80
 
77
- ### 補足情報(FW/ツールのバージョンなど)
81
+ ### 実行環境
78
82
 
79
83
 
80
84
 

4

書式の改善

2020/02/01 01:46

投稿

totto1228
totto1228

スコア4

test CHANGED
File without changes
test CHANGED
@@ -78,13 +78,63 @@
78
78
 
79
79
 
80
80
 
81
+ ```
82
+
81
- ```ここに言語を入力
83
+ conda info
84
+
85
+ active environment : lead_detection
86
+
87
+ active env location : /Users/main/opt/miniconda2/envs/lead_detection
88
+
89
+ shell level : 1
90
+
91
+ user config file : /Users/main/.condarc
92
+
93
+ populated config files :
94
+
95
+ conda version : 4.7.12
96
+
97
+ conda-build version : not installed
98
+
99
+ python version : 2.7.17.final.0
100
+
101
+ virtual packages :
102
+
103
+ base environment : /Users/main/opt/miniconda2 (writable)
104
+
105
+ channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
106
+
107
+ https://repo.anaconda.com/pkgs/main/noarch
108
+
109
+ https://repo.anaconda.com/pkgs/r/osx-64
110
+
111
+ https://repo.anaconda.com/pkgs/r/noarch
112
+
113
+ package cache : /Users/main/opt/miniconda2/pkgs
114
+
115
+ /Users/main/.conda/pkgs
116
+
117
+ envs directories : /Users/main/opt/miniconda2/envs
118
+
119
+ /Users/main/.conda/envs
120
+
121
+ platform : osx-64
122
+
123
+ user-agent : conda/4.7.12 requests/2.22.0 CPython/2.7.17 Darwin/19.0.0 OSX/10.15
124
+
125
+ UID:GID : 501:20
126
+
127
+ netrc file : /Users/main/.netrc
128
+
129
+ offline mode : False
130
+
131
+ ```
132
+
133
+ ```
82
134
 
83
135
  conda list
84
136
 
85
- ```
86
-
87
- > packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
137
+ packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
88
138
 
89
139
  Name Version Build Channel
90
140
 
@@ -296,56 +346,4 @@
296
346
 
297
347
  zstd 1.3.7 h5bba6e5_0
298
348
 
299
-
300
-
301
- ```
349
+ ```
302
-
303
- conda info
304
-
305
- ```
306
-
307
- > active environment : lead_detection
308
-
309
- active env location : /Users/main/opt/miniconda2/envs/lead_detection
310
-
311
- shell level : 1
312
-
313
- user config file : /Users/main/.condarc
314
-
315
- populated config files :
316
-
317
- conda version : 4.7.12
318
-
319
- conda-build version : not installed
320
-
321
- python version : 2.7.17.final.0
322
-
323
- virtual packages :
324
-
325
- base environment : /Users/main/opt/miniconda2 (writable)
326
-
327
- channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
328
-
329
- https://repo.anaconda.com/pkgs/main/noarch
330
-
331
- https://repo.anaconda.com/pkgs/r/osx-64
332
-
333
- https://repo.anaconda.com/pkgs/r/noarch
334
-
335
- package cache : /Users/main/opt/miniconda2/pkgs
336
-
337
- /Users/main/.conda/pkgs
338
-
339
- envs directories : /Users/main/opt/miniconda2/envs
340
-
341
- /Users/main/.conda/envs
342
-
343
- platform : osx-64
344
-
345
- user-agent : conda/4.7.12 requests/2.22.0 CPython/2.7.17 Darwin/19.0.0 OSX/10.15
346
-
347
- UID:GID : 501:20
348
-
349
- netrc file : /Users/main/.netrc
350
-
351
- offline mode : False

3

説明文の追加。

2020/02/01 01:38

投稿

totto1228
totto1228

スコア4

test CHANGED
@@ -1 +1 @@
1
- Python2.7で発生するKeyErrorを解決した
1
+ python2のpickling error?で困ってます
test CHANGED
File without changes

2

書式の改善。

2020/01/31 23:39

投稿

totto1228
totto1228

スコア4

test CHANGED
File without changes
test CHANGED
@@ -8,31 +8,35 @@
8
8
 
9
9
  ### 試したこと
10
10
 
11
-
11
+ ```ここに言語を入力
12
-
12
+
13
- >>conda create --name lead_detection
13
+ conda create --name lead_detection
14
-
14
+
15
- >>conda activate lead_detection
15
+ conda activate lead_detection
16
-
16
+
17
- >>conda install -c conda-forge numpy
17
+ conda install -c conda-forge numpy
18
-
18
+
19
- >>conda install -c conda-forge python=2.7.17
19
+ conda install -c conda-forge python=2.7.17
20
-
20
+
21
- >>conda install -c conda-forge gdal
21
+ conda install -c conda-forge gdal
22
-
22
+
23
- >>conda install -c conda-forge joblib
23
+ conda install -c conda-forge joblib
24
-
24
+
25
- >>conda install -c conda-forge opencv
25
+ conda install -c conda-forge opencv
26
-
26
+
27
- >>conda install -c conda-forge matplotlib
27
+ conda install -c conda-forge matplotlib
28
-
28
+
29
- >>conda install -c conda-forge weave
29
+ conda install -c conda-forge weave
30
-
30
+
31
- >>conda install -c conda-forge pillow
31
+ conda install -c conda-forge pillow
32
-
32
+
33
- >>conda install -c conda-forge scipy
33
+ conda install -c conda-forge scipy
34
-
34
+
35
- >>python process_single_product.py -s /Users/main/Analysis/Lead/src/lead_detection-master/ -d /Users/main/ S1A_EW_GRDM_1SDH_20200127T172331_20200127T172441_030989_038F1F_FE78.zip
35
+ python process_single_product.py -s /Users/main/Analysis/Lead/src/lead_detection-master/ -d /Users/main/ S1A_EW_GRDM_1SDH_20200127T172331_20200127T172441_030989_038F1F_FE78.zip
36
+
37
+
38
+
39
+ ```
36
40
 
37
41
 
38
42
 
@@ -40,7 +44,7 @@
40
44
 
41
45
 
42
46
 
43
- Traceback (most recent call last):
47
+ > Traceback (most recent call last):
44
48
 
45
49
  File "process_single_product.py", line 48, in <module>
46
50
 
@@ -74,9 +78,13 @@
74
78
 
75
79
 
76
80
 
81
+ ```ここに言語を入力
82
+
77
- >>conda list
83
+ conda list
84
+
78
-
85
+ ```
86
+
79
- packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
87
+ > packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
80
88
 
81
89
  Name Version Build Channel
82
90
 
@@ -287,3 +295,57 @@
287
295
  zlib 1.2.11 h1de35cc_3
288
296
 
289
297
  zstd 1.3.7 h5bba6e5_0
298
+
299
+
300
+
301
+ ```
302
+
303
+ conda info
304
+
305
+ ```
306
+
307
+ > active environment : lead_detection
308
+
309
+ active env location : /Users/main/opt/miniconda2/envs/lead_detection
310
+
311
+ shell level : 1
312
+
313
+ user config file : /Users/main/.condarc
314
+
315
+ populated config files :
316
+
317
+ conda version : 4.7.12
318
+
319
+ conda-build version : not installed
320
+
321
+ python version : 2.7.17.final.0
322
+
323
+ virtual packages :
324
+
325
+ base environment : /Users/main/opt/miniconda2 (writable)
326
+
327
+ channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
328
+
329
+ https://repo.anaconda.com/pkgs/main/noarch
330
+
331
+ https://repo.anaconda.com/pkgs/r/osx-64
332
+
333
+ https://repo.anaconda.com/pkgs/r/noarch
334
+
335
+ package cache : /Users/main/opt/miniconda2/pkgs
336
+
337
+ /Users/main/.conda/pkgs
338
+
339
+ envs directories : /Users/main/opt/miniconda2/envs
340
+
341
+ /Users/main/.conda/envs
342
+
343
+ platform : osx-64
344
+
345
+ user-agent : conda/4.7.12 requests/2.22.0 CPython/2.7.17 Darwin/19.0.0 OSX/10.15
346
+
347
+ UID:GID : 501:20
348
+
349
+ netrc file : /Users/main/.netrc
350
+
351
+ offline mode : False

1

前提・実現したいことの修正、試したことの追加。

2020/01/31 21:48

投稿

totto1228
totto1228

スコア4

test CHANGED
@@ -1 +1 @@
1
- Python2.7KeyErrorにつ
1
+ Python2.7で発生するKeyErrorを解決した
test CHANGED
@@ -2,7 +2,37 @@
2
2
 
3
3
 
4
4
 
5
- Githubで公開されているpythonコード(https://github.com/d-murashkin/lead_detection)を使用してデータの処理をしたいが、エラーが発生する。普段はpythonを使ってないので、どう対すれば良かわからない。
5
+ Githubで公開されているpythonコード(https://github.com/d-murashkin/lead_detection)を使用してデータの処理をしたいのですが、エラーが解決できません。普段はpythonを使っておらず対処方法がわからないので、教えていただけると幸いです。minicondaで仮想環境を構築し、その中でデータ理を行と考えています
6
+
7
+
8
+
9
+ ### 試したこと
10
+
11
+
12
+
13
+ >>conda create --name lead_detection
14
+
15
+ >>conda activate lead_detection
16
+
17
+ >>conda install -c conda-forge numpy
18
+
19
+ >>conda install -c conda-forge python=2.7.17
20
+
21
+ >>conda install -c conda-forge gdal
22
+
23
+ >>conda install -c conda-forge joblib
24
+
25
+ >>conda install -c conda-forge opencv
26
+
27
+ >>conda install -c conda-forge matplotlib
28
+
29
+ >>conda install -c conda-forge weave
30
+
31
+ >>conda install -c conda-forge pillow
32
+
33
+ >>conda install -c conda-forge scipy
34
+
35
+ >>python process_single_product.py -s /Users/main/Analysis/Lead/src/lead_detection-master/ -d /Users/main/ S1A_EW_GRDM_1SDH_20200127T172331_20200127T172441_030989_038F1F_FE78.zip
6
36
 
7
37
 
8
38
 
@@ -44,124 +74,60 @@
44
74
 
45
75
 
46
76
 
47
- conda info
48
-
49
-
50
-
51
- active environment : lead_detection
52
-
53
- active env location : /Users/main/opt/miniconda2/envs/lead_detection
54
-
55
- shell level : 1
56
-
57
- user config file : /Users/main/.condarc
58
-
59
- populated config files : /Users/main/.condarc
60
-
61
- conda version : 4.7.12
62
-
63
- conda-build version : not installed
64
-
65
- python version : 2.7.17.final.0
66
-
67
- virtual packages :
68
-
69
- base environment : /Users/main/opt/miniconda2 (writable)
70
-
71
- channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
72
-
73
- https://repo.anaconda.com/pkgs/main/noarch
74
-
75
- https://repo.anaconda.com/pkgs/r/osx-64
76
-
77
- https://repo.anaconda.com/pkgs/r/noarch
78
-
79
- https://conda.anaconda.org/conda-forge/osx-64
80
-
81
- https://conda.anaconda.org/conda-forge/noarch
82
-
83
- package cache : /Users/main/opt/miniconda2/pkgs
84
-
85
- /Users/main/.conda/pkgs
86
-
87
- envs directories : /Users/main/opt/miniconda2/envs
88
-
89
- /Users/main/.conda/envs
90
-
91
- platform : osx-64
92
-
93
- user-agent : conda/4.7.12 requests/2.22.0 CPython/2.7.17 Darwin/19.0.0 OSX/10.15
94
-
95
- UID:GID : 501:20
96
-
97
- netrc file : /Users/main/.netrc
98
-
99
- offline mode : False
100
-
101
-
102
-
103
-
104
-
105
- conda list
77
+ >>conda list
106
-
78
+
107
- # packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
79
+ packages in environment at /Users/main/opt/miniconda2/envs/lead_detection:
108
-
109
- #
80
+
110
-
111
- # Name Version Build Channel
81
+ Name Version Build Channel
112
-
113
- attrs 19.3.0 py_0
82
+
114
-
115
- backports 1.0 py_2
83
+ backports 1.0 py_2 conda-forge
116
-
84
+
117
- backports.functools_lru_cache 1.6.1 py_0
85
+ backports.functools_lru_cache 1.6.1 py_0 conda-forge
118
-
119
- backports.shutil_get_terminal_size 1.0.0 py27_2
86
+
120
-
121
- backports_abc 0.5 py27h6972548_0
87
+ backports_abc 0.5 py_1 conda-forge
122
88
 
123
89
  blas 1.0 mkl
124
90
 
125
91
  bzip2 1.0.8 h1de35cc_0
126
92
 
127
- ca-certificates 2020.1.1 0
93
+ ca-certificates 2019.11.28 hecc5488_0 conda-forge
128
94
 
129
95
  cairo 1.14.12 hc4e6be7_4
130
96
 
97
+ cctools 895 1
98
+
131
- certifi 2019.11.28 py27_0
99
+ certifi 2019.11.28 py27_0 conda-forge
132
100
 
133
101
  cfitsio 3.470 hb33e7b4_2
134
102
 
103
+ clang 4.0.1 1
104
+
135
- click 7.0 py_0 conda-forge
105
+ clang_osx-64 4.0.1 h1ce6c1d_17 conda-forge
106
+
136
-
107
+ clangxx 4.0.1 1
108
+
137
- click-plugins 1.1.1 py_0 conda-forge
109
+ clangxx_osx-64 4.0.1 h22b1bf0_17 conda-forge
138
-
110
+
139
- cligj 0.5.0 py_0 conda-forge
111
+ compiler-rt 4.0.1 hcfea43d_1
140
112
 
141
113
  curl 7.67.0 ha441bb4_0
142
114
 
143
- cycler 0.10.0 pypi_0 pypi
115
+ cycler 0.10.0 py_2 conda-forge
144
-
145
- enum34 1.1.6 py27_1002 conda-forge
146
116
 
147
117
  expat 2.2.6 h0a44026_0
148
118
 
149
- fiona 1.8.11 py27heeaa653_0
150
-
151
119
  fontconfig 2.13.0 h5d5b041_1
152
120
 
153
121
  freetype 2.9.1 hb4e5f40_0
154
122
 
155
123
  freexl 1.0.5 h1de35cc_0
156
124
 
157
- functools32 3.2.3.2 py27_1
125
+ functools32 3.2.3.2 py_3 conda-forge
158
-
126
+
159
- futures 3.3.0 py27_0
127
+ futures 3.3.0 py27_0 conda-forge
160
128
 
161
129
  gdal 3.0.2 py27hbe65578_0
162
130
 
163
- geopandas 0.6.2 py_0 conda-forge
164
-
165
131
  geos 3.8.0 h0a44026_0
166
132
 
167
133
  geotiff 1.5.1 h0b0f252_0
@@ -180,7 +146,9 @@
180
146
 
181
147
  intel-openmp 2019.4 233
182
148
 
149
+ jasper 1.900.1 4 conda-forge
150
+
183
- joblib 0.14.1 py_0
151
+ joblib 0.14.1 py_0 conda-forge
184
152
 
185
153
  jpeg 9b he5867d9_2
186
154
 
@@ -188,12 +156,18 @@
188
156
 
189
157
  kealib 1.4.7 hf5ed860_6
190
158
 
191
- kiwisolver 1.1.0 py27h0a44026_0
159
+ kiwisolver 1.1.0 py27h770b8ee_0 conda-forge
192
160
 
193
161
  krb5 1.16.4 hddcf347_0
194
162
 
163
+ ld64 274.2 1
164
+
165
+ libblas 3.8.0 14_mkl conda-forge
166
+
195
167
  libboost 1.67.0 hebc422b_4
196
168
 
169
+ libcblas 3.8.0 14_mkl conda-forge
170
+
197
171
  libcurl 7.67.0 h051b688_0
198
172
 
199
173
  libcxx 4.0.1 hcfea43d_1
@@ -214,16 +188,14 @@
214
188
 
215
189
  libkml 1.3.0 hbe12b63_4
216
190
 
191
+ liblapack 3.8.0 14_mkl conda-forge
192
+
217
193
  libnetcdf 4.6.1 hd5207e6_2
218
194
 
219
195
  libpng 1.6.37 ha441bb4_0
220
196
 
221
197
  libpq 11.2 h051b688_0
222
198
 
223
- libsodium 1.0.16 h3efe00b_0
224
-
225
- libspatialindex 1.8.5 h6de7cb9_4 conda-forge
226
-
227
199
  libspatialite 4.3.0a h5142b36_0
228
200
 
229
201
  libssh2 1.8.2 ha12b0ac_0
@@ -232,9 +204,13 @@
232
204
 
233
205
  libxml2 2.9.9 hf6e021a_1
234
206
 
207
+ llvm 4.0.1 1
208
+
209
+ llvm-lto-tapi 4.0.1 1
210
+
235
211
  lz4-c 1.8.1.2 h1de35cc_0
236
212
 
237
- matplotlib 2.2.4 pypi_0 pypi
213
+ matplotlib 2.2.3 py27h54f8f79_0
238
214
 
239
215
  mkl 2019.4 233
240
216
 
@@ -242,29 +218,21 @@
242
218
 
243
219
  mkl_fft 1.0.15 py27h5e564d8_0
244
220
 
245
- mkl_random 1.1.0 py27ha771720_0
246
-
247
- munch 2.5.0 py_0 conda-forge
248
-
249
221
  ncurses 6.1 h0a44026_1
250
222
 
251
- numpy 1.16.5 py27hacdab7b_0
223
+ numpy 1.11.3 py27h8a80b8c_4
252
-
253
- numpy-base 1.16.5 py27h6575580_0
224
+
254
-
255
- olefile 0.46 py27_0
225
+ olefile 0.46 py_0 conda-forge
256
-
226
+
257
- opencv-python 4.1.2.30 pypi_0 pypi
227
+ opencv 2.4.12 np111py27_1 conda-forge
258
228
 
259
229
  openjpeg 2.3.0 hb95cd4c_1
260
230
 
261
- openssl 1.1.1d h1de35cc_3
262
-
263
- pandas 0.24.2 py27h86efe34_0 conda-forge
231
+ openssl 1.1.1d h0b31af3_0 conda-forge
264
232
 
265
233
  pcre 8.43 h0a44026_0
266
234
 
267
- pillow 6.2.2 pypi_0 pypi
235
+ pillow 6.2.0 py27hb68e598_0
268
236
 
269
237
  pip 19.2.3 py27_0
270
238
 
@@ -278,35 +246,27 @@
278
246
 
279
247
  proj 6.2.1 hfd5b9e3_0
280
248
 
281
- pyparsing 2.4.6 py_0
282
-
283
- pyproj 1.9.4 py27_0 conda-forge
249
+ pyparsing 2.4.6 py_0 conda-forge
284
250
 
285
251
  python 2.7.17 h97142e2_0
286
252
 
287
- python-dateutil 2.8.1 py_0
253
+ python-dateutil 2.8.1 py_0 conda-forge
288
-
254
+
289
- pytz 2019.3 py_0
255
+ pytz 2019.3 py_0 conda-forge
290
256
 
291
257
  readline 7.0 h1de35cc_5
292
258
 
293
- rtree 0.8.3 py27_0
294
-
295
- scikit-learn 0.20.3 py27h27c97d8_0
296
-
297
- scipy 1.2.2 pypi_0 pypi
259
+ scipy 1.2.1 py27hbd7caa9_1 conda-forge
298
260
 
299
261
  setuptools 41.4.0 py27_0
300
262
 
301
- shapely 1.6.4 py27h6e5b138_0
302
-
303
- singledispatch 3.4.0.3 py27he22c18d_0
263
+ singledispatch 3.4.0.3 py27_1000 conda-forge
304
264
 
305
265
  six 1.12.0 py27_0
306
266
 
307
267
  sqlite 3.30.1 ha441bb4_0
308
268
 
309
- subprocess32 3.5.4 py27h1de35cc_0
269
+ subprocess32 3.5.4 py27h0b31af3_0 conda-forge
310
270
 
311
271
  tbb 2018.0.5 h04f5b5a_0
312
272
 
@@ -314,26 +274,16 @@
314
274
 
315
275
  tk 8.6.8 ha441bb4_0
316
276
 
317
- tornado 5.1.1 py27h1de35cc_0
277
+ tornado 5.1.1 py27h1de35cc_1000 conda-forge
318
-
319
- wcwidth 0.1.7 py27_0
278
+
320
-
321
- weave 0.17.0 pypi_0 pypi
279
+ weave 0.17.0 py27haf112f3_2 conda-forge
322
280
 
323
281
  wheel 0.33.6 py27_0
324
282
 
325
- x264 1!152.20180806 h1de35cc_0
326
-
327
283
  xerces-c 3.2.2 h44e365a_0
328
284
 
329
- xorg-libxau 1.0.9 h1de35cc_0 conda-forge
330
-
331
- xorg-libxdmcp 1.1.3 h01d97ff_0 conda-forge
332
-
333
285
  xz 5.2.4 h1de35cc_4
334
286
 
335
- zeromq 4.3.1 h0a44026_3
336
-
337
287
  zlib 1.2.11 h1de35cc_3
338
288
 
339
289
  zstd 1.3.7 h5bba6e5_0