Skip to content

Maybe not working on 3.12 #79

@wastemans

Description

@wastemans

Hi "J",

I've read you're not working on this anymore, but I do, and I just had an issue with it that I fixed without knowing any python.

It was this error:

$ dotfiles -l                                                                                                                                                                                                                                            
Traceback (most recent call last):                                                                                                                                                                                                                                       
  File "/home/MYUSERNAME/projects/vpy/bin/dotfiles", line 8, in <module>                                                                                                                                                                                                          
    sys.exit(main())
             ^^^^^^
  File "/home/MYUSERNAME/projects/vpy/lib/python3.12/site-packages/dotfiles/cli.py", line 224, in main
    config_opts = parse_config(cli_opts.config_file or '~/%s' % CONFIG_FILE)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/MYUSERNAME/projects/vpy/lib/python3.12/site-packages/dotfiles/cli.py", line 150, in parse_config
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

So I changed line 150
from:
parser = configparser.SafeConfigParser()
to:
parser = configparser.RawConfigParser()

Seemed to make it work again.

If you're not going to work on this would you or anyone else know what I might migrate to?
I love having the change register on github for this kinda stuff and I've made this project my main home folder backup everywhere!

Cheers

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