You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configparser package bundled with python 3.12 no longer contains a SafeConfigParser export that your plugin depends on. Because of that it (along with a few other plugins) can no longer get installed on python 3.12.
The issue occurs in versioneer.py (which I'm sure you copied from the template) which contains this reference to the now-removed export. Replacing that with configparser.ConfigParser() partially solved the issue for me. After that one more pops up. On the line after a file is opened and readfp is called. readfp doesn't exist anymore. Instead, simply parser.read(setup_cfg) is enough and fixes the issue.
I think there's maybe 2 ways to fix this:
Look at what octoprint itself did and maybe try to make that work with this plugin (see their commit)
Just replace those two lines and wrap them in a bunch of if-not-defined-then-other-thing try-catches. Would be happy to create a PR for the latter.
The text was updated successfully, but these errors were encountered:
SanderRonde
changed the title
Install no longer works with a recent version of configparser
Install no longer works with python 3.12
May 13, 2024
The
configparser
package bundled with python 3.12 no longer contains a SafeConfigParser export that your plugin depends on. Because of that it (along with a few other plugins) can no longer get installed on python 3.12.The issue occurs in
versioneer.py
(which I'm sure you copied from the template) which contains this reference to the now-removed export. Replacing that withconfigparser.ConfigParser()
partially solved the issue for me. After that one more pops up. On the line after a file is opened andreadfp
is called.readfp
doesn't exist anymore. Instead, simplyparser.read(setup_cfg)
is enough and fixes the issue.I think there's maybe 2 ways to fix this:
The text was updated successfully, but these errors were encountered: