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

UM/PluginRegistry.py:4: DeprecationWarning: the imp module is deprecated... #765

Closed
hroncok opened this issue Jan 3, 2022 · 3 comments
Closed

Comments

@hroncok
Copy link
Contributor

hroncok commented Jan 3, 2022

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
@hroncok hroncok changed the title /usr/lib/python3.10/site-packages/UM/PluginRegistry.py:4: DeprecationWarning: the imp module is deprecated... UM/PluginRegistry.py:4: DeprecationWarning: the imp module is deprecated... Jan 3, 2022
@Ghostkeeper
Copy link
Collaborator

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.

@hroncok
Copy link
Contributor Author

hroncok commented Jul 9, 2023

This was actually removed from Python 3.12.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 5, 2023

Fixed in #915

@hroncok hroncok closed this as completed Dec 5, 2023
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

No branches or pull requests

2 participants