Skip to content

AttributeError: module 'configparser' has no attribute 'SafeConfigParser' #2066

@bam80

Description

@bam80
$ mackup list
Traceback (most recent call last):
  File "/usr/bin/mackup", line 33, in <module>
    sys.exit(load_entry_point('mackup==0.8.32', 'console_scripts', 'mackup')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/mackup/main.py", line 66, in main
    mckp = Mackup()
  File "/usr/lib/python3.13/site-packages/mackup/mackup.py", line 24, in __init__
    self._config = config.Config()
                   ~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/mackup/config.py", line 46, in __init__
    self._parser = self._setup_parser(filename)
                   ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/mackup/config.py", line 150, in _setup_parser
    parser = configparser.SafeConfigParser(allow_no_value=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

$ dnf5 info  mackup -C
Updating and loading repositories:
Repositories loaded.
Installed packages
Name            : mackup
Epoch           : 0
Version         : 0.8.32
Release         : 13.fc41
Architecture    : noarch
Installed size  : 311.9 KiB
Source          : python-mackup-0.8.32-13.fc41.src.rpm
From repository : fedora
Summary         : Keep your application settings in sync
URL             : https://github.com/lra/mackup
License         : GPLv3
Description     : Mackup:
                : - Backs up your application settings in a safe directory (e.g. Dropbox)
                : - Syncs your application settings among all your workstations
                : - Restores your configuration on any fresh install in one command line
                : 
                : By only tracking pure configuration files, it keeps the cruft out of your
                : freshly new installed workstation (no cache, temporary and locally specific
                : files are transferred).
                : 
                : Mackup makes setting up the environment easy and simple, saving time for your
                : family, great ideas, and all the cool stuff you like.
Vendor          : Fedora Project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions