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

SafeConfigParser was Removed in Python 3.12 #76

Open
doncato opened this issue Aug 21, 2024 · 0 comments
Open

SafeConfigParser was Removed in Python 3.12 #76

doncato opened this issue Aug 21, 2024 · 0 comments
Assignees
Milestone

Comments

@doncato
Copy link

doncato commented Aug 21, 2024

The zeyple script currently does not work in python 3.12 (which is for example the shipped python Version in Ubuntu 24.04)

For me I only seem to encountered the following issue: ImportError: cannot import name 'SafeConfigParser' from 'configparser'

The docs state, that since Python version 3.12:

configparser no longer has a SafeConfigParser class. Use the shorter ConfigParser name instead.

(Source: https://docs.python.org/3.12/whatsnew/3.12.html#configparser)

A possible solution / workaround could be to change Line 17 in zeyple.py to be something like:

from configparser import ConfigParser as SafeConfigParser  # Python 3.12

instead. Although this is a bit hacky and will make it incompatible to older python3 versions, so maybe another try block would make more sense

@infertux infertux self-assigned this Aug 29, 2024
@infertux infertux added this to the 2.0 milestone Aug 29, 2024
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

2 participants