Use pip3 to install boto3. duplicity runs under Python 3.6 and up.
On Thu, Feb 6, 2020 at 8:55 PM Johan <email address hidden> wrote:
> Please elaborate. > > $ pip install boto3 > > $ pip show boto3 > Name: boto3 > Version: 1.11.12 > > # duplicity --s3-european-buckets --s3-use-new-style -v 4 --archive- > dir=/root/duptest --full-if-older-than 14D test > "boto3+s3://mybucket/private/backups/database/test" > > BackendException: Could not initialize backend: No module named 'boto3' > > -- > You received this bug notification because you are a bug assignee. > https://bugs.launchpad.net/bugs/1860405 > > Title: > The authorization mechanism you have provided is not supported > > Status in Duplicity: > Incomplete > > Bug description: > Ubuntu 18.04 > Duplicity 0.7.17 > Python 2.7.17 > Boto 2.49.0 > > $ duplicity --s3-european-buckets --s3-use-new-style -v 4 --archive- > dir=/root/duptest --full-if-older-than 14D test > "s3+http://mybucket/private/backups/test" > > Traceback (innermost last): > File "/usr/bin/duplicity", line 1555, in <module> > with_tempdir(main) > File "/usr/bin/duplicity", line 1541, in with_tempdir > fn() > File "/usr/bin/duplicity", line 1380, in main > action = commandline.ProcessCommandLine(sys.argv[1:]) > File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line > 1135, in ProcessCommandLine > backup, local_pathname = set_backend(args[0], args[1]) > File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line > 1010, in set_backend > globals.backend = backend.get_backend(bend) > File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line > 223, in get_backend > obj = get_backend_object(url_string) > File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line > 209, in get_backend_object > return factory(pu) > File > "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line > 166, in __init__ > self.resetConnection() > File > "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line > 191, in resetConnection > location=self.my_location) > File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", > line 628, in create_bucket > response.status, response.reason, body) > S3ResponseError: S3ResponseError: 400 Bad Request > <?xml version="1.0" encoding="UTF-8"?> > <Error><Code>InvalidRequest</Code><Message>The authorization mechanism > you have provided is not supported. Please use > AWS4-HMAC-SHA256.</Message><RequestId>7F755XXXF5359CB9</RequestId><HostId>tlcPGQlt+E7xxxxN4Vsl/L6HVM57NaFnI/mwsgresi8wseMY+XUMT8LVyjGxxxxXDCFKMt/w=</HostId></Error> > > To manage notifications about this bug go to: > https://bugs.launchpad.net/duplicity/+bug/1860405/+subscriptions >
Use pip3 to install boto3. duplicity runs under Python 3.6 and up.
On Thu, Feb 6, 2020 at 8:55 PM Johan <email address hidden> wrote:
> Please elaborate. buckets --s3-use-new-style -v 4 --archive- if-older- than 14D test s3://mybucket/ private/ backups/ database/ test" /bugs.launchpad .net/bugs/ 1860405 buckets --s3-use-new-style -v 4 --archive- if-older- than 14D test mybucket/ private/ backups/ test" duplicity" , line 1555, in <module> duplicity" , line 1541, in with_tempdir duplicity" , line 1380, in main ProcessCommandL ine(sys. argv[1: ]) python2. 7/dist- packages/ duplicity/ commandline. py", line args[0] , args[1]) python2. 7/dist- packages/ duplicity/ commandline. py", line get_backend( bend) python2. 7/dist- packages/ duplicity/ backend. py", line object( url_string) python2. 7/dist- packages/ duplicity/ backend. py", line python2. 7/dist- packages/ duplicity/ backends/ _boto_single. py", line ction() python2. 7/dist- packages/ duplicity/ backends/ _boto_single. py", line self.my_ location) lib/python2. 7/dist- packages/ boto/s3/ connection. py", <Code>InvalidRe quest</ Code><Message> The authorization mechanism SHA256. </Message> <RequestId> 7F755XXXF5359CB 9</RequestId> <HostId> tlcPGQlt+ E7xxxxN4Vsl/ L6HVM57NaFnI/ mwsgresi8wseMY+ XUMT8LVyjGxxxxX DCFKMt/ w=</HostId> </Error> /bugs.launchpad .net/duplicity/ +bug/1860405/ +subscriptions
>
> $ pip install boto3
>
> $ pip show boto3
> Name: boto3
> Version: 1.11.12
>
> # duplicity --s3-european-
> dir=/root/duptest --full-
> "boto3+
>
> BackendException: Could not initialize backend: No module named 'boto3'
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> The authorization mechanism you have provided is not supported
>
> Status in Duplicity:
> Incomplete
>
> Bug description:
> Ubuntu 18.04
> Duplicity 0.7.17
> Python 2.7.17
> Boto 2.49.0
>
> $ duplicity --s3-european-
> dir=/root/duptest --full-
> "s3+http://
>
> Traceback (innermost last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> action = commandline.
> File "/usr/lib/
> 1135, in ProcessCommandLine
> backup, local_pathname = set_backend(
> File "/usr/lib/
> 1010, in set_backend
> globals.backend = backend.
> File "/usr/lib/
> 223, in get_backend
> obj = get_backend_
> File "/usr/lib/
> 209, in get_backend_object
> return factory(pu)
> File
> "/usr/lib/
> 166, in __init__
> self.resetConne
> File
> "/usr/lib/
> 191, in resetConnection
> location=
> File "/usr/local/
> line 628, in create_bucket
> response.status, response.reason, body)
> S3ResponseError: S3ResponseError: 400 Bad Request
> <?xml version="1.0" encoding="UTF-8"?>
> <Error>
> you have provided is not supported. Please use
> AWS4-HMAC-
>
> To manage notifications about this bug go to:
> https:/
>