Asciinema: falla después de la instalación de la preparación: ModuleNotFoundError: Ningún módulo llamado 'pkg_resources'

Creado en 12 feb. 2018  ·  10Comentarios  ·  Fuente: 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 no es un problema de asciinema, sino un problema con mi instalación; probablemente me falten algunos requisitos importantes.

Estoy investigando esto y agregaré notas sobre cómo resolverlo.

Comentario más útil

Las soluciones para mí fueron:

 # 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

En este punto, todavía no funcionaría. Entonces corrí:

$ brew postinstall python3

¡Y luego funcionó el asciinema!

Todos 10 comentarios

Las soluciones para mí fueron:

 # 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

En este punto, todavía no funcionaría. Entonces corrí:

$ brew postinstall python3

¡Y luego funcionó el asciinema!

El brew post install python3 lo resolvió por mí. Sin embargo, al intentar guardar un .cast localmente (asciinema rec filename.cast), todavía tengo algunos problemas de permisos. Sin embargo, el uso de la posgrabación ctrl-c lo guarda correctamente.

Este es claramente un problema de empaquetado / elaboración casera. En el futuro, informe este tipo de problema a los mantenedores del paquete de preparación en el repositorio de fórmulas de preparación. ¡Gracias!

Esto también me ayudó. ¡Gracias!

¡Gracias!

¡Esto funciona para mí!

¡Funciona para mi! ¡¡Gracias!!

el mismo error
gracias, funcionó!

Eso ayudó mucho, gracias amigo.

Perfecto !
Esto funciona para mi, gracias

¿Fue útil esta página
0 / 5 - 0 calificaciones

Temas relacionados

ethanboxx picture ethanboxx  ·  6Comentarios

deeplook picture deeplook  ·  10Comentarios

redaxmedia picture redaxmedia  ·  3Comentarios

lebinh picture lebinh  ·  3Comentarios

karelbilek picture karelbilek  ·  9Comentarios