[boto] 'SSLError' object has no attribute 'error_code'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Undecided
|
Unassigned |
Bug Description
Steps:
Run duplicity with boto for example:
$ docker run --rm -v $PWD:/data:ro -e PASSPHRASE=test -e GS_ACCESS_
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
backup, local_pathname = set_backend(
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
return factory(pu)
File "/usr/lib/
self.
File "/usr/lib/
if "NoSuchBucket" in e.error_code:
AttributeError: 'SSLError' object has no attribute 'error_code'
(here it's using Docker image it's just the same of course without)
Looks like _boto_single.py:187 is trying to access "error_code" property on SSLError object which probably should instead be accessing the "reason" property (see https:/
Wernight (werner-beroux) wrote : | #1 |
Wernight (werner-beroux) wrote : | #2 |
Outside of fixing the reported error, it's possibly not setting "x-goog-project-id" as is done in the boto example on https:/
Wernight (werner-beroux) wrote : | #3 |
Just tried and the ~/.boto file (which contains the project ID) does work, while environment variables don't.
Gymnae (z-admin-f) wrote : | #4 |
Dear Wernight,
could you please elaborate what you put into your ~/.boto file, because I'm just running into the same problems - and I'm using your docker image :)
OS: Alpine
Versions:
duplicity==0.7.5
pycrypto==2.6.1
PyDrive==1.0.1
pyOpenSSL==0.15.1