【问题标题】:Google App Engine and Google Earth Engine in WindowsWindows 中的 Google App Engine 和 Google Earth Engine
【发布时间】:2018-01-20 23:09:00
【问题描述】:

我正在尝试使用带有 Google Earth Engine 应用的时尚灯光示例来测试带有 Google App Engine 的基本应用。

我从 GEE github 存储库中克隆了 Trendy-lights 应用程序,并更新了 app.yaml 中的应用程序名称、config.py 中的 EE_ACCOUNT 和 privatekey.pem 文件。我没有做任何其他改变。但是,时尚灯应用程序不起作用。

我试图在 MS Windows 7 上运行它,当我运行它时出现错误错误:服务器错误 服务器遇到错误,无法完成您的请求。 请在 30 秒后重试。

我查看了示例,我可以看到人们通过 Linux 而不是 Windows 来实现这一点。有人搞定了吗?

【问题讨论】:

    标签: google-app-engine google-earth-engine


    【解决方案1】:

    您至少需要发布一些日志。

    确保您的帐户已列入白名单:https://developers.google.com/earth-engine/service_account#register-the-service-account-to-use-earth-engine

    我也无法在 Windows 上获得当前版本的 Trendy-lights,它需要 bash 来安装要求 (build.sh)。但是即使在安装了所有要求之后它也不起作用,看起来oauth2client 需要更多的库。我认为在 flex 应用引擎环境中处理依赖关系更容易。

    ...我添加了一个 PowerShell 脚本来安装 Trendy-lights 依赖项,您可以在此处找到该脚本:https://github.com/gena/earthengine-api/blob/master/demos/trendy-lights/build.ps1

    然后,确保您已安装最新版本的 gcloud 工具和所有必需的应用引擎扩展 (https://cloud.google.com/appengine/docs/standard/python/download)。另外,请确保您使用 Python 2.7,我认为 dev_appserver.py 需要这样做。使用 Anaconda 时,您可以为此创建 Python 2.7 的新环境。

    【讨论】:

      猜你喜欢
      • 2018-04-28
      • 1970-01-01
      • 2013-03-09
      • 2018-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多