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

Support python 3.12+ #82

Open
guiguem opened this issue Sep 10, 2024 · 0 comments
Open

Support python 3.12+ #82

guiguem opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@guiguem
Copy link
Contributor

guiguem commented Sep 10, 2024

It seems that some modules like ConfigParser have changed with python3.12; when running t2kdm-config installed with python 3.12 I get:

❯ t2kdm-config
Traceback (most recent call last):
  File "/opt/homebrew/anaconda3/envs/my-dirac-env/bin/t2kdm-config", line 8, in <module>
    sys.exit(run_configuration_wizard())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/envs/my-dirac-env/lib/python3.12/site-packages/t2kdm/configuration.py", line 138, in run_configuration_wizard
    conf = load_config()
           ^^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/envs/my-dirac-env/lib/python3.12/site-packages/t2kdm/configuration.py", line 115, in load_config
    return Configuration(testpath, defaults=default_values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/envs/my-dirac-env/lib/python3.12/site-packages/t2kdm/configuration.py", line 64, in __init__
    self.load_config(filename)
  File "/opt/homebrew/anaconda3/envs/my-dirac-env/lib/python3.12/site-packages/t2kdm/configuration.py", line 70, in load_config
    parser = configparser.SafeConfigParser(self.defaults)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
@guiguem guiguem added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant