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 Compatibility #223

Draft
wants to merge 4 commits into
base: 0.8.x
Choose a base branch
from
Draft

Python 3.12 Compatibility #223

wants to merge 4 commits into from

Conversation

abacon118
Copy link

Used suggestion from Microsoft Copilot to allow instillation with Python 3.12.

Fortunately, there’s a workaround to address this issue:
Download the plugin zip file from the GitHub repository (or wherever it’s hosted).
Unzip the file.
Edit the versioneer.py file (you can use a text editor like Notepad++).
Change the following lines:
From: parser = configparser.SafeConfigParser()
To: parser = configparser.ConfigParser()
And: parser.readfp(f)
To: parser.read_file(f)
Save your changes.
Re-zip the entire folder.
Use the OctoPrint plugin file upload installer to install the modified zip file.

From Microsoft Copilot

Fortunately, there’s a workaround to address this issue:
Download the plugin zip file from the GitHub repository (or wherever it’s hosted).
Unzip the file.
Edit the versioneer.py file (you can use a text editor like Notepad++).
Change the following lines:
From: parser = configparser.SafeConfigParser()
To: parser = configparser.ConfigParser()
And: parser.readfp(f)
To: parser.read_file(f)
Save your changes.
Re-zip the entire folder.
Use the OctoPrint plugin file upload installer to install the modified zip file.
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

Successfully merging this pull request may close these issues.

None yet

1 participant