Asciinema: schlägt nach der Brühinstallation fehl: ModuleNotFoundError: Kein Modul namens 'pkg_resources'

Erstellt am 12. Feb. 2018  ·  10Kommentare  ·  Quelle: 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'

Dies ist kein Asciinema-Problem, sondern ein Problem mit meiner Installation - mir fehlen wahrscheinlich einige wichtige Anforderungen.

Ich untersuche dies und werde Hinweise zur Lösung hinzufügen.

Hilfreichster Kommentar

Die Fixes für mich waren:

 # 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

Zu diesem Zeitpunkt würde es immer noch nicht funktionieren. Also lief ich:

$ brew postinstall python3

Und dann hat Asciinema funktioniert!

Alle 10 Kommentare

Die Fixes für mich waren:

 # 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

Zu diesem Zeitpunkt würde es immer noch nicht funktionieren. Also lief ich:

$ brew postinstall python3

Und dann hat Asciinema funktioniert!

Das Brew nach der Installation von Python3 hat es für mich gelöst. Wenn ich jedoch versuche, eine .cast lokal zu speichern (asciinema rec filename.cast), erhalte ich immer noch einige Berechtigungsprobleme. Wenn Sie jedoch die Strg-C-Taste nach der Aufnahme verwenden, wird ir richtig gespeichert.

Dies ist eindeutig ein Verpackungs- / Homebrew-Problem. In Zukunft melden Sie diese Art von Problemen bitte dem/den Betreuern des Braupakets im Brauformel-Repository. Vielen Dank!

Das hat mir auch geholfen. Dankeschön!

Dankeschön!

Das funktioniert bei mir!

Das ist für mich in Ordnung! Dankeschön!!

der gleiche fehler
danke, es hat funktioniert!

Das hat sehr geholfen, danke Kumpel.

Perfekt !
Das funktioniert bei mir, danke

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen