Asciinema: ์–‘์กฐ ์„ค์น˜ ํ›„ ์‹คํŒจ: ModuleNotFoundError: 'pkg_resources'๋ผ๋Š” ๋ชจ๋“ˆ์ด ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2018๋…„ 02์›” 12์ผ  ยท  10์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: asciinema/asciinema

$ brew install asciinema
Warning: asciinema 2.0.0 is already installed

$ asciinema 
Traceback (most recent call last):
  File "/usr/local/Cellar/asciinema/2.0.0/libexec/bin/asciinema", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Traceback (most recent call last):
  File "/usr/local/Cellar/asciinema/2.0.0/libexec/bin/asciinema", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

์ด๊ฒƒ์€ asciinema ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋ผ ๋‚ด ์„ค์น˜์˜ ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์•„๋งˆ๋„ ๋ช‡ ๊ฐ€์ง€ ์ค‘์š”ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์ด ๋ถ€์กฑํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์„ ์กฐ์‚ฌํ•˜๊ณ  ๊ทธ๊ฒƒ์„ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๋ฉ”๋ชจ๋ฅผ ์ถ”๊ฐ€ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

๋‚˜๋ฅผ ์œ„ํ•œ ์ˆ˜์ • ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 # to find and fix issues with my brew
$ brew doctor

$ brew install python3
Warning: python3 3.6.4_2 is already installed, it's just not linked.
You can use `brew link python3` to link this version.

$ brew link python3
Linking /usr/local/Cellar/python3/3.6.4_2... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

# It's possible that the linking would not be necessary if I skipped to the postinstall step.
$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
$ brew link python3
Linking /usr/local/Cellar/python3/3.6.4_2... 1 symlinks created

์ด ์‹œ์ ์—์„œ ์—ฌ์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” ๋‹ฌ๋ ธ๋‹ค.

$ brew postinstall python3

๊ทธ๋ฆฌ๊ณ  asciinema๊ฐ€ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค!

๋ชจ๋“  10 ๋Œ“๊ธ€

๋‚˜๋ฅผ ์œ„ํ•œ ์ˆ˜์ • ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 # to find and fix issues with my brew
$ brew doctor

$ brew install python3
Warning: python3 3.6.4_2 is already installed, it's just not linked.
You can use `brew link python3` to link this version.

$ brew link python3
Linking /usr/local/Cellar/python3/3.6.4_2... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

# It's possible that the linking would not be necessary if I skipped to the postinstall step.
$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
$ brew link python3
Linking /usr/local/Cellar/python3/3.6.4_2... 1 symlinks created

์ด ์‹œ์ ์—์„œ ์—ฌ์ „ํžˆ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” ๋‹ฌ๋ ธ๋‹ค.

$ brew postinstall python3

๊ทธ๋ฆฌ๊ณ  asciinema๊ฐ€ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค!

์–‘์กฐ ํ›„ ์„ค์น˜ python3์ด ๋‚˜๋ฅผ ์œ„ํ•ด ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ .cast๋ฅผ ๋กœ์ปฌ๋กœ ์ €์žฅํ•˜๋ ค๊ณ  ํ•  ๋•Œ(asciinema rec filename.cast) ์—ฌ์ „ํžˆ ๋ช‡ ๊ฐ€์ง€ ๊ถŒํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์‚ฌํ›„ ๊ธฐ๋ก ctrl-c๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ir์ด ์ œ๋Œ€๋กœ ์ €์žฅ๋ฉ๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ๋ถ„๋ช…ํžˆ ํฌ์žฅ / ์ž์ž‘ ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์•ž์œผ๋กœ ์ด๋Ÿฌํ•œ ์ข…๋ฅ˜์˜ ๋ฌธ์ œ๋ฅผ brew Formulas ์ €์žฅ์†Œ์˜ brew ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž์—๊ฒŒ ๋ณด๊ณ ํ•ด ์ฃผ์‹ญ์‹œ์˜ค. ๊ฐ์‚ฌ ํ•ด์š”!

์ด๊ฒƒ์€ ์ €์—๊ฒŒ๋„ ๋„์›€์ด ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

์ด๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค!

๊ทธ๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!!

๊ฐ™์€ ์˜ค๋ฅ˜
๊ณ ๋งˆ์›Œ, ํšจ๊ณผ๊ฐ€ ์žˆ์—ˆ๋‹ค!

๋งŽ์€ ๋„์›€์ด ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์™„๋ฒฝํ•œ !
์ด๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