Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails after brew installation: ModuleNotFoundError: No module named 'pkg_resources' #260

Closed
nictuku opened this issue Feb 12, 2018 · 10 comments

Comments

@nictuku
Copy link

nictuku commented Feb 12, 2018

$ 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'

This isn't an asciinema problem but an issue with my installation - I'm probably lacking some important requirements.

I am investigating this and will add notes for how to solve it.

@nictuku
Copy link
Author

nictuku commented Feb 12, 2018

The fixes for me were:

 # 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

At this point, it would still not work. So I ran:

$ brew postinstall python3

And then asciinema worked!

@nictuku nictuku closed this as completed Feb 12, 2018
@VirtualFreak
Copy link

The brew post install python3 resolved it for me. However, when trying to save a .cast locally (asciinema rec filename.cast), I am still getting some permissions issues. However, using the post recording ctrl-c does save ir properly.

@ku1ik
Copy link
Contributor

ku1ik commented Mar 22, 2018

This is clearly packaging / homebrew issue. In the future please report these kind of issue to brew package maintainer(s) in brew formulas repository. Thanks!

@arunsathiya
Copy link

This helped me as well. Thank you!

@wanshaoyuan
Copy link

Thank you!

@aristofanio
Copy link

This works for me!

@lbrabus
Copy link

lbrabus commented Mar 14, 2019

That works for me! Thank you!!

@aa1143
Copy link

aa1143 commented Mar 28, 2019

the same error
thanks, it worked!

@qn7o
Copy link

qn7o commented Apr 5, 2019

That helped a lot, thanks mate.

@spchef
Copy link

spchef commented Jun 12, 2019

Perfect !
This works for me , Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants