Errors when running all commands in OsX 10.9.2

Issue #9 new
John Farrow created an issue

Getting the following error when running any commands

Traceback (most recent call last):
  File "/usr/local/bin/bitbucket", 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

Comments (9)

  1. Howard Mao repo owner

    Strange, it looks like the "requests" dependency didn't get installed. How are you installing, through pip, or using setup.py? Could you paste the output?

  2. Kyle Cunningham

    I have the same issue on OS X 10.9.3, here's the output:

    Traceback (most recent call last):
      File "/usr/local/bin/bb", 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
    

    I installed it via pip using the following command:

    sudo pip install bitbucket-cli
    

    Output of the install:

    Downloading/unpacking bitbucket-cli
      Downloading bitbucket-cli-0.4.1.tar.gz
      Running setup.py (path:/private/tmp/pip_build_root/bitbucket-cli/setup.py) egg_info for package bitbucket-cli
    
    Downloading/unpacking requests (from bitbucket-cli)
      Downloading requests-2.3.0-py2.py3-none-any.whl (452kB): 452kB downloaded
    Installing collected packages: bitbucket-cli, requests
      Running setup.py install for bitbucket-cli
    
        Installing bitbucket script to /usr/local/bin
        Installing bb script to /usr/local/bin
    Successfully installed bitbucket-cli requests
    Cleaning up...
    
  3. Howard Mao repo owner

    That's very strange. Can you figure out what path the python libs are being installed to?

  4. Howard Mao repo owner

    I do not have this version of OSX, so I cannot easily debug the installation issue. If someone who does use this version can help debug, I would be very grateful.

  5. Christopher Jefferson

    I'm not 100% sure what the problem is, but googling around this seems to be a mavericks issue.

    I ran:

    sudo easy_install-2.7 --upgrade setuptools
    sudo easy_install-2.7 --upgrade pip
    

    Which seemed to get me working (without having to reinstall bb). Now everything works and I can't make it "unwork" again :)

  6. Mickey Pashov

    I followed @ChrisJefferson's advice and managed to install it but when I try to run the command it says it doesn't exist. Any ideas?

  7. NHellFire

    I got this too on Ubuntu 12.04 even though requests was already installed, this fixed it for me:

    sudo pip install --upgrade pip setuptools

    Seems there's a buggy version of setuptools.

    @mickeypash: Check /usr/local/bin is in your PATH: echo $PATH
    If not, you can add it to your ~/.bash_profile: export PATH=/usr/local/bin:$PATH

  8. Log in to comment