Hello.

Problem with simplejson is that it's originally trying to load c
module (_speedups.so), but web2py version of simplejson is python
only.
So when decoder.py, encoder.py and scanner.py trying to load c modules
find it in global namespace...:
try:
    from simplejson._speedups import encode_basestring_ascii as
c_encode_basestring_ascii
except ImportError:
    c_encode_basestring_ascii = None

Workaround is switching to relative imports (tested on python 2.5):
try:
    from .. simplejson._speedups import encode_basestring_ascii as
c_encode_basestring_ascii
except ImportError:
    c_encode_basestring_ascii = None

-- Zahariash

Reply via email to