← Back to team overview

duplicity-team team mailing list archive

Re: [Question #688226]: AttributeError: 'module' object has not attribute 'packages'

 

Question #688226 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/688226

    Status: Open => Answered

Kenneth Loafman proposed the following answer:
Turns out the problem is coming from the b2sdk package, but not causing any
real problems.

If you want, you can report the bug to the b2sdk folks and maybe they can
fix it.  You can do that here:
https://github.com/Backblaze/b2-sdk-python/issues

...Ken

On Wed, Jan 29, 2020 at 1:43 PM Andy Hairston <
question688226@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Question #688226 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/688226
>
>     Status: Needs information => Open
>
> Andy Hairston gave more information on the question:
> I have this command line in a script:
> PASSPHRASE="[passphrase redacted]" duplicity --progress --progress-rate
> 7200 /home/[folder redacted] b2://[key redacted]@[bucket and folder
> redacted]
>
> It's called from cron like this:
> [script name] | logger -t backups
>
> I (re)ran with -v9. I'm guessing you don't want or need the full 10,000+
> lines, but probably this excerpt:
>
> Jan 29 14:18:14 fafnir backups: Getting delta of
> (duplicati-bb8434f1fa55a4cacac317a30d3c9d1ca.dblock.zip.aes reg) and None
>
>
> Jan 29 14:18:14 fafnir backups: A
> duplicati-bb8434f1fa55a4cacac317a30d3c9d1ca.dblock.zip.aes
>
>
> Jan 29 14:18:22 fafnir backups: AsyncScheduler: running task synchronously
> (asynchronicity disabled)
>
> Jan 29 14:18:22 fafnir backups: Writing
> duplicity-full.20200123T060005Z.vol362.difftar.gpg
>
>
> Jan 29 14:18:22 fafnir backups: Put:
> /tmp/duplicity-B8z5vS-tempdir/mktemp-HfU6lV-7 -> [folder
> redacted]/duplicity-full.20200123T060005Z.vol362.difftar.gpg
>
> Jan 29 14:18:25 fafnir backups: Backtrace of previous error: Traceback
> (innermost last):
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 369, in
> inner_retry
>
> Jan 29 14:18:25 fafnir backups:    return fn(self, *args)
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 529, in
> put
>
> Jan 29 14:18:25 fafnir backups:    self.__do_put(source_path,
> remote_filename)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 515, in
> __do_put
>
> Jan 29 14:18:25 fafnir backups:    self.backend._put(source_path,
> remote_filename)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib64/python2.7/site-packages/duplicity/backends/b2backend.py", line
> 121, in _put
>
> Jan 29 14:18:25 fafnir backups:
> progress_listener=progress_listener_factory())
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/logfury/v0_1/trace_call.py", line 84, in
> wrapper
>
> Jan 29 14:18:25 fafnir backups:    return function(*wrapee_args,
> **wrapee_kwargs)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/bucket.py", line 537, in
> upload_local_file
>
> Jan 29 14:18:25 fafnir backups:    progress_listener=progress_listener
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/logfury/v0_1/trace_call.py", line 84, in
> wrapper
>
> Jan 29 14:18:25 fafnir backups:    return function(*wrapee_args,
> **wrapee_kwargs)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/bucket.py", line 593, in upload
>
>
> Jan 29 14:18:25 fafnir backups:    upload_source, file_name, content_type,
> file_info, progress_listener
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/bucket.py", line 677, in
> _upload_large_file
>
> Jan 29 14:18:25 fafnir backups:    part_sha1_array =
> [interruptible_get_result(f)['contentSha1'] for f in part_futures]
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/utils.py", line 41, in
> interruptible_get_result
>
> Jan 29 14:18:25 fafnir backups:    return future.result(timeout=1.0)
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/concurrent/futures/_base.py", line 429,
> in result
>
> Jan 29 14:18:25 fafnir backups:    return self.__get_result()
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/concurrent/futures/thread.py", line 62,
> in run
>
> Jan 29 14:18:25 fafnir backups:    result = self.fn(*self.args,
> **self.kwargs)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/bucket.py", line 765, in
> _upload_part
>
> Jan 29 14:18:25 fafnir backups:    HEX_DIGITS_AT_END, hashing_stream
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/raw_api.py", line 545, in
> upload_part
>
> Jan 29 14:18:25 fafnir backups:    return
> self.b2_http.post_content_return_json(upload_url, headers, data_stream)
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/b2http.py", line 297, in
> post_content_return_json
>
> Jan 29 14:18:25 fafnir backups:    response =
> _translate_and_retry(do_post, try_count, post_params)
>
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/b2http.py", line 119, in
> _translate_and_retry
>
> Jan 29 14:18:25 fafnir backups:    return _translate_errors(fcn,
> post_params)
>
> Jan 29 14:18:25 fafnir backups:  File
> "/usr/lib/python2.7/site-packages/b2sdk/b2http.py", line 69, in
> _translate_errors
>
> Jan 29 14:18:25 fafnir backups:    if isinstance(e1,
> requests.packages.urllib3.exceptions.MaxRetryError):
>
> Jan 29 14:18:25 fafnir backups: AttributeError: 'module' object has no
> attribute 'packages'
>
> Jan 29 14:18:55 fafnir backups: Writing
> duplicity-full.20200123T060005Z.vol362.difftar.gpg
>
>
> Jan 29 14:18:55 fafnir backups: Put:
> /tmp/duplicity-B8z5vS-tempdir/mktemp-HfU6lV-7 -> [folder
> redacted]/duplicity-full.20200123T060005Z.vol362.difftar.gpg
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~duplicity-team
> Post to     : duplicity-team@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~duplicity-team
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.