๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

jupyterlab tensorboard extension์„ค์น˜ ๋ฌธ์ œ ํ•ด๊ฒฐ

by ๐Ÿงž‍โ™‚๏ธ 2020. 7. 3.
๋ฐ˜์‘ํ˜•

 Jupyter Lab์˜ Tensorboard Extension์„ค์น˜ ๋ฐฉ๋ฒ•

 

jupyter labextension install jupyterlab_tensorboard

 

 ๋ฌธ์ œ ์ƒํ™ฉ

๋‹ค์Œ์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details:  /tmp/jupyterlab-debug-w9rhfd_1.log

ํ•ด๋‹น logํŒŒ์ผ์„ ๋ณด๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์•˜๋‹ค.

Node v12.18.2

Yarn configuration loaded.
> /usr/local/lib/nodejs/node-v12.18.2-linux-x64/bin/npm pack jupyterlab_tensorboard
npm notice 
npm notice ๐Ÿ“ฆ  jupyterlab_tensorboard@0.2.1
npm notice === Tarball Contents === 
npm notice 1.1kB LICENSE              
npm notice 2.2kB style/index.css      
npm notice 6.2kB lib/index.js         
npm notice 6.1kB lib/manager.js       
npm notice 2.3kB lib/tab.js           
npm notice 9.7kB lib/tensorboard.js   
npm notice 1.7kB package.json         
npm notice 1.6kB README.md            
npm notice 2.0kB style/tensorboard.svg
npm notice 991B  lib/index.d.ts       
npm notice 2.9kB lib/manager.d.ts     
npm notice 1.2kB lib/tab.d.ts         
npm notice 6.1kB lib/tensorboard.d.ts 
npm notice === Tarball Details === 
npm notice name:          jupyterlab_tensorboard                  
npm notice version:       0.2.1                                   
npm notice filename:      jupyterlab_tensorboard-0.2.1.tgz        
npm notice package size:  10.9 kB                                 
npm notice unpacked size: 44.0 kB                                 
npm notice shasum:        1ecd28d590c14cda82b27d76709b35f9c21121ef
npm notice integrity:     sha512-SqBpyv0E2nGvz[...]ssNzdz4QNshcw==
npm notice total files:   13                                      
npm notice 
jupyterlab_tensorboard-0.2.1.tgz

Node v12.18.2

Yarn configuration loaded.
Building jupyterlab assets (build:prod:minimize)
> node /home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@jupyterlab/application/-/application-2.1.2.tgz: self signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "/home/sark/anaconda3/envs/ai/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

npm dependencies failed to install
Traceback (most recent call last):

  File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

  File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 105, in start
    command=command, app_options=app_options)

  File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/commands.py", line 460, in build
    command=command, clean_staging=clean_staging)

  File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/commands.py", line 652, in build
    raise RuntimeError(msg)

RuntimeError: npm dependencies failed to install

Exiting application: jupyter

ํšŒ์‚ฌ์—์„œ ์‚ฌ์šฉํ•ด์„œ ๊ทธ๋Ÿฐ์ง€ ์ž๊พธ ssl์ธ์ฆ์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ์ด ๊ฒฝ์šฐ yarn์˜ ssl์ธ์ฆ์„ ๋ฌด๋ ฅํ™” ์‹œ์ผœ์ฃผ๋ฉด ๋˜์—ˆ๋‹ค. ํ˜น์‹œ๋‚˜ yarn์ด ์„ค์น˜๊ฐ€ ์•ˆ๋˜์–ด์žˆ๋‹ค๋ฉด ๋‹ค์Œ์˜ ์„ค์น˜ ๋ช…๋ น์–ด๋ฅผ ์ฐธ๊ณ ํ•˜์ž(๋ฆฌ๋ˆ…์Šค ๊ธฐ์ค€).

 NPM์œผ๋กœ yarn์„ค์น˜ ๋ฐฉ๋ฒ•

npm install -g yarn

 

 ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

yarn config set "strict-ssl" false -g

์ถœ๋ ฅ ํ™”๋ฉด

yarn config v1.22.4
success Set "strict-ssl" to "false".
Done in 0.02s.
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€