Re: [web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2014-12-08 Thread 黄祥
i face the same problem on mac with web2py source 2.9.11-stable : MacBook:web2py MacBookPro$ python web2py.py -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: SQLite(sqlite3),

Re: [web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2014-12-08 Thread Anthony
It's not clear this is the same problem. What happens if you open a standard Python shell (not a web2py shell) and try to import simplejson? On Monday, December 8, 2014 8:37:42 AM UTC-5, 黄祥 wrote: i face the same problem on mac with web2py source 2.9.11-stable : MacBook:web2py MacBookPro$

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2014-12-08 Thread Andy Pardue
Massimo, This has happened to me a few times it seems that an error in the module just proclaims it is not there instead of raising the error through the custom_import. I have not tried to fix it in web2py because I am under deadlines, I just know that there is a import error or something like

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2012-10-20 Thread Massimo Di Pierro
I am very puzzled but this. It should not be necessary. Does the code below work for you? $ python web2py.py -S welcome (InteractiveConsole) import simplejson Do you have a module called simplejson in yourapp/modules/? From a normal python shell, shat happens if you do? import simplejson

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2012-10-20 Thread Luciano Laporta Podazza
Hello Massimo!, comments inline. On Saturday, October 20, 2012 11:43:43 AM UTC-3, Massimo Di Pierro wrote: I am very puzzled but this. It should not be necessary. Does the code below work for you? $ python web2py.py -S welcome (InteractiveConsole) import simplejson If I use

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2012-10-20 Thread Massimo Di Pierro
I just tried this (using OSX binary distribution -nightly built) and I cannot reproduce it. Could you try it? Massimo On Saturday, 20 October 2012 11:32:55 UTC-5, Luciano Laporta Podazza wrote: Hello Massimo!, comments inline. On Saturday, October 20, 2012 11:43:43 AM UTC-3, Massimo Di

Re: [web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2012-10-20 Thread Luciano Laporta Podazza
On Sat, Oct 20, 2012 at 7:35 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I just tried this (using OSX binary distribution -nightly built) and I cannot reproduce it. Could you try it? Sure!, I'll do it right now and get back to you. Massimo On Saturday, 20 October 2012

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2012-10-19 Thread Luciano Laporta Podazza
Well it seems that after a lot of research and specially after posting this question that I found the solution. I've tried facebook-sdk module and had to modify just one line to make it work: facebook.py, line 49: # Find a JSON parser try: import simplejson as json To # Find a JSON