String formatting regression with 1.0.1
I have:
- ([x] when completed)
-
searched https://gitlab.com/duplicity/duplicity/-/issues for similar issues. If you find a similar issue and the issue is still open, add a comment to the existing issue instead of opening a new one. If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. -
tested that this issue still occurs on the latest stable snap (install instructions: https://snapcraft.io/duplicity), please include the snap version ( snap info duplicity | grep installed) output:installed: x.xx.xx (xx) -
ideally, tested that this issue still occurs on the latest edge snap, if you can test without risking your data. Please include the snap version output: installed: x.xx.xx (xx)
Summary
When LANG is set to cs_CZ.UTF-8, backup fails with unknown error and long traceback.
Environment
Fedora 37
duplicity 1.0.1
Steps to reproduce
- Start deja-dup with Czech localisation: $ LANG=cs_CZ.UTF-8 deja-dup
- Try to run backup via by clicking on "Zálohovat nyní" button.
What is the current bug behaviour?
Actual results: The process ends with following message (added translation after # character):
Zálohování se nezdařilo # Backup failed
Ukončeno s neznámou chybou # Exited with an unknown error
Traceback (innermost last):
File "/usr/bin/duplicity", line 87, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 70, in with_tempdir
fn()
File "/usr/lib64/python3.11/site-packages/duplicity/dup_main.py", line 1585, in main
do_backup(action)
File "/usr/lib64/python3.11/site-packages/duplicity/dup_main.py", line 1607, in do_backup
action).set_values()
^^^^^^^^^^^^
File "/usr/lib64/python3.11/site-packages/duplicity/dup_collections.py", line 725, in set_values
log.Debug(ngettext(u"%d file exists on backend",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: not all arguments converted during string formatting
What is the expected correct behaviour?
Backups work.