adds python 3.7 compatibility #297
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I upgraded to Python 3.7 and I could not run your plug-in.
I got the following error: "Plugin Enclosure Plugin (4.13.1) is not compatible to Python 3.7.3 (compatibility string: >=2.7,<3)." But it does install fine with Python 3.7.
So I added just one line and it seems to work fine for me. I just use the DS18B20 as Temperature Sensor and I didn't test other features because I don't need them. But I don't get any issue or error with it by running Python 3.7. Hope that solves the issues of others that are upgrading to Python 3.7.
Found an issue within file_name = os.path.basename(payload["file"]). Not sure if it's related to Python 3 or new OctoPrint version
Have you tested all libraries and they still work on python 3?
Hello @vitormhenrique ,
my DS18B20 Temperature sensor works fine and my buttons. I select and add other things, but I can't really test them. But I don't get any errors for it that could lead to Python3 incompatibility - but I totally agree - this should be tested by someone who has the hardware to verify Python 3 compatibly :-).
Have you a 3D-Printer configuration with more Items to test it?
I like you're plug-in but I just use those things and they work now as they should with my Python 3 set-up.
I manually made the change from this merge request and it allows it to work on my new Pi 4 Install.
Thank you for the work involved in this. Is the upgrade downwards compatible, so may we expect the installed plugin to work with both Python 2 and Python 3? Will it be merged and available through the normal plugin-repository? If the single commit is all that is needed for 3.7 compatibility, I see no issues. Or are more changes needed?