swagger-py-codegen icon indicating copy to clipboard operation
swagger-py-codegen copied to clipboard

name "RefResolver" is not defined

Open ybbiubiubiu opened this issue 7 years ago • 2 comments

I get a unkown probleme. :

Traceback (most recent call last): File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/init.py", line 8, in import v1 File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/v1/init.py", line 6, in from .routes import routes File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/v1/routes.py", line 11, in from .api.pets import Pets File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/v1/api/init.py", line 8, in from ..validators import request_validate, response_filter File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/v1/validators.py", line 24, in from .schemas import ( File "/Users/yangbin/Desktop/swagger-py-codegen/example-app/demo/v1/schemas.py", line 31, in resolver = RefResolver.from_schema(definitions) NameError: name 'RefResolver' is not defined..

please tell me how i can solve this?

ybbiubiubiu avatar Dec 03 '18 01:12 ybbiubiubiu

have you solve it? I have the same problem

KevinTao24 avatar Feb 25 '20 03:02 KevinTao24

have you solve it? I have the same problem

nope

ybbiubiubiu avatar Feb 25 '20 04:02 ybbiubiubiu