Asciinema: brew 安装后失败:ModuleNotFoundError: No module named '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 起作用了!

brew post install python3 为我解决了这个问题。 但是,当尝试在本地保存 .cast (asciinema rec filename.cast) 时,我仍然遇到一些权限问题。 但是,使用后期录制 ctrl-c 确实可以正确保存 ir。

这显然是包装/自制问题。 将来,请向 brew 公式存储库中的 brew 包维护者报告此类问题。 谢谢!

这对我也有帮助。 谢谢!

谢谢!

这对我有用!

这对我行得通! 谢谢!!

同样的错误
谢谢,它奏效了!

这很有帮助,谢谢伙计。

完美的 !
这对我有用,谢谢

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

omaraboumrad picture omaraboumrad  ·  10评论

laughedelic picture laughedelic  ·  7评论

maphew picture maphew  ·  12评论

KurtPfeifle picture KurtPfeifle  ·  3评论

Bux42 picture Bux42  ·  9评论