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

Python 3.12 SafeConfigParser -> ConfigParser #9

Open
dt8269 opened this issue Oct 31, 2024 · 0 comments
Open

Python 3.12 SafeConfigParser -> ConfigParser #9

dt8269 opened this issue Oct 31, 2024 · 0 comments

Comments

@dt8269
Copy link

dt8269 commented Oct 31, 2024

SafeConfigParser was removed in favor of ConfigParser.
Release Note: https://docs.python.org/3/whatsnew/3.12.html#configparser

Import Failure:

Traceback (most recent call last):
  File "/dev/shm/bazel-sandbox.40481ad92d78e30c6b3380b5cabc16a87cbf19629124376bff2c3633d6dc3e5d/linux-sandbox/6744/execroot/__main__/bazel-out/k8-fastbuild/bin/pip/iniherit/iniherit_cpython-312_import_test.runfiles/__main__/pip/iniherit/iniherit_cpython-312_import_test-wrapper.py", line 55, in <module>
    exec(code, module.__dict__)
  File "/dev/shm/bazel-sandbox.40481ad92d78e30c6b3380b5cabc16a87cbf19629124376bff2c3633d6dc3e5d/linux-sandbox/6744/execroot/__main__/bazel-out/k8-fastbuild/bin/pip/iniherit/iniherit_cpython-312_import_test.runfiles/__main__/build_tools/py/import_check.py", line 14, in <module>
    main()
  File "/dev/shm/bazel-sandbox.40481ad92d78e30c6b3380b5cabc16a87cbf19629124376bff2c3633d6dc3e5d/linux-sandbox/6744/execroot/__main__/bazel-out/k8-fastbuild/bin/pip/iniherit/iniherit_cpython-312_import_test.runfiles/__main__/build_tools/py/import_check.py", line 10, in main
    __import__(arg)
  File "/dev/shm/bazel-sandbox.40481ad92d78e30c6b3380b5cabc16a87cbf19629124376bff2c3633d6dc3e5d/linux-sandbox/6744/execroot/__main__/bazel-out/k8-fastbuild/bin/pip/iniherit/iniherit_cpython-312_import_test.runfiles/__main__/pip/iniherit/iniherit-cpython-312/lib/iniherit/__init__.py", line 9, in <module>
    from .parser import *
  File "/dev/shm/bazel-sandbox.40481ad92d78e30c6b3380b5cabc16a87cbf19629124376bff2c3633d6dc3e5d/linux-sandbox/6744/execroot/__main__/bazel-out/k8-fastbuild/bin/pip/iniherit/iniherit_cpython-312_import_test.runfiles/__main__/pip/iniherit/iniherit-cpython-312/lib/iniherit/parser.py", line 37, in <module>
    _real_SafeConfigParser = CP.SafeConfigParser
                             ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
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