Python MissingURLMapping:在应用程序配置中找不到URLMap条目

Python MissingURLMapping:在应用程序配置中找不到URLMap条目,python,google-app-engine,google-cloud-endpoints,Python,Google App Engine,Google Cloud Endpoints,我是GAE开发的新手,我刚刚创建了一个简单的API,但我无法运行我的应用程序,因为我不断收到错误在应用程序配置中找不到URLMap条目 这是我的app.yaml文件 这是我的main.py文件,我在其中声明了api\u server变量 from google.appengine.ext import endpoints import api api_server = endpoints.api_server([api.GW2Service]) GW2Service从remote.Serv

我是GAE开发的新手,我刚刚创建了一个简单的API,但我无法运行我的应用程序,因为我不断收到错误在应用程序配置中找不到URLMap条目

这是我的app.yaml文件

这是我的main.py文件,我在其中声明了api\u server变量

from google.appengine.ext import endpoints

import api

api_server = endpoints.api_server([api.GW2Service])
GW2Service从remote.Service继承

编辑我正在使用命令行工具(Ubuntu 12.04)

哪里错了

提前谢谢。埃里克~H

  • 您是从应用程序还是命令行启动服务器
  • 尝试使用“导入端点”,而不是从。。。导入端点
  • 在app.yaml中,将端点版本设置为最新版本
  • 将GW2Service移到main.py并测试服务器是否正常。问题可能由文件名“api”产生
  • from google.appengine.ext import endpoints
    
    import api
    
    api_server = endpoints.api_server([api.GW2Service])