安装Picky时遇到的两个问题 1) GAE, 2) 配置文件

2010-08-29 05:07:39 +08:00
 FRHong
第一次对GAE进行尝试,准备试着把Picky和Bable在自己的域名下试装成功。这过程对于一个代码白痴来说难免有点艰辛,所以希望各位资深人士多多指教。

现在在Picky上遇到的问题有两个:

1)按照Livid的安装教程(http://picky.olivida.com/install),下载了ActivePython,还有GAE Launcher。安装了两者之后,运行GAE Launcher时遇到了以下错误信息:

[img]http://i36.tinypic.com/29usg88.png[/img]

请问具体是哪里出错,而且应该怎么解决?


2)在Livid的教程上有一句“在解开的文件夹中,将 app.yaml.example 复制为 app.yaml,修改其中的 App ID,改成你自己的",我用Notepad++打开app.yam之后并没有找到“App ID”的字样。请问具体是应该修改哪一个值呢?


谢谢了!
11155 次点击
所在节点    Project Picky
18 条回复
Livid
2010-08-29 05:08:52 +08:00
关于 2,就是修改 application: 后面的那个字符串。
FRHong
2010-08-29 05:10:10 +08:00
谢谢你的秒回,Livid。
还有,在这里怎么插图啊?
Livid
2010-08-29 05:22:59 +08:00
可以把图片发到 img.ly 上,然后贴 img.ly 网址即可。
FRHong
2010-08-29 05:33:00 +08:00
OK. 顶楼截图为:
http://img.ly/1Z0R
Livid
2010-08-29 05:39:45 +08:00
应该是因为没有找到 python.exe,这个可执行文件的所在目录是否在系统变量 PATH 里呢?
FRHong
2010-08-29 05:57:14 +08:00
-.-ll

请原来。在ActivePython那边下载错了。下载成“activeperl”。刚刚将其删除,把ActivePython安装。现在打开GAE Launcher没有问题了。

请原谅!
Livid
2010-08-29 05:58:20 +08:00
:P
FRHong
2010-08-29 06:21:27 +08:00
再问~

似乎部署成功了。
http://richpicky.appspot.com 可以看到HelloWorld
但是http://richpicky.appspot.com/writer页面是Blank的……
Livid
2010-08-29 06:26:19 +08:00
貌似你部署的不是 Picky,是 App Engine 的默认的 example app。
FRHong
2010-08-29 06:44:51 +08:00
成功了!

原来刚才在GAE Launcher 的 Application Settings 里面的 Parent Directory 里,应该选择上一级的文件,而且不是picky本身这个文件夹。

:)

兴奋ing.... another toy to play.
CupTools
2010-08-29 06:55:47 +08:00
怎么装完picky这个样子:
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/base/data/home/apps/jerry-picky/1.344412336715320689/main.py", line 52, in get
template_values['articles_total'] = articles.count()
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1818, in count
result = raw_query.Count(limit=limit, rpc=rpc)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1275, in Count
iterator = self._Run(limit=0, offset=offset, **kwargs)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1188, in _Run
str(exc) + '\nThis query needs this index:\n' + yaml)
NeedIndexError: no matching index found.
This query needs this index:
- kind: Article
properties:
- name: is_page
- name: created
direction: desc
Livid
2010-08-29 07:04:31 +08:00
需要等待 Google 为新应用构建索引。
gonbo
2010-08-29 07:07:28 +08:00
手工可以建index
CupTools
2010-08-29 07:10:05 +08:00
@gonbo 如?
gonbo
2010-08-29 20:19:24 +08:00
请察看帮助,

appcfg.py update_indexes
bullock
2010-09-22 10:59:10 +08:00
@FRHong 遇到同样的情况 “hello world”
chenuny
2010-10-17 23:08:05 +08:00
http://oraclepicky.appspot.com/writer

怎么访问不了后台的?

我只是修改了app.yaml的App ID为自己的App ID和auth.py的sha1值。
zaojangkn
2011-04-23 18:56:38 +08:00
主页可以上了,但http://域名/writer/overview出现这样的错误
Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
怎么解决啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/2125

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX