生成Open Api规范时出现Google App Engine错误

时间:2018-10-31 11:31:57

标签: python-2.7 google-app-engine google-cloud-platform swagger-2.0 openapi-generator

生成开放式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

0 个答案:

没有答案
相关问题