cp2004 / OctoPrint-WS281x_LED_Status

Add some RGB LEDs to your printer for a quick status update!
https://plugins.octoprint.org/plugins/ws281x_led_status
GNU Affero General Public License v3.0
112 stars 26 forks source link

Python 3.12 Compatibility #223

Open abacon118 opened 5 months ago

abacon118 commented 5 months ago

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.