sanic-org / sanic-openapi

Easily document your Sanic API with a UI
https://sanic-openapi.readthedocs.io/
MIT License
505 stars 108 forks source link

can not import openapi2_blueprint from sanic_openapi #227

Closed BadReese closed 3 years ago

BadReese commented 3 years ago

Describe the bug can not import openapi2_blueprint from sanic_openapi, why?

Screenshots from sanic_openapi import openapi2_blueprint ImportError: cannot import name 'openapi2_blueprint' from 'sanic_openapi' (/Users//miniconda3/envs/demo/lib/python3.8/site-packages/sanic_openapi/__init__.py)

To Reproduce Your code snippet or steps to reproduce the bug.

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

Additional context Add any other context about the problem here. This might be how to fix this bug or some hint to fix it.

ahopkins commented 3 years ago

There's a bunch of changes that need to be released. Probably this weekend.

chenshigithub commented 3 years ago
from .openapi2 import doc, openapi2_blueprint

ModuleNotFoundError: No module named 'sanic_openapi.openapi2'