Skip to content

Fig installation fails on Mac OS X #71

Closed

Description

@shedd

I'm trying to get fig running on Mac OS X (Mountain Lion). My versions:

Python 2.7.2
pip 1.5.2 from /Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg (python 2.7)
Vagrant 1.4.3
VirtualBox 4.3.7

When I try to do anything with fig, I get the following error:

$ fig
Traceback (most recent call last):
  File "/usr/local/bin/fig", 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: six>=1.3.0

I tried making sure that six is installed and it appears to be:

$ sudo pip install -U six
Requirement already up-to-date: six in /Library/Python/2.7/site-packages

I tried installing fig again:

$ sudo pip install -U fig
Requirement already up-to-date: fig in /Library/Python/2.7/site-packages
Requirement already up-to-date: docopt==0.6.1 in /Library/Python/2.7/site-packages (from fig)
Requirement already up-to-date: PyYAML==3.10 in /Library/Python/2.7/site-packages (from fig)
Requirement already up-to-date: requests==2.2.1 in /Library/Python/2.7/site-packages (from fig)
Requirement already up-to-date: six>=1.3.0 in /Library/Python/2.7/site-packages (from fig)
Requirement already up-to-date: texttable==0.8.1 in /Library/Python/2.7/site-packages (from fig)
Requirement already up-to-date: websocket-client==0.11.0 in /Library/Python/2.7/site-packages (from fig)
Cleaning up...

six appears to be at the right version - in /Library/Python/2.7/site-packages I'm seeing six-1.5.2.dist-info

Not sure where to go from here? Any ideas?

Activity

  1. shedd commented on Jan 31, 2014

    @shedd
    Author

    I tried a couple of things and found that this solution works: http://stackoverflow.com/a/19400718/139934

    I ran:

    $ wget http://python-distribute.org/distribute_setup.py
    $ sudo python distribute_setup.py
    

    (Note that I needed to use sudo on distribute_setup)

    Once I installed that, fig started working. grrr - another frustrating pip experience!

    Is this the "right" solution to this problem?

  2. bfirsh commented on Feb 1, 2014

    @bfirsh

    We're hopefully going to be shipping OS X binaries and Ubuntu debs soon to avoid all this mess. (See #25)

  3. bfirsh commented on Feb 2, 2014

    @bfirsh

    @shedd could you give this binary a try?

    http://static.orchardup.com.s3.amazonaws.com/binaries/fig/Darwin/x86_64/0.2.0/fig

    You can stick it in /usr/local/bin or whatever to get it on your path. Do you think you'd prefer to use a binary over pip?

  4. shedd commented on Feb 6, 2014

    @shedd
    Author

    Sure, I'll give that a try - thanks! Given all of the problems I've had with pip, I think a binary does make more sense. Thanks.

  5. cezary-biernacki commented on Feb 21, 2014

    @cezary-biernacki

    I had the same problem and fixed it by running

    sudo pip install --upgrade distribute
    

    I guess it was caused by a bug in previous versions in distribute or setuptools.

  6. KyleAMathews commented on Feb 26, 2014

    @KyleAMathews

    Running sudo pip install --upgrade distribute solved the same problem for me.

  7. morgante commented on Mar 3, 2014

    @morgante

    None of the proposed solutions worked for me. Still getting this error—any progress on a binary?

  8. bfirsh commented on Mar 3, 2014

    @bfirsh
  9. morgante commented on Mar 3, 2014

    @morgante

    @bfirsh: That link 404s for me.

  10. bfirsh commented on Mar 3, 2014

    @bfirsh

    @morgante Oops, sorry – fixed

  11. morgante commented on Mar 3, 2014

    @morgante

    Looks good, thanks!

  12. xixuebin commented on Feb 6, 2015

    @xixuebin

    fix it with

    sudo pip install --upgrade distribute  
    
  13. liusongsen commented on Jul 19, 2015

    @liusongsen

    遇到这个问题,我就直接通过二进制包方式安装了:

    发布的二进制包可以在 https://github.com/docker/compose/releases 找到。

    下载后直接放到执行路径即可。

    例如,在常见的 Linux 平台上。

    $ sudo curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s-uname -m` > /usr/local/bin/docker-compose
    $ sudo chmod a+x /usr/local/bin/docker-compose

  14. added a commit that references this issue on Jan 19, 2017
  15. added a commit that references this issue on Mar 6, 2026
    4a7adfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions