The beauty of API design, and this is especially true of Google
projects, is that the binding exposes the same sets of methods and
objects for every language that it supports, so in theory it should be
relatively easy to port specific portions of the app across different
languages (all you need is a the most rudimentary amount of knowledge
about the syntax of Java).

If you can provide the link to download for the aunt-rosie robot, I
can help you locate and port the code to python. (Although it may be
in the API document, make sure that you check there first).

On 4 Nov, 08:42, Niall <[email protected]> wrote:
> Cheers.
> I got it working before I saw the solutions ye posted. I went 
> tohttp://pypi.python.org/pypi/simplejson/2.0.9and downloaded simplejson
> and uploaded it with the robot I'm using. I might try to use Holger's
> solution, though.
> Thanks.
>
> Now, my robot works does basically what it should do, but I'd like to
> make it confugurable and I think the best way to do that would be to
> allow whover's using the robot to select options from a dropdown menu
> (from a blip that the robot posts when it is added to a wave). I've
> seen this from a few different robots, but I'm not sure how it was
> done. I've seen it on a few robots (aunt-rosie, for example, but
> that's written in Java) so I figure it might be possible with python.
> I searched, as i said. But couldn't see much that looked useful.
>
> Cheers.
>
> On Nov 3, 9:57 pm, Lee <[email protected]> wrote:
>
>
>
> > On Nov 3, 2:19 pm, Niall <[email protected]> wrote:
>
> > > Hi,
>
> > > I am currently writing a google wave robot for kicks, and I get the
> > > following error:
>
> > > <type 'exceptions.ImportError'>: No module named json
> > > Traceback (most recent call last):
> > >   File "/base/data/home/apps/myWaveRobot/1.337487432489076904/
> > > myWaveRobot.py", line 14, in <module>
> > >     import myWaveRobotModule
> > >   File "/base/data/home/apps/myWaveRobot/1.337487432489076904/
> > > myWaveRobotModule.py", line 3, in <module>
> > >     import json
>
> > > And line three of myWaveRobotModule.py is --
>
> > > import json
>
> > > I did some searching and I can't figure out why I'm getting that error
> > > and couldn't see anything that seemed to match my problems. The error
> > > is printed like 19 times in the appenging main logs, but I don't know
> > > if that's important.
>
> > > Can anyone tell me why json doesn't work?
>
> > > Thanks. Let me know if you need any more information.
>
> > Hi, the JSON library within python is native only for version 2.6.x
> > and up, try the following
>
> > easy_install simplejson - Make sure that you have installed ez_setup
>
> > and within myWaveRobotModule.py, replace import json with import
> > simplejson
>
> > The two libraries' methods use the same method names and the same set
> > of parameters so there shouldn't be any compatibility issue.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to