Swagger_py_codegen error TypeError

run the last open source project in GitHub, https://github.com/baidu/Curve

while using the. / control.sh start command, I encountered the following error.

Traceback (most recent call last):
  File "/Users/sx/PycharmProjects/Curve/venv/bin/swagger_py_codegen", line 11, in <module>
    sys.exit(generate())
  File "/Users/sx/PycharmProjects/Curve/venv/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/sx/PycharmProjects/Curve/venv/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/sx/PycharmProjects/Curve/venv/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/sx/PycharmProjects/Curve/venv/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
TypeError: generate() got an unexpected keyword argument "swagger"

troubleshooting should be an error when running the following command.

swagger_py_codegen --ui --spec -s doc/web_api.yaml api -p curve

but at present, I don"t know how to solve this problem. I looked up some information from the Internet, but I didn"t find a solution.

ask everyone, does anyone know what to do?
O ( _ ) O Thank you ~

Jul.28,2021
Menu