Asciinema: falha após a instalação do brew: ModuleNotFoundError: Nenhum módulo chamado 'pkg_resources'

Criado em 12 fev. 2018  ·  10Comentários  ·  Fonte: 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'

Este não é um problema do asciinema, mas um problema com a minha instalação - provavelmente estou faltando alguns requisitos importantes.

Estou investigando isso e adicionarei notas sobre como resolvê-lo.

Comentários muito úteis

As correções para mim foram:

 # 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

Neste ponto, ainda não funcionaria. Então eu corri:

$ brew postinstall python3

E então asciinema funcionou!

Todos 10 comentários

As correções para mim foram:

 # 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

Neste ponto, ainda não funcionaria. Então eu corri:

$ brew postinstall python3

E então asciinema funcionou!

O brew post install python3 resolveu isso para mim. No entanto, ao tentar salvar um .cast localmente (asciinema rec filename.cast), ainda estou tendo alguns problemas de permissão. No entanto, usar o ctrl-c de pós-gravação salva-o corretamente.

Este é claramente um problema de empacotamento / homebrew. No futuro, por favor, reporte esse tipo de problema ao (s) mantenedor (es) do pacote brew no repositório de fórmulas brew. Obrigado!

Isso também me ajudou. Obrigado!

Obrigado!

Isso funciona para mim!

Isso funciona para mim! Obrigado!!

o mesmo erro
obrigado, funcionou!

Isso ajudou muito, obrigado cara.

Perfeito !
Isso funciona para mim, obrigado

Esta página foi útil?
0 / 5 - 0 avaliações

Questões relacionadas

laughedelic picture laughedelic  ·  7Comentários

SR-Lut3t1um picture SR-Lut3t1um  ·  3Comentários

KurtPfeifle picture KurtPfeifle  ·  3Comentários

yuvalif picture yuvalif  ·  10Comentários

ethanboxx picture ethanboxx  ·  6Comentários