The imp module is deprecated in favour of importlib;
See original GitHub issueIt seems this line needs to be updated:
File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imp.py", line 31, in <module>
warnings.warn("the imp module is deprecated in favour of importlib; "
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
produced using: PYTHONWARNINGS=error
in a flask project that uses flasgger.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8
Top Results From Across the Web
imp module is deprecated in favour of importlib - Stack Overflow
Open the file with editing privileges named cloudpickle.py which is present at this location \sklearn\externals\joblib\externals\cloudpickle\ ...
Read more >DeprecationWarning: the imp module is deprecated in favour ...
It seems that there are a total of 10 (6+4) imp+importlib uses. Generally speaking, they're used for 2 objectives: Importing test cases that...
Read more >imp — Access the import internals — Python 3.11.1 ...
Deprecated since version 3.4, will be removed in version 3.12: The imp module is deprecated in favor of importlib . ... Return the...
Read more >the imp module is deprecated in favour of importlib : PY-33279
Doctest - DeprecationWarning: the imp module is deprecated in favour of importlib ; Priority, Normal N ; Type, Bug ; State, Duplicate D...
Read more >the imp module is deprecated in favour of importlib; see the ...
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp I am not sure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Using
pytest
I get:Edit:
imp
is being used in this line:https://github.com/flasgger/flasgger/blob/ce98b046cbec2b2eb8c6de6df4b5409c06a8e539/flasgger/utils.py#L568
The
imp
docs say the following:I still get this warning on V0.9.5