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

no attribute SafeConfigParser #20

Open
OboTheHobo opened this issue Nov 20, 2023 · 1 comment
Open

no attribute SafeConfigParser #20

OboTheHobo opened this issue Nov 20, 2023 · 1 comment

Comments

@OboTheHobo
Copy link

OboTheHobo commented Nov 20, 2023

Possible issue with deprecation? Not entirely sure.

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/__main__.py", line 6, in <module>
    from .actions import ActionRegistry
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/actions/__init__.py", line 1, in <module>
    from ..action import ActionRegistry
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/action.py", line 1, in <module>
    from .config import add_controller_option
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/config.py", line 84, in <module>
    class Config(configparser.SafeConfigParser):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Worked fine a month or two ago, now I get this when I try and run the program.

@OboTheHobo
Copy link
Author

Replacing SafeConfigParser with ConfigParser fixes the issue. Opened a pull request for the change.

Worth noting that I think that change makes it incompatible with Python 2.X.

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

1 participant