-
Notifications
You must be signed in to change notification settings - Fork 808
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
Deprecation warning about imp module #1256
Comments
same happening to me here today, during a
|
the problem still occurs with |
Happening with pytest when filterwarnings is set to error: https://ci.appveyor.com/project/CherryPy/cherrypy/builds/27163909/job/0r572kw6vx6g88a6?fullLog=true#L512 |
Without rewriting the existing code, we'd have to find importLibs equivalents to imps "C_EXTENSION, load_module, load_dynamic, and get_suffixes" functions and keywords. Most of these are found in the loop that deals with handling non-windows systems (all except for the load_module). So if you are always running on windows, comment this section out, and replace the with the alternative for load_dynamic. I believe that these might work (not tested): I'm getting the warning mentioned above when importing win10toast which uses pywin32. However, this file must not be crucial to win10toast, because I can simply remove imp from the import statements, the warning is removed, and everything still runs fine (in otherwords, pywintypes.py is never called). Until the win32 developers find alternatives for the current imp functions and keywords, this may be a temporary fix for you too. |
See mhammond/pywin32#1256 (cherry picked from commit 732ca70)
See mhammond/pywin32#1256 (cherry picked from commit 732ca70)
What is the ETA on this issue to be resolved? |
When using projects that rely on pywin32 I get a deprecation warning:
I am using pywin32 from the conda-forge conda channel.
The text was updated successfully, but these errors were encountered: