flask-autodoc icon indicating copy to clipboard operation
flask-autodoc copied to clipboard

ExtDeprecationWarning: Importing flask.ext.autodoc is deprecated

Open fraoustin opened this issue 8 years ago • 5 comments

I have a message with flask 1.10

/usr/local/lib/python3.4/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.autodoc is deprecated, use flask_autodoc instead.

I test replace in init.py

from flask.ext.autodoc.autodoc import Autodoc

by

from flask_autodoc.autodoc import Autodoc

And is ok. Can you modify your code ? Thank you for module

fraoustin avatar Aug 07 '16 08:08 fraoustin

Seems like this repo is not supported yet. I use this solution to disable this warning:

import warnings
# disable autodoc internal Warning
# https://github.com/acoomans/flask-autodoc/issues/27
from flask.exthook import ExtDeprecationWarning
warnings.simplefilter('ignore', ExtDeprecationWarning)

# flask imports

klpx avatar Sep 02 '16 04:09 klpx

@acoomans, in the meantime (starting with flask 1.0) this is no longer a warning but an error which hits many open source projects, so a fix and a new release would be very welcome.

stweil avatar Sep 06 '18 06:09 stweil

Any progress on this?

LrsK avatar Dec 17 '18 14:12 LrsK

3 years later still not fixed, don't expect that much imho. Downgrading Flask versions doesn't seem a solution for me.

erm3nda avatar Sep 15 '21 16:09 erm3nda

@erm3nda There is a drop-in replacement for Autodoc called Selfdoc I have been using it for a while and it works fine.

LrsK avatar Sep 15 '21 17:09 LrsK