Asciinema: brewインストール後に失敗します: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'

これはアシイネマの問題ではありませんが、インストールの問題です。おそらく、いくつかの重要な要件が不足しています。

私はこれを調査しており、それを解決する方法についてのメモを追加します。

最も参考になるコメント

私の修正は次のとおりです。

 # 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が機能しました!

brew post installpython3は私のためにそれを解決しました。 ただし、.castをローカルに保存しようとすると(asciinema rec filename.cast)、まだいくつかのアクセス許可の問題が発生します。 ただし、ポストレコーディングctrl-cを使用すると、irが適切に保存されます。

これは明らかにパッケージング/自作の問題です。 将来的には、この種の問題をbrewformulasリポジトリのbrewパッケージメンテナに報告してください。 ありがとう!

これは私にも役立ちました。 ありがとうございました!

ありがとうございました!

これは私のために働きます!

それは私のために働きます! ありがとうございました!!

同じエラー
おかげで、それはうまくいきました!

それは大いに役立ちました、ありがとう。

完全 !
これは私のために働きます、ありがとう

このページは役に立ちましたか?
0 / 5 - 0 評価

関連する問題

Bux42 picture Bux42  ·  9コメント

Edo78 picture Edo78  ·  5コメント

karelbilek picture karelbilek  ·  9コメント

SR-Lut3t1um picture SR-Lut3t1um  ·  3コメント

lukehinds picture lukehinds  ·  5コメント