Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in v1.2.1 on Ubuntu 22.04 LTS: AttributeError: module 'collections' has no attribute 'MutableSet' #1259

Closed
jdrch opened this issue Jun 13, 2022 · 2 comments

Comments

@jdrch
Copy link

jdrch commented Jun 13, 2022

I'm getting the above error on this machine. Full error text:

Traceback (most recent call last):
  File "/usr/share/backintime/common/backintime.py", line 27, in <module>
    import config
  File "/usr/share/backintime/common/config.py", line 32, in <module>
    import tools
  File "/usr/share/backintime/common/tools.py", line 1802, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Any ideas?

@gsker
Copy link

gsker commented Jun 13, 2022

If you are not able to upgrade to a current version for some reason, you could try this workaround:
#1245 (comment)

In common/tools.py change line 1805 (or thereabouts) from
class OrderedSet(collections.MutableSet):
to
class OrderedSet(collections.abc.MutableSet):

@gsker
Copy link

gsker commented Jun 13, 2022

Duplicate of #1245

@emtiu emtiu closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants