22.04 duplicity backup failed with an exception!

Bug #1971655 reported by Teh Kok How
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Invalid
Undecided
Unassigned

Bug Description

Traceback (innermost last):
  File "/home/khteh/.local/bin/duplicity", line 87, in <module>
    with_tempdir(main)
  File "/home/khteh/.local/bin/duplicity", line 70, in with_tempdir
    fn()
  File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/dup_main.py", line 1564, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/commandline.py", line 1241, in ProcessCommandLine
    config.backend = backend.get_backend(args[0])
  File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backend.py", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backend.py", line 209, in get_backend_object
    return factory(pu)
  File "/home/khteh/.local/lib/python3.10/site-packages/duplicity/backends/pydrivebackend.py", line 36, in __init__
    import httplib2
  File "/home/khteh/.local/lib/python3.10/site-packages/httplib2/__init__.py", line 52, in <module>
    from . import auth
  File "/home/khteh/.local/lib/python3.10/site-packages/httplib2/auth.py", line 20, in <module>
    auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
 AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'

Teh Kok How (khteh)
tags: added: 22.04 backup duplicity
Teh Kok How (khteh)
description: updated
summary: - 22.04 duplicity backup failed!
+ 22.04 duplicity backup failed with an exception!
Revision history for this message
edso (ed.so) wrote :

well,

a simple web search for

> AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'

suggests that upgrading httplib2 to 0.20.2+ as it seems to be a bug in there.

see e.g.
https://stackoverflow.com/questions/69694833/frappe-installation-error-attributeerror-module-pyparsing-has-no-attribute
or
https://stackoverflow.com/questions/69694833/frappe-installation-error-attributeerror-module-pyparsing-has-no-attribute

Revision history for this message
Michael Terry (mterry) wrote :

Yeah, it looks like you have a custom duplicity & httplib2 install (in your user pip location: ~/.local). I'd say downgrade the library, wait for a fix, or remove the custom versions. I don't think this is a deja dup issue, so I'll close. But am happy to keep responding here to help resolve this.

Changed in deja-dup:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.