file prefix not working in python 3

Bug #1842041 reported by Yajo on 2019-08-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Undecided
Unassigned

Bug Description

- Install duplicity 0.8.03 under python 3.7.
- Make a backup using the options --file-prefix-archive, --file-prefix-manifest and --file-prefix-signature.
- You get an error.

Here's the error:

Traceback (innermost last):
  File "/usr/local/bin/duplicity", line 101, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 87, in with_tempdir
    fn()
  File "/usr/local/lib/python3.7/site-packages/duplicity/dup_main.py", line 1533, in main
    do_backup(action)
  File "/usr/local/lib/python3.7/site-packages/duplicity/dup_main.py", line 1555, in do_backup
    action).set_values()
  File "/usr/local/lib/python3.7/site-packages/duplicity/dup_collections.py", line 738, in set_values
    pr = file_naming.parse(local_filename)
  File "/usr/local/lib/python3.7/site-packages/duplicity/file_naming.py", line 413, in parse
    pr = check_full()
  File "/usr/local/lib/python3.7/site-packages/duplicity/file_naming.py", line 323, in check_full
    prepare_regex()
  File "/usr/local/lib/python3.7/site-packages/duplicity/file_naming.py", line 64, in prepare_regex
    full_vol_re = re.compile(b"^" + globals.file_prefix + globals.file_prefix_archive + b"duplicity-full"
 TypeError: can't concat str to bytes

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints