質問編集履歴

3

改善しました

2021/07/10 18:33

投稿

satoshi_1
satoshi_1

スコア6

test CHANGED
@@ -1 +1 @@
1
- jupyter lab buildができない
1
+ @lckr/jupyterlab_variableinspector のインストール
test CHANGED
@@ -4,9 +4,7 @@
4
4
 
5
5
  jupyter lab 3.0.16
6
6
 
7
- python 3.9.5
8
-
9
- pyenv 2.0.2
7
+ conda version : 4.10.3
10
8
 
11
9
  node 14.17.3
12
10
 
@@ -18,161 +16,45 @@
18
16
 
19
17
  jupyter labを新しく使用したいと考えjupyter notebookから移行しようとしている者です。
20
18
 
21
-
22
-
23
- ```
24
-
25
- pip install jupyterlab
26
-
27
- ```
28
-
29
-
30
-
31
- にてjupyterlabをインストールインストールしました。
32
-
33
- 通常の機能であれば問題なく使用できます。
34
-
35
- 拡張機能の追加を行いたく、extentionのインストールまでは問題なく進みました。
36
-
37
- その後、
38
-
39
-
40
-
41
- --------
42
-
43
- Build Recommended
44
-
45
- JupyterLab build is suggested:
46
-
47
- jupyterlab-drawio needs to be included in build
48
-
49
- @lckr/jupyterlab_variableinspector needs to be included in build
50
-
51
-
52
-
53
- -------
54
-
55
-
56
-
57
- といったメッセージが出ました。
58
-
59
- bulidのボタンがあったので実行しましたが、
60
-
61
-
62
-
63
- -----
64
-
65
- Build failed with 500, please run 'jupyter lab build' on the server for full output
66
-
67
-
68
-
69
- ----
70
-
71
- と言って弾かれます。
72
-
73
- 言われた通りにターミナルにて
74
-
75
- ```
76
-
77
- jupyter lab bulid
78
-
79
- ```
80
-
81
- と実行しますが
82
-
83
-
84
-
85
- ----
86
-
87
- matsusesatoshi@matsusesatoshinoMacBook-puro ~ % jupyter lab build
88
-
89
- [LabBuildApp] JupyterLab 3.0.16
90
-
91
- [LabBuildApp] Building in /Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab
92
-
93
- [LabBuildApp] Building jupyterlab assets (production, minimized)
94
-
95
- Build failed.
96
-
97
- Troubleshooting: If the build failed due to an out-of-memory error, you
98
-
99
- may be able to fix it by disabling the `dev_build` and/or `minimize` options.
100
-
101
-
102
-
103
- If you are building via the `jupyter lab build` command, you can disable
104
-
105
- these options like so:
106
-
107
-
108
-
109
- jupyter lab build --dev-build=False --minimize=False
110
-
111
-
112
-
113
- You can also disable these options for all JupyterLab builds by adding these
114
-
115
- lines to a Jupyter config file named `jupyter_config.py`:
116
-
117
-
118
-
119
- c.LabBuildApp.minimize = False
120
-
121
- c.LabBuildApp.dev_build = False
122
-
123
-
124
-
125
- If you don't already have a `jupyter_config.py` file, you can create one by
126
-
127
- adding a blank file of that name to any of the Jupyter config directories.
128
-
129
- The config directories can be listed by running:
130
-
131
-
132
-
133
- jupyter --paths
134
-
135
-
136
-
137
- Explanation:
138
-
139
-
140
-
141
- - `dev-build`: This option controls whether a `dev` or a more streamlined
142
-
143
- `production` build is used. This option will default to `False` (i.e., the
144
-
145
- `production` build) for most users. However, if you have any labextensions
146
-
147
- installed from local files, this option will instead default to `True`.
148
-
149
- Explicitly setting `dev-build` to `False` will ensure that the `production`
150
-
151
- build is used in all circumstances.
152
-
153
-
154
-
155
- - `minimize`: This option controls whether your JS bundle is minified
156
-
157
- during the Webpack build, which helps to improve JupyterLab's overall
158
-
159
- performance. However, the minifier plugin used by Webpack is very memory
160
-
161
- intensive, so turning it off may help the build finish successfully in
162
-
163
- low-memory environments.
164
-
165
-
19
+ 他の拡張機能は問題なく使えております。
20
+
21
+
22
+
23
+ 便利な@lckr/jupyterlab_variableinspectorをインストールしようと思うのですが
24
+
25
+
26
+
27
+ ```
28
+
29
+ jupyter labextension install @lckr/jupyterlab_variableinspector
30
+
31
+
32
+
33
+ ```
34
+
35
+
36
+
37
+ を実行すると
38
+
39
+
40
+
41
+
42
+
43
+ ```
44
+
45
+ (base) matsusesatoshi@matsusesatoshinoMacBook-puro ~ % jupyter labextension install @lckr/jupyterlab_variableinspector
46
+
47
+ Building jupyterlab assets (production, minimized)
166
48
 
167
49
  An error occured.
168
50
 
169
51
  RuntimeError: JupyterLab failed to build
170
52
 
171
- See the log file for details: /var/folders/ll/cdp3xh194t7_9c631lm07yx00000gn/T/jupyterlab-debug-sfq9e1l5.log
53
+ See the log file for details: /var/folders/ll/cdp3xh194t7_9c631lm07yx00000gn/T/jupyterlab-debug-0an40nwu.log
172
-
173
-
174
-
54
+
55
+
56
+
175
- -----
57
+ ```
176
58
 
