Cheers.
I got it working before I saw the solutions ye posted. I went to
http://pypi.python.org/pypi/simplejson/2.0.9 and 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 <leeyuan...@gmail.com> wrote:
> On Nov 3, 2:19 pm, Niall <twom...@gmail.com> 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 google-wave-api@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to