are you using GAE or some other webserver?

can you import those same modules from the python interpreter that your 
webserver is using?

what version of python do you have?

On Wednesday, February 13, 2013 12:43:37 PM UTC-8, unmuse wrote:
>
> I am using the gdata module to access the Google API. I am having no 
> trouble whatsoever with the application on PC. However whenever I try to 
> run the app from my Mac, I get the error: 
> Cannot import module 'json'
>
> I am importing the module through the modules directory. This is what the 
> code for the failed import looks like:
>
> In gdata/gauth.py lines 56-64:
>
> try:
>   import simplejson
> except ImportError:
>   try:
>     # Try to import from django, should work on App Engine
>     from django.utils import simplejson
>   except ImportError:
>     # Should work for Python2.6 and higher.
>     import json as simplejson
>
> I can suffer using my PC, but I'd prefer to develop the application on my 
> mac. I don't know how the differences in OS would make a difference with 
> importing.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to