-
Notifications
You must be signed in to change notification settings - Fork 189
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
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses #1517
Comments
Hmm... so this isn't immediately refactorable? Let me read the Yet more reasons to switch away from this rewriting of the import paths thing... |
I'm sure there's a way, just not immediately obvious. |
Yeah I just tried hacking away at it -- not immediately obvious to me either. The python docs to importlib and importlib.util come with a bunch of recipes and examples but none of them really works to do what we want. Will look into this more... The real solution is to just do away with this hacky rewriting of dirs... but it requires going into all the build scripts and other assorted odds and ends and making sure they don't break... so it's an annoying task.. :/ |
Worth noting: recent discussion on deprecation schedules suggests python 3.10 will be the first to have https://www.python.org/dev/peps/pep-0594/#imp Given 3.8 and 3.9 release schedules, we could guess that 3.10 will come out in March 2021. Hard to say for sure, could be much later than that. |
Ah coo. Thanks for the info. Well, given that we are still on 3.6 officially -- and even the odd person won't be installing 3.10 until 2021 at the earliest -- I'll backlog this. This is more a nit than anything -- it would be nice to remove the imp module stuff altogether but it's annoying little work that takes like 4 hours to get right and test. |
See also #807. |
As of Python 3.7 or thereabouts, we get this warning on startup:
Electron-Cash/electron-cash
Lines 94 to 99 in 9582741
It's a bit annoying to refactor these lines using
importlib
because we rename the modules.The text was updated successfully, but these errors were encountered: