I bet its a character set problem like I had: See here: http://groups.google.com/group/google-wave-api/browse_thread/thread/a0f8dce4122ed145/be5b3b43ec82db56?#be5b3b43ec82db56
I had to delete a bunch of what looked like blank spaces and then finally the offending character was found and it ran correctly. James On Nov 30, 2:49 pm, rgibson <rgib...@astro.washington.edu> wrote: > Sorry for such a noob question, but I've done a lot of searching and > can't figure out how this is supposed to work. Basically, I tried to > create the tutorial python robot, and it doesn't work. (I can't read > the capabilities.xml on appserver, for example.) > > Here's my code, all in one directory: > ** app.yaml ** > application: sylowrobotzero > version: 1 > runtime: python > api_version: 1 > > handlers: > - url: /_wave/.* > script: sylowRobotZero.py > - url: /assets > static_dir: assets > > **sylowRobotZero.py** > from waveapi import events > from waveapi import model > from waveapi import robot > > def OnParticipantsChanged(properties, context): > """Invoked when any participants have been added/removed.""" > added = properties['participantsAdded'] > for p in added: > Notify(context) > > def OnRobotAdded(properties, context): > """Invoked when the robot has been added.""" > root_wavelet = context.GetRootWavelet() > root_wavelet.CreateBlip().GetDocument().SetText("I'm alive!") > > def Notify(context): > root_wavelet = context.GetRootWavelet() > root_wavelet.CreateBlip().GetDocument().SetText("Hi everybody!") > > if __name__ == '__main__': > myRobot = robot.Robot('appName', > image_url='http://appName.appspot.com/ > icon.png', > version='1', > profile_url='http://appName.appspot.com/') > myRobot.RegisterHandler( > events.WAVELET_PARTICIPANTS_CHANGED, OnParticipantsChanged) > myRobot.RegisterHandler( > events.WAVELET_SELF_ADDED, OnRobotAdded) > myRobot.Run() > > I upload it to appengine thusly: > myhost: ~/work/google_appengine/appcfg.py update . > Application: sylowrobotzero; version: 1. > Server: appengine.google.com. > Scanning files on local disk. > Initiating update. > Cloning 1 application file. > Deploying new version. > Checking if new version is ready to serve. > Will check again in 1 seconds. > Checking if new version is ready to serve. > Will check again in 2 seconds. > Checking if new version is ready to serve. > Will check again in 4 seconds. > Checking if new version is ready to serve. > Closing update: new version is ready to start serving. > > But when I try to > accesshttp://sylowrobotzero.appspot.com/_wave/capabilities.xml, > I get a "500" Server Error. > > Looking at the appengine logs, I see copies of this message: > # > > 1. > 11-30 02:32PM 04.888 /_wave/capabilities.xml 500 64ms 82cpu_ms > 0kb Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/ > 20091102 Firefox/3.5.5,gzip(gfe) > See details > > 128.95.99.12 - - [30/Nov/2009:14:32:04 -0800] "GET /_wave/ > capabilities.xml HTTP/1.1" 500 0 - "Mozilla/5.0 (X11; U; Linux i686 > (x86_64); en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,gzip(gfe)" > "sylowrobotzero.appspot.com" > > 2. > E 11-30 02:32PM 04.950 > > <type 'exceptions.ImportError'>: No module named waveapi > Traceback (most recent call last): > File "/base/data/home/apps/sylowrobotzero/1.338126598071530938/ > sylowRobotZero.py", line 1, in <module> > from waveapi import events > > I've seen people having "waveapi" problems, but I don't know what the > solution is. > > Can anyone explain what I should be doing? > > Thanks, > Rob -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.