2011/07/09
GAE/GO、今度はLinuxにするも...
GAE/GO を試そうとして FreeBSD で挫折したので
VirtualBox に ubuntu/11 を入れて試して見ることにした。
ここから最新版を落し直す。
$ export PATH=~/google_appengine:$PATH
$ python2.5 dev_appserver.py demos/helloworld/
WARNING 2011-07-09 00:24:46,648 urlfetch_stub.py:108] No ssl package found. urlfetch will not be able to validate SSL certificates.
INFO 2011-07-09 00:24:46,939 appengine_rpc.py:159] Server: appengine.google.com
WARNING 2011-07-09 00:24:46,948 datastore_file_stub.py:511] Could not read datastore data from /tmp/dev_appserver.datastore
INFO 2011-07-09 00:24:46,950 rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/tmp/dev_appserver.rdbms'
WARNING 2011-07-09 00:24:46,964 dev_appserver.py:4700] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
INFO 2011-07-09 00:24:46,991 dev_appserver_multiprocess.py:637] Running application helloworld on port 8080: http://localhost:8080
INFO 2011-07-09 00:24:56,838 __init__.py:324] building _go_app
INFO 2011-07-09 00:24:59,405 __init__.py:316] running _go_app
INFO 2011-07-09 00:24:59,584 dev_appserver.py:4217] "GET / HTTP/1.1" 200 -
ローカルでの動作を確認。
$ python2.5 appcfg.py update demos/counter/
Application: app-id; version: 1
Host: appengine.google.com
Starting update of app: app-id, version: 1
Scanning files on local disk.
Error 400: --- begin server output ---
Invalid runtime or the current user is not authorized to use it.
--- end server output ---
ググったら signup しろとのコメント。
Access to Go runtime in Google App Engine
We are no longer accepting Trusted Testers.
We will make access to the Go runtime more widely
available in the near future.
Thank you for your interest in using Go in Google App Engine!
ガビーン。完全に出遅れてるじゃん。
GO の spin-up 時間が知りたかったのだが.. ローカル環境じゃ意味無いし。
だれかテスターになれた人教えてください。
- http://code.google.com/intl/en/appengine/downloads.html
- http://99blues.dyndns.org/blog/2011/06/install_python_2-5/
- http://groups.google.com/group/google-appengine/browse_thread/thread/7f5fe4b86a87a491
2011/05/22
FreeBSDのGAE/GOで挫折
GAE の Google GO SDK が出ていたので FreeBSD で試してみようとしたが
あえなく挫折。
日本語のDLページにはまだリンクも無いので英語ページに行ってください。
http://code.google.com/intl/en/appengine/downloads.html
http://code.google.com/intl/en/appengine/docs/go/gettingstarted/
FreeBSD版のバイナリが無いので Linux版を落してしてみた。
GettindStart にしたがって hello.go とか作って動かしてみるもエラーに。
ERROR 2011-05-22 05:03:37,463 dev_appserver.py:4153] Exception encountered handling request
Traceback (most recent call last):
File "/opt/google_appengine-go1.5.0/google/appengine/tools/dev_appserver.py", line 4096, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/opt/google_appengine-go1.5.0/google/appengine/tools/dev_appserver.py", line 4020, in _Dispatch
base_env_dict=env_dict)
File "/opt/google_appengine-go1.5.0/google/appengine/tools/dev_appserver.py", line 594, in Dispatch
base_env_dict=base_env_dict)
File "/opt/google_appengine-go1.5.0/google/appengine/tools/dev_appserver.py", line 3093, in Dispatch
self._module_dict)
File "/opt/google_appengine-go1.5.0/google/appengine/tools/dev_appserver.py", line 2945, in ExecuteCGI
env, infile, outfile)
File "/opt/google_appengine-go1.5.0/google/appengine/ext/go/__init__.py", line 318, in execute_go_cgi
GO_APP.make_and_run()
File "/opt/google_appengine-go1.5.0/google/appengine/ext/go/__init__.py", line 281, in make_and_run
wait_until_go_app_ready()
File "/opt/google_appengine-go1.5.0/google/appengine/ext/go/__init__.py", line 229, in wait_until_go_app_ready
raise Exception('unable to start ' + GO_APP_NAME)
Exception: unable to start _go_app
なんじゃらほいと思って調べてたら core 吐いてるし.. orz
-rw------- 1 user users 8704000 5 22 14:03 _go_app.core
-rw-rw-r-- 1 user users 114 5 22 14:14 app.yaml
drwxr-xr-x 2 user users 512 5 22 13:01 hello/
FreeBSD用の go 自体は ports の lang/go に有るのだけど
コンパイルして見たところ SDK には go-app-builder 等の
バイナリのコマンドが有って物が違うみたい。
正直、そこまで強い興味がある訳でもないので放置!!
まあ Linix でやればすんなり行くでしょ。
まあ Linix でやればすんなり行くでしょ。