【问题标题】:Unable to deploy to gae: "Unable to assign value 'America/Chicago' to attribute 'timezone'"无法部署到 gae:“无法将值 'America/Chicago' 分配给属性 'timezone'”
【发布时间】:2014-01-22 19:56:16
【问题描述】:

我以前可以部署,但我本地环境中的某些内容发生了变化。我与之合作的其他开发人员仍然可以从同一个 repo 部署,所以我知道它一定是我的 mac 上的东西,但我不知道是什么。部署实际上一直有效,直到更新 crons:

[localhost] local: appcfg.py --oauth2 --version=prod update_cron .
01:39 PM Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'America/Chicago' to attribute 'timezone':
timezone 'America/Chicago' is unknown
  in "./cron.yaml", line 5, column 13

Fatal error: local() encountered an error (return code 1) while executing 'appcfg.py --oauth2 --version=prod update_cron .'

Aborting.

cron.yaml:

cron:

- description: remove orphaned revisions

  url: /bible_importer/revisions/orphaned

  schedule: every day 04:00

  timezone: America/Chicago

  target: import

- description: remove orphaned fragment sets

  url: /bible_importer/fragments/orphaned

  schedule: every day 04:30

  timezone: America/Chicago

  target: import

提前致谢!

【问题讨论】:

标签: google-app-engine


【解决方案1】:

如果您查看GAE's SDK for crons,它正在使用 pytz 进行时区转换,这似乎在第一次调用 timezone() 时引发了您正在观看的异常 even when it doesn't find the module

似乎 [pytz 没有直接包含在 GAE 的 SDK 中] 因为它很重。

所以所有点to you having the need to install this lib independently

希望你能解决它。

【讨论】:

    猜你喜欢
    • 2019-04-30
    • 1970-01-01
    • 2018-12-07
    • 1970-01-01
    • 1970-01-01
    • 2020-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多