Skip to content
This repository

cacerts.txt not included in package, BREAKS library in PyPI installs #260

Closed
mbr opened this Issue · 1 comment

2 participants

Marc Brinkmann Mitch Garnaat
Marc Brinkmann
mbr commented

When installing from PyPI, the boto/cacerts/cacerts.txt is no longer included in the package. This causes all usage of S3 to fail on my machine (and probably other services that use HTTPS connections):

  File "/home/marc/Documents/github.com/simplekv/venv/lib/python2.6/site-packages/boto/s3/connection.py", line 387, in create_bucket
    data=data)
  File "/home/marc/Documents/github.com/simplekv/venv/lib/python2.6/site-packages/boto/s3/connection.py", line 423, in make_request
    override_num_retries=override_num_retries)
  File "/home/marc/Documents/github.com/simplekv/venv/lib/python2.6/site-packages/boto/connection.py", line 620, in make_request
    override_num_retries)
  File "/home/marc/Documents/github.com/simplekv/venv/lib/python2.6/site-packages/boto/connection.py", line 611, in _send_http_request
    http_request.host, sender, override_num_retries)
  File "/home/marc/Documents/github.com/simplekv/venv/lib/python2.6/site-packages/boto/connection.py", line 552, in _mexe
    raise e
SSLError: [Errno 185090050] _ssl.c:326: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

The file should be included when installing using setup.py. A temporary fix is manually downloading the file from the repository and copying it over to the folder.

This happens when installing 2.0rc1 and 2.0.

Mitch Garnaat
Owner

Rats. I think this is only an issue if you are actually trying to use the certificate validation feature. I just did a "pip install boto" in a virtualenv and everything is working fine if I don't use cert validation. However, it is definitely an issue and one that I will try to fix today. Thanks for the report!

Mitch Garnaat garnaat closed this in 6cadd84
David Arthur mumrah referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Marc Brinkmann mbr referenced this issue from a commit in mbr/boto
Marc Brinkmann mbr Make cacerts.txt package data instead of just including it in source
distributions.

The cacerts.txt was missing from boto distributions (see issue #260).
Adding it to MANIFEST.in causes the file to be included in sdist source
archives, but *not* when installing via PyPI/pip/directly from github.

To fix this issue, MANIFEST.in has been deleted and the (hopefully, as
the whole setuptools/distutils affair is a bit of a mess) proper options
have been added to setup.py.

Installation via git+https through pip has been tested, I have also
checked if the file is included in the tarball generated by sdist. I am
reasonably confident that this will also cause installs from PyPI to
work afterwards.
c4c126d
Marc Abramowitz msabramo referenced this issue from a commit in msabramo/boto
Mitch Garnaat garnaat Explicitly add cacerts.txt to MANIFEST.in to make sure it is included…
… in source distributions. Closes GH-260.
e4c22be
Marc Abramowitz msabramo referenced this issue from a commit in msabramo/boto
Marc Brinkmann mbr Make cacerts.txt package data instead of just including it in source
distributions.

The cacerts.txt was missing from boto distributions (see issue #260).
Adding it to MANIFEST.in causes the file to be included in sdist source
archives, but *not* when installing via PyPI/pip/directly from github.

To fix this issue, MANIFEST.in has been deleted and the (hopefully, as
the whole setuptools/distutils affair is a bit of a mess) proper options
have been added to setup.py.

Installation via git+https through pip has been tested, I have also
checked if the file is included in the tarball generated by sdist. I am
reasonably confident that this will also cause installs from PyPI to
work afterwards.
4bc628e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.