Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
mbr opened this Issue Jul 16, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

mbr commented Jul 16, 2011

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.

Owner

garnaat commented Jul 16, 2011

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!

@ghost ghost assigned garnaat Jul 17, 2011

@garnaat garnaat closed this in 6cadd84 Jul 19, 2011

mbr added a commit to mbr/boto that referenced this issue Oct 24, 2011

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.

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment