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

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

This comment has been minimized.

Copy link
Author

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 Feb 12, 2018

@VirtualFreak

This comment has been minimized.

Copy link

commented Mar 21, 2018

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.

@sickill

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link

commented Aug 12, 2018

This helped me as well. Thank you!

@wanshaoyuan

This comment has been minimized.

Copy link

commented Nov 17, 2018

Thank you!

@aristofanio

This comment has been minimized.

Copy link

commented Jan 5, 2019

This works for me!

@lbrabus

This comment has been minimized.

Copy link

commented Mar 14, 2019

That works for me! Thank you!!

@aa1143

This comment has been minimized.

Copy link

commented Mar 28, 2019

the same error
thanks, it worked!

@qn7o

This comment has been minimized.

Copy link

commented Apr 5, 2019

That helped a lot, thanks mate.

@spchef

This comment has been minimized.

Copy link

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
Projects
None yet
10 participants
You can’t perform that action at this time.