-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
PyImport_ReloadModule emits deprecation warning #84597
Comments
It appears as though PyImport_ReloadModule is importing the deprecated "imp" module. I integrated a newer version of Python into Unreal Engine 4, which internally calls this function for some of it's own modules. Normally a stray warning wouldn't be of much concern to me, but the process of "cooking" (converting raw assets to optimized/final assets) will fail if anything is written to stderr. This makes it impossible to package a copy of the game for testing or release without a workaround. I'm going to add a test to _testembed.c to verify my fix. Is this something that I should include in the Github PR? |
Yeah, that looks like an oversight. I've approved your PR. Thanks! |
Did you have a need for this to be fixed in 3.8 or earlier? This seems reasonably and simple enough to backport. I suppose someone could be relying on an implicit import of the "imp" module, but that seems highly unlikely and suspect anyway. :) |
We have a fairly straightforward workaround of using the "warnings" module Unreal, however, follows the VFX Reference Platform ( On Fri, May 1, 2020 at 8:22 AM Eric Snow <report@bugs.python.org> wrote:
|
This can't be backported cleanly. If you're up for making PRs for 3.8 and 3.7, Robert, we can look at applying them. |
Thanks for all your hard work, Robert! |
No problem! Happy to contribute where I can :) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: