[GH-ISSUE #71] Problem running on Mac OS X: DistributionNotFound #52

Closed
opened 2026-02-25 20:32:25 +03:00 by kerem · 8 comments
Owner

Originally created by @growdigital on GitHub (Sep 1, 2014).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/71

Trying to get asciinema running on Mac OS X 10.9.4 on a MacBook Air 13 inch mid-2011

Installed Python with brew install python, running Python 2.7.5

Installed asciinema with sudo pip install --upgrade asciinema

Getting error message:

$ asciinema rec
Traceback (most recent call last):
  File "/usr/local/bin/asciinema", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: requests>=1.1.0

Tried running as sudo, no joy.

Originally created by @growdigital on GitHub (Sep 1, 2014). Original GitHub issue: https://github.com/asciinema/asciinema/issues/71 Trying to get asciinema running on Mac OS X 10.9.4 on a MacBook Air 13 inch mid-2011 Installed Python with `brew install python`, running Python 2.7.5 Installed asciinema with `sudo pip install --upgrade asciinema` Getting error message: ``` $ asciinema rec Traceback (most recent call last): File "/usr/local/bin/asciinema", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: requests>=1.1.0 ``` Tried running as sudo, no joy.
kerem closed this issue 2026-02-25 20:32:25 +03:00
Author
Owner

@tmchenmin commented on GitHub (Sep 10, 2014):

It seems to be the same issue with #60.

execute sudo easy_install --upgrade pip will solve this issue.

<!-- gh-comment-id:55085860 --> @tmchenmin commented on GitHub (Sep 10, 2014): It seems to be the same issue with [#60](https://github.com/asciinema/asciinema-cli/issues/60). execute `sudo easy_install --upgrade pip` will solve this issue.
Author
Owner

@growdigital commented on GitHub (Sep 12, 2014):

Hm, I tried sudo easy_install --upgrade pip (pip 1.5.6 is already the active version in easy-install.pth) and still getting the same error message. I tried sudo easy_install --upgrade requests from #60 as well, with no joy.

I used brew to install python, so tried brew upgrade python. Still no joy. Currently running asciinema in a virtual machine!

<!-- gh-comment-id:55381801 --> @growdigital commented on GitHub (Sep 12, 2014): Hm, I tried `sudo easy_install --upgrade pip` (`pip 1.5.6 is already the active version in easy-install.pth`) and still getting the same error message. I tried `sudo easy_install --upgrade requests` from [#60](https://github.com/asciinema/asciinema-cli/issues/60#issuecomment-41438601) as well, with no joy. I used [brew](http://brew.sh/) to install python, so tried `brew upgrade python`. Still no joy. Currently running asciinema in a virtual machine!
Author
Owner

@djcommandline commented on GitHub (Sep 15, 2014):

Getting the same issue...

<!-- gh-comment-id:55611305 --> @djcommandline commented on GitHub (Sep 15, 2014): Getting the same issue...
Author
Owner

@2called-chaos commented on GitHub (Oct 28, 2014):

sudo easy_install --upgrade requests did it for me (10.9.4)...

<!-- gh-comment-id:60779119 --> @2called-chaos commented on GitHub (Oct 28, 2014): `sudo easy_install --upgrade requests` did it for me (10.9.4)...
Author
Owner

@growdigital commented on GitHub (Oct 28, 2014):

Thanks for suggestion. But Aargh! Tried this and still no joy :(

MaxBook:~ growdigital$ sudo easy_install --upgrade requests
Password:
Searching for requests
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.4.3
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz#md5=02214b3a179e445545de4b7a98d3dd17
Processing requests-2.4.3.tar.gz
Writing /tmp/easy_install-wqEQ2y/requests-2.4.3/setup.cfg
Running requests-2.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wqEQ2y/requests-2.4.3/egg-dist-tmp-0xwc7G
Removing requests 2.4.1 from easy-install.pth file
Adding requests 2.4.3 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/requests-2.4.3-py2.7.egg
Processing dependencies for requests
Finished processing dependencies for requests
MaxBook:~ growdigital$ asciinema rec
Traceback (most recent call last):
  File "/usr/local/bin/asciinema", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: requests>=1.1.0
<!-- gh-comment-id:60784704 --> @growdigital commented on GitHub (Oct 28, 2014): Thanks for suggestion. But Aargh! Tried this and still no joy :( ``` MaxBook:~ growdigital$ sudo easy_install --upgrade requests Password: Searching for requests Reading https://pypi.python.org/simple/requests/ Best match: requests 2.4.3 Downloading https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz#md5=02214b3a179e445545de4b7a98d3dd17 Processing requests-2.4.3.tar.gz Writing /tmp/easy_install-wqEQ2y/requests-2.4.3/setup.cfg Running requests-2.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wqEQ2y/requests-2.4.3/egg-dist-tmp-0xwc7G Removing requests 2.4.1 from easy-install.pth file Adding requests 2.4.3 to easy-install.pth file Installed /usr/local/lib/python2.7/site-packages/requests-2.4.3-py2.7.egg Processing dependencies for requests Finished processing dependencies for requests MaxBook:~ growdigital$ asciinema rec Traceback (most recent call last): File "/usr/local/bin/asciinema", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: requests>=1.1.0 ```
Author
Owner

@masukomi commented on GitHub (Nov 20, 2014):

Same problem here.

OS X 10.9.5 Python 2.7.8 installed via Homebrew
I've run these:
sudo easy_install --upgrade pip
sudo easy_install --upgrade requests

$pip --version
pip 1.5.6 from /usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)

Same error as @growdigital

<!-- gh-comment-id:63838766 --> @masukomi commented on GitHub (Nov 20, 2014): Same problem here. OS X 10.9.5 Python 2.7.8 installed via Homebrew I've run these: sudo easy_install --upgrade pip sudo easy_install --upgrade requests ``` $pip --version pip 1.5.6 from /usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7) ``` Same error as @growdigital
Author
Owner

@ku1ik commented on GitHub (Dec 17, 2014):

New version is out and it no longer has this problem as ... it's no longer written in Python. Please try it out.

<!-- gh-comment-id:67404222 --> @ku1ik commented on GitHub (Dec 17, 2014): New version is out and it no longer has this problem as ... it's no longer written in Python. Please try it out.
Author
Owner

@growdigital commented on GitHub (Dec 18, 2014):

@sickill fantastic, thank you :)

<!-- gh-comment-id:67453712 --> @growdigital commented on GitHub (Dec 18, 2014): @sickill fantastic, thank you :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#52
No description provided.