Skip to content

Issue with vit 2.3.1 and Python 3.12.3 #355

@akastos-s

Description

@akastos-s

Describe the bug
Errormessage:

Traceback (most recent call last):
  File "/usr/bin/vit", line 33, in <module>
    sys.exit(load_entry_point('vit==2.3.1', 'console_scripts', 'vit')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vit/command_line.py", line 5, in main
    Application(options, filters)
  File "/usr/lib/python3.12/site-packages/vit/application.py", line 77, in __init__
    self.load_early_config()
  File "/usr/lib/python3.12/site-packages/vit/application.py", line 107, in load_early_config
    self.config = ConfigParser(self.loader)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vit/config_parser.py", line 103, in __init__
    self.config = configparser.SafeConfigParser()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

It seems, SafeConfigParser has to be replaced with ConfigParser (?).

To Reproduce
Start vit version 2.3.1 with Python version 3.12.3 and Taskwarrior version 3.0.2 (as it is the situation in Arch Linux).

Expected behavior
Vit starts without error.

Test case
If reproducing your issue requires any TaskWarrior setup, please produce a test case script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions