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