Asciinema: échoue après l'installation de brew : ModuleNotFoundError : aucun module nommé 'pkg_resources'

Créé le 12 févr. 2018  ·  10Commentaires  ·  Source: 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'

Ce n'est pas un problème d'asciinema mais un problème avec mon installation - il me manque probablement des exigences importantes.

J'étudie ce problème et j'ajouterai des notes pour savoir comment le résoudre.

Commentaire le plus utile

Les correctifs pour moi étaient:

 # 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

À ce stade, cela ne fonctionnerait toujours pas. J'ai donc couru :

$ brew postinstall python3

Et puis asciinema a fonctionné!

Tous les 10 commentaires

Les correctifs pour moi étaient:

 # 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

À ce stade, cela ne fonctionnerait toujours pas. J'ai donc couru :

$ brew postinstall python3

Et puis asciinema a fonctionné!

Le brew post install python3 l'a résolu pour moi. Cependant, lorsque j'essaie d'enregistrer un .cast localement (asciinema rec filename.cast), je rencontre toujours des problèmes d'autorisations. Cependant, l'utilisation du post-enregistrement ctrl-c enregistre correctement ir.

Il s'agit clairement d'un problème de packaging / homebrew. À l'avenir, veuillez signaler ce type de problème au(x) mainteneur(s) du paquet de brassage dans le référentiel de formules de brassage. Merci!

Cela m'a aussi aidé. Merci!

Merci!

Cela fonctionne pour moi !

Ça marche pour moi! Merci!!

la même erreur
merci, ça a marché !

Cela m'a beaucoup aidé, merci mon pote.

Parfait !
Cela fonctionne pour moi, merci

Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

pfalcon picture pfalcon  ·  4Commentaires

lebinh picture lebinh  ·  3Commentaires

lukehinds picture lukehinds  ·  5Commentaires

redaxmedia picture redaxmedia  ·  3Commentaires

yuvalif picture yuvalif  ·  10Commentaires