Uranium
Uranium copied to clipboard
UM/PluginRegistry.py:4: DeprecationWarning: the imp module is deprecated...
Just a heads up that I see the following warning on Python 3.10 when I start Cura 4.12.1:
/usr/lib/python3.10/site-packages/UM/PluginRegistry.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import imp
This warning has been there since Python 3.4 in fact. Since the start of Cura 2's development, when the plug-in system was introduced. They now give a targeted version when it will be removed in stead of just "in the future".
A long time ago we did try changing to importlib but didn't have a lot of success. It may be worth another try, but for the moment it doesn't give us any trouble yet. I think this'll be one of those things that we'll cross when we get there.
This was actually removed from Python 3.12.
Fixed in https://github.com/Ultimaker/Uranium/pull/915