177
59
 
178
60
 
@@ -186,13 +68,13 @@
186
68
 
187
69
  jupyter, jupyter-core の再インストール
188
70
 
189
- Anacondaのインストールからデフォルトで入っているjupyterlabの起動(同様でした)
71
+ build_config.json削除及び再インストール
190
72
 
191
73
 
192
74
 
193
75
  インターネットで検索し、できそうなことは試したのですが何がいけないのでしょうか...
194
76
 
195
- くお願いしす。
77
+ ご回答あるいは、ほかの似たうな拡張機能を知ってらっゃったら教えてただけると嬉いです。
196
78
 
197
79
 
198
80
 
@@ -200,50 +82,204 @@
200
82
 
201
83
 
202
84
 
203
- ----
85
+ ```
204
86
 
205
87
  ERROR in resolving fallback for shared module @lckr/jupyterlab_variableinspector
206
88
 
207
- Module not found: Error: Can't resolve '@lckr/jupyterlab_variableinspector' in '/Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build'
89
+ Module not found: Error: Can't resolve '@lckr/jupyterlab_variableinspector' in '/opt/anaconda3/share/jupyter/lab/staging/build'
208
-
90
+
209
- resolve '@lckr/jupyterlab_variableinspector' in '/Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build'
91
+ resolve '@lckr/jupyterlab_variableinspector' in '/opt/anaconda3/share/jupyter/lab/staging/build'
210
92
 
211
93
  Parsed request is a module
212
94
 
213
- using description file: /Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build/package.json (relative path: .)
95
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/build/package.json (relative path: .)
214
96
 
215
97
  Field 'browser' doesn't contain a valid alias configuration
216
98
 
217
99
  resolve as module
218
100
 
219
-
220
-
221
- ----
222
-
223
-
224
-
225
- ---
226
-
227
-
228
-
229
- WARNING in ./node_modules/vega-lite/build/src/index.js 5:0-30
230
-
231
- Should not import the named export 'version' (reexported as 'version') from default-exporting module (only default export is available soon)
232
-
233
- @ consume shared module (default) vega-lite@^4.0.2 (strict) (fallback: ./node_modules/vega-lite/build/src/index.js)
234
-
235
- @ ./node_modules/vega-embed/build/vega-embed.module.js 6:0-44 821:16-30
236
-
237
- @ consume shared module (default) vega-embed@^6.2.1 (strict) (fallback: ./node_modules/vega-embed/build/vega-embed.module.js)
238
-
239
- @ ./node_modules/@jupyterlab/vega5-extension/lib/index.js 166:28-48
240
-
241
- @ consume shared module (default) @jupyterlab/vega5-extension@~3.0.9 (strict) (fallback: ./node_modules/@jupyterlab/vega5-extension/lib/index.js)
242
-
243
- @ ./build/index.out.js 171:16-54
244
-
245
- @ ./build/bootstrap.js
246
-
247
-
248
-
249
- ---
101
+ /opt/anaconda3/share/jupyter/lab/staging/build/node_modules doesn't exist or is not a directory
102
+
103
+ looking for modules in /opt/anaconda3/share/jupyter/lab/staging/node_modules
104
+
105
+ single file module
106
+
107
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)
108
+
109
+ no extension
110
+
111
+ Field 'browser' doesn't contain a valid alias configuration
112
+
113
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector is not a file
114
+
115
+ .js
116
+
117
+ Field 'browser' doesn't contain a valid alias configuration
118
+
119
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.js doesn't exist
120
+
121
+ .json
122
+
123
+ Field 'browser' doesn't contain a valid alias configuration
124
+
125
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.json doesn't exist
126
+
127
+ .wasm
128
+
129
+ Field 'browser' doesn't contain a valid alias configuration
130
+
131
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.wasm doesn't exist
132
+
133
+ existing directory /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector
134
+
135
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/package.json (relative path: .)
136
+
137
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)
138
+
139
+ no extension
140
+
141
+ Field 'browser' doesn't contain a valid alias configuration
142
+
143
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector is not a file
144
+
145
+ .js
146
+
147
+ Field 'browser' doesn't contain a valid alias configuration
148
+
149
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.js doesn't exist
150
+
151
+ .json
152
+
153
+ Field 'browser' doesn't contain a valid alias configuration
154
+
155
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.json doesn't exist
156
+
157
+ .wasm
158
+
159
+ Field 'browser' doesn't contain a valid alias configuration
160
+
161
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector.wasm doesn't exist
162
+
163
+ as directory
164
+
165
+ existing directory /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector
166
+
167
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/package.json (relative path: .)
168
+
169
+ use ./lib/index.js from main in package.json
170
+
171
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/package.json (relative path: ./lib/index.js)
172
+
173
+ no extension
174
+
175
+ Field 'browser' doesn't contain a valid alias configuration
176
+
177
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/lib/index.js doesn't exist
178
+
179
+ .js
180
+
181
+ Field 'browser' doesn't contain a valid alias configuration
182
+
183
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/lib/index.js.js doesn't exist
184
+
185
+ .json
186
+
187
+ Field 'browser' doesn't contain a valid alias configuration
188
+
189
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/lib/index.js.json doesn't exist
190
+
191
+ .wasm
192
+
193
+ Field 'browser' doesn't contain a valid alias configuration
194
+
195
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/lib/index.js.wasm doesn't exist
196
+
197
+ as directory
198
+
199
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/lib/index.js doesn't exist
200
+
201
+ using path: /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/index
202
+
203
+ using description file: /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/package.json (relative path: ./index)
204
+
205
+ no extension
206
+
207
+ Field 'browser' doesn't contain a valid alias configuration
208
+
209
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/index doesn't exist
210
+
211
+ .js
212
+
213
+ Field 'browser' doesn't contain a valid alias configuration
214
+
215
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/index.js doesn't exist
216
+
217
+ .json
218
+
219
+ Field 'browser' doesn't contain a valid alias configuration
220
+
221
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/index.json doesn't exist
222
+
223
+ .wasm
224
+
225
+ Field 'browser' doesn't contain a valid alias configuration
226
+
227
+ /opt/anaconda3/share/jupyter/lab/staging/node_modules/@lckr/jupyterlab_variableinspector/index.wasm doesn't exist
228
+
229
+ /opt/anaconda3/share/jupyter/lab/node_modules doesn't exist or is not a directory
230
+
231
+ /opt/anaconda3/share/jupyter/node_modules doesn't exist or is not a directory
232
+
233
+ /opt/anaconda3/share/node_modules doesn't exist or is not a directory
234
+
235
+ /opt/anaconda3/node_modules doesn't exist or is not a directory
236
+
237
+ /opt/node_modules doesn't exist or is not a directory
238
+
239
+ /node_modules doesn't exist or is not a directory
240
+
241
+
242
+
243
+ webpack 5.31.2 compiled with 1 error and 1 warning in 25282 ms
244
+
245
+
246
+
247
+ JupyterLab failed to build
248
+
249
+ Traceback (most recent call last):
250
+
251
+
252
+
253
+ File "/opt/anaconda3/lib/python3.8/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
254
+
255
+ yield
256
+
257
+
258
+
259
+ File "/opt/anaconda3/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 133, in start
260
+
261
+ build(clean_staging=self.should_clean,
262
+
263
+
264
+
265
+ File "/opt/anaconda3/lib/python3.8/site-packages/jupyterlab/commands.py", line 469, in build
266
+
267
+ return handler.build(name=name, version=version, static_url=static_url,
268
+
269
+
270
+
271
+ File "/opt/anaconda3/lib/python3.8/site-packages/jupyterlab/commands.py", line 678, in build
272
+
273
+ raise RuntimeError(msg)
274
+
275
+
276
+
277
+ RuntimeError: JupyterLab failed to build
278
+
279
+
280
+
281
+ Exiting application: lab
282
+
283
+
284
+
285
+ ```

2

logの追記

2021/07/10 18:33

投稿

satoshi_1
satoshi_1

スコア6

test CHANGED
File without changes
test CHANGED
@@ -196,4 +196,54 @@
196
196
 
197
197
 
198
198
 
199
- logの内容が必要そうあれば、追記します。
199
+ logの内容でエラーを吐いている内容は下に記します。
200
+
201
+
202
+
203
+ ----
204
+
205
+ ERROR in resolving fallback for shared module @lckr/jupyterlab_variableinspector
206
+
207
+ Module not found: Error: Can't resolve '@lckr/jupyterlab_variableinspector' in '/Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build'
208
+
209
+ resolve '@lckr/jupyterlab_variableinspector' in '/Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build'
210
+
211
+ Parsed request is a module
212
+
213
+ using description file: /Users/matsusesatoshi/.pyenv/versions/3.9.5/share/jupyter/lab/staging/build/package.json (relative path: .)
214
+
215
+ Field 'browser' doesn't contain a valid alias configuration
216
+
217
+ resolve as module
218
+
219
+
220
+
221
+ ----
222
+
223
+
224
+
225
+ ---
226
+
227
+
228
+
229
+ WARNING in ./node_modules/vega-lite/build/src/index.js 5:0-30
230
+
231
+ Should not import the named export 'version' (reexported as 'version') from default-exporting module (only default export is available soon)
232
+
233
+ @ consume shared module (default) vega-lite@^4.0.2 (strict) (fallback: ./node_modules/vega-lite/build/src/index.js)
234
+
235
+ @ ./node_modules/vega-embed/build/vega-embed.module.js 6:0-44 821:16-30
236
+
237
+ @ consume shared module (default) vega-embed@^6.2.1 (strict) (fallback: ./node_modules/vega-embed/build/vega-embed.module.js)
238
+
239
+ @ ./node_modules/@jupyterlab/vega5-extension/lib/index.js 166:28-48
240
+
241
+ @ consume shared module (default) @jupyterlab/vega5-extension@~3.0.9 (strict) (fallback: ./node_modules/@jupyterlab/vega5-extension/lib/index.js)
242
+
243
+ @ ./build/index.out.js 171:16-54
244
+
245
+ @ ./build/bootstrap.js
246
+
247
+
248
+
249
+ ---

1

logについて

2021/07/10 16:19

投稿

satoshi_1
satoshi_1

スコア6

test CHANGED
File without changes
test CHANGED
@@ -196,4 +196,4 @@
196
196
 
197
197
 
198
198
 
199
- logの内容は文字数制限のため画像に貼っておきます。
199
+ logの内容が必要そうであれば追記します。