same here. do i need to configure app.yaml?
mine app.yaml: application: chatsense version: 3 runtime: python api_version: 1 handlers: - url: /_wave/.* script: chatsense.py - url: /assets static_dir: assets On Oct 15, 10:37 pm, TheComedian <[email protected]> wrote: > same here. i have the same problem. I have "waveapi" folder in the > robot folder. doesn't quite work. someone knows a fix? in the app.yaml > file is there a need of change in the "api_version: 1" entry? my api > date is 20090916. > > thanks. > > On Oct 3, 7:00 am, Greg Tracy <[email protected]> wrote: > > > So I'm running into this same problem... I've followed the tutorial to > > a tee and have the following file structure: > > > WAVE-BOT > > +waveapi > > - ... > > - app.yaml > > - myWaveRobot.py > > > But I have the same import error you saw, > > > <type 'exceptions.ImportError'>:Nomodulenamedwaveapi > > Traceback (most recent call last): > > File "/base/data/home/apps/tweeterfeed/1.336760332375686810/src/ > > myWaveRobot.py", line 1, in <module> > > fromwaveapiimport events > > > @thomas - what do you mean exactly when you say, "have that as a > > directory under my project file." Does your directory structure look > > like mine? > > > Thanks! > > > On Aug 9, 1:26 am, Thomas <[email protected]> wrote: > > > > I got it... > > > > I just added my files into that directory (waveapis) -- but what i > > > really needed to do - was have that as a directory under my project > > > file... so that the api is all available to my sources. ( duh ) > > > > The tutorial just needs to be more stupid and explain that to dummies > > > like me... doh. > > > > Ok I got it - now my robot responds on my wavesandbox account! > > > > woo hoo! > > > > :) > > > > thanks for the help guys. > > > > cheers > > > > Tj > > > > On Aug 8, 11:17 pm, Thomas <[email protected]> wrote: > > > > > aha... I was only looking at the app uploader log... I didnt think to > > > > look at the admin logs... and there are two different kinds! > > > > > Heres the problem from an error log: > > > > > 08-08 10:51PM 49.510 /_wave/capabilities.xml 500 73ms 139cpu_ms 0kb > > > > Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.0 (KHTML, like > > > > Gecko) Chrome/3.0.198.0 Safari/532.0,gzip(gfe) > > > > 78.34.122.150 - - [08/Aug/2009:22:51:49 -0700] "GET /_wave/ > > > > capabilities.xml HTTP/1.1" 500 0 - "Mozilla/5.0 (X11; U; Linux i686; > > > > en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.198.0 Safari/ > > > > 532.0,gzip(gfe)" "ojingolabs.appspot.com" > > > > E 08-08 10:51PM 49.581 > > > > <type 'exceptions.ImportError'>:Nomodulenamedwaveapi > > > > Traceback (most recent call last): > > > > File "/base/data/home/apps/ojingolabs/1.335468159210324108/ > > > > ojingolabs.py", line 1, in <module> > > > > fromwaveapiimport events > > > > > ---- end log > > > > >Nomodulenamedwaveapi ?? they are right - I dont see a filenamed > > > >waveapi-- I got an entire directorynamedwaveapi- and I added my > > > > app.yaml file and edited appname.py file in that directory structure > > > > and uploaded that... > > > > > did I do something goofy? seems like i did... can someone help from > > > > this info? > > > > > cheers > > > > > Tj > > > > > On Aug 8, 10:54 pm, Andi Albrecht <[email protected]> > > > > wrote: > > > > > > Your code looks good at first sight. Anything in the logs? > > > > > > On Sun, Aug 9, 2009 at 7:15 AM, Anthoni<[email protected]> > > > > > wrote: > > > > > > > Hi Thomas, > > > > > > > How you mean you chmod'd the files ? > > > > > > How are you actually uploading the files ? > > > > > > The robots need to be uploaded using the appcfg.py > > > > > > I too followed the Google tutorial to the letter (written in Python) > > > > > > and I successfully deployed my robot. > > > > > > > Regards > > > > > > Anthoni > > > > > > > On Aug 9, 3:11 am, Thomas <[email protected]> wrote: > > > > > >> hi > > > > > > >> I uploaded the entire API folder - all I did was add my two > > > > > >> files... > > > > > > >> app.yaml > > > > > > >> and > > > > > > >> ojingolabs.py > > > > > > >> I also made sure to chmod those files ( but did this on the second > > > > > >> re- > > > > > >> upload as I started to try and figure out whats wrong... ) > > > > > > >> ... ? > > > > > > >> still confused. > > > > > > >> Tj > > > > > > >> On Aug 8, 7:01 pm, Anthoni <[email protected]> wrote: > > > > > > >> > Hi, > > > > > > >> > Silly question, but have you uploaded the Robot API code as well > > > > > >> > ? > > > > > >> > For some reason each robot needs it's own API folder in order to > > > > > >> > work. > > > > > >> > Been told this is you can use different versions of the API on > > > > > >> > your > > > > > >> > robots and only update when you require it. > > > > > > >> > Just a thought > > > > > > >> > Regards > > > > > >> > Anthoni > > > > > > >> > On Aug 9, 2:54 am, Thomas <[email protected]> wrote: > > > > > > >> > > Heres my code: > > > > > > >> > > application: ojingolabs > > > > > >> > > version: 1 > > > > > >> > > runtime: python > > > > > >> > > api_version: 1 > > > > > > >> > > handlers: > > > > > >> > > - url: /_wave/.* > > > > > >> > > script: ojingolabs.py > > > > > >> > > - url: /assets > > > > > >> > > static_dir: assets > > > > > > >> > > then heres the ojingolabs.py > > > > > >> > > ---------------------------------------------- > > > > > > >> > > fromwaveapiimport events > > > > > >> > > fromwaveapiimport model > > > > > >> > > fromwaveapiimport 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('ojingolabs', > > > > > >> > > image_url='http://ojingolabs.appspot.com/icon.png', > > > > > >> > > version='1', > > > > > >> > > profile_url='http://ojingolabs.appspot.com/') > > > > > >> > > myRobot.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED, > > > > > >> > > OnParticipantsChanged) > > > > > >> > > myRobot.RegisterHandler(events.WAVELET_SELF_ADDED, > > > > > >> > > OnRobotAdded) > > > > > >> > > myRobot.Run() > > > > > > >> > > still not getting it? > > > > > > >> > > Tj > > > > > > >> > > On Aug 8, 12:12 pm, Andi Albrecht > > > > > >> > > <[email protected]> > > > > > >> > > wrote: > > > > > > >> > > > How does your app.yaml look like? Maybe _wave/* is served by > > > > > >> > > > some > > > > > >> > > > controller that just returns an empty response. > > > > > > >> > > > On Sat, Aug 8, 2009 at 8:41 PM, Thomas<[email protected]> > > > > > >> > > > wrote: > > > > > > >> > > > > Hi > > > > > > >> > > > > I tried that already and the source was blank too... ! ? > > > > > > >> > > > > here you can look yourself: > > > > > > >> > > > >http://ojingolabs.appspot.com/ > > > > > > >> > > > > any ideas? > > > > > > >> > > > > Tj > > > > > > >> > > > > On Aug 8, 10:56 am, Jabbslad <[email protected]> wrote: > > > > > >> > > > >> The fact u get blank screen implies that the xml is there > > > > > >> > > > >> otherwise I > > > > > >> > > > >> would have expected a 404. When you hit > > > > > >> > > > >> _wave/capabilities.xml try > > > > > >> > > > >> doing 'view source' within your browser. > > > > > > >> > > > >> On Aug 8, 8:33 am, Thomas <[email protected]> wrote: > > > > > > >> > > > >> > Hi > > > > > > >> > > > >> > Im trying the python version of the robots tutorial - > > > > > >> > > > >> > but I get > > > > > >> > > > >> > nothing after uploading the app...noerrors...nonothing. > > > > > >> > > > >> > Blank > > > > > >> > > > >> > screen when I try to load the xml file from the demo.. > > > > > > >> > > > >> > ( Im a newbee sorry. ) > > > > > > >> > > > >> > Anyone? > > > > > > >> > > > >> > cheers > > > > > > >> > > > >> > t --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
