On Thu, Feb 24, 2011 at 12:23 PM, John de la Garza <[email protected]> wrote:

> On Wed, Feb 23, 2011 at 5:22 PM, Jeremiah Dodds
> <[email protected]> wrote:
> >
>
> >
> > My only guess is that the import is failing. I can't check it on my
> machine
> > right now, but check  RpcPython/trunk/services/qxjsonrpc/json.py , lines
> 112
> > and 149. Try removing that try/except/else or taking a look at the
> errors,
> > "python -m pdb ./start-server.py" could provide some insight as well.
>
>
> I don't understand ho it can work with the imports removed.  it uses
> those imports
>
>
It can't, looking at the code, it looks like the import of simplejson must
be failing in that file. The block of code trys to import simplejson (or
cjson), catches an exception if the import fails, and creates things
otherwise. I didn't mean to remove the entire block of code, just the
exception handling -- right now when the import of simplejson fails,
assuming that's what happens, you don't  know anything about it because it
just "pass"es. Running through python -m pdb will let you step up from the
faliure, which could illuminate some things, or commenting out just the try,
except, and else lines would skip the whole "just pass if the import fails"
thing. You could also just change "pass" to "raise", I think.

Another possible reason for failure would be if there's a simplejson in your
working directory that is overshadowing the system's one...
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to