question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pkg_resources.DistributionNotFound: boto==2.29.1

See original GitHub issue
gsutil cp failed.tar.gz gs://my_bucket
Traceback (most recent call last):
  File "/usr/local/bin/gsutil", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: boto==2.29.1

But:

pip freeze | grep boto
boto==2.29.1
gcs-oauth2-boto-plugin==1.5

Huh what? I’m running on a Debian Wheezy GCE instance and tried the following updates:

sudo apt-get update
sudo apt-get upgrade
sudo pip install -U boto
sudo pip install -U gsutil
curl https://sdk.cloud.google.com | bash
Requirement already up-to-date: gsutil in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: boto==2.29.1 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: crcmod>=1.7 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: gcs-oauth2-boto-plugin>=1.5 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: google-api-python-client>=1.1 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: httplib2>=0.8 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: pyOpenSSL>=0.13 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: python-gflags>=2.0 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: retry-decorator>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: SocksiPy-branch==1.01 in /usr/local/lib/python2.7/dist-packages (from gsutil)
Requirement already up-to-date: cryptography>=0.2.1 in /usr/local/lib/python2.7/dist-packages (from pyOpenSSL>=0.13->gsutil)
Requirement already up-to-date: six>=1.5.2 in /usr/local/lib/python2.7/dist-packages (from pyOpenSSL>=0.13->gsutil)
Requirement already up-to-date: cffi>=0.8 in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.2.1->pyOpenSSL>=0.13->gsutil)
Requirement already up-to-date: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=0.8->cryptography>=0.2.1->pyOpenSSL>=0.13->gsutil)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jterracecommented, Jun 6, 2014

Could you try:

pip uninstall boto
pip install -U gsutil
0reactions
alexregcommented, Nov 27, 2014

Why must the dependency be on an exact version? Can it not be a >= dependency (i.e. that version or newer)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a "DistributionNotFound" when running aws
pkg_resources.DistributionNotFound: boto. but boto is clearly installed, as shown in the pip freeze output. what am I doing wrong?
Read more >
The 'iniparse' distribution was not found and is required by ...
Issue. Python traceback showing iniparse distribution was not found. pkg_resources.DistributionNotFound: The 'iniparse' ...
Read more >
[Solved] Pkg_resources.distributionnotfound for cvlib library
I have written a python script that uses cvlib library, when i run the code as a python scrept it works fine, however;...
Read more >
boto: A Python interface to Amazon Web Services — boto v2 ...
Note. You are viewing the documentation for an older version of boto (boto2). Boto3, the next version of Boto, is now stable and...
Read more >
cmake: pkg_resources.DistributionNotFound: The 'certifi>= ...
Does anyone know where or what the error is: (MEZ 23:22 will look to morrow for an answer - thanks) I have build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found