生成开放式API规范时出现错误
当前工作目录的main.py
与端点CreditReportApi
命令
python lib/endpoints/endpointscfg.py get_openapi_spec main.CreditReportApi --
hostname *.appspot.com
-*
对应于项目名称
堆栈跟踪
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 31, in <module>
File "/Users/shubham/workspace/code/phoenix-dev/gae/default/lib/endpoints/_endpointscfg_impl.py", line 617, in main
args.callback(args)
File "/Users/shubham/workspace/code/phoenix-dev/gae/default/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
x_google_api_name=args.x_google_api_name)
File "/Users/shubham/workspace/code/phoenix-dev/gae/default/lib/endpoints/_endpointscfg_impl.py", line 308, in _GenOpenApiSpec
x_google_api_name=x_google_api_name)
File "/Users/shubham/workspace/code/phoenix-dev/gae/default/lib/endpoints/_endpointscfg_impl.py", line 185, in GenApiConfig
module = __import__(module_name, fromlist=base_service_class_name)
ImportError: No module named main