Datastore Remote-Access Interactive Python Console

23 views
Skip to first unread message

Ed

unread,
Mar 5, 2009, 2:55:16 AM3/5/09
to Google App Engine
Hi all,
Following Johnson's article "Accessing the datastore remotely with
remote_api", I tried to run appengine_console.py to create the
interactive console and connect to the datastore, but I am getting the
message "ImportError: No module named yaml" (see below).

C:\VPE_GAE>python appengine_console.py ecoknowmics
Traceback (most recent call last):
File "appengine_console.py", line 8, in <module>
from google.appengine.ext import db
File "C:\VPE_GAE\google\appengine\ext\db\__init__.py", line 88, in
<module>
from google.appengine.api import datastore
File "C:\VPE_GAE\google\appengine\api\datastore.py", line 47, in
<module>
from google.appengine.datastore import datastore_index
File "C:\VPE_GAE\google\appengine\datastore\datastore_index.py",
line 53, in <
module>
from google.appengine.api import validation
File "C:\VPE_GAE\google\appengine\api\validation.py", line 44, in
<module>
import yaml
ImportError: No module named yaml

C:\VPE_GAE>

Can someone please point me to where I can find this module?
Thank you.

Nick Johnson

unread,
Mar 5, 2009, 8:21:40 AM3/5/09
to Google App Engine
Hi Ed,

Allen Hutchinson has written an excellent blog post showing how to
work around this exact issue: http://allen.hutchison.org/2009/03/appengine-remoteapi-example-on-os-x.html

The long and the short of it is that App Engine bundles a copy of
PyYAML, and expects it to be present, but the path hack I presented in
the article doesn't include it. You can either follow Allen's
suggestion and modify the script, or you can install the PyYAML
module. If you have easy_install, that's as simple as "easy_install
pyyaml".

-Nick Johnson
Reply all
Reply to author
Forward
0 new messages