Sure.

Worked.

Installed simplejson with

sudo easy_install simplejson

Then get this traceback

It seems that the version in contrib is importing from simplejson
expecting its local version of the files, but instead it is pulling it
down from the site-packages.

--
Thadeus





On Fri, Jun 11, 2010 at 12:55 AM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> it is not the same problem. Can you help debug?
>
> On Jun 11, 12:38 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
>> Traceback (most recent call last):
>>   File "/home/thadeusb/sites/thadeusb.com/subdomains/odyssey/wsgihandler.py",
>> line 27, in <module>
>>     import gluon.main
>>   File "gluon/main.py", line 34, in <module>
>>     from globals import Request, Response, Session
>>   File "gluon/globals.py", line 18, in <module>
>>     from compileapp import run_view_in
>>   File "gluon/compileapp.py", line 28, in <module>
>>     from sql import SQLDB, SQLField, DAL, Field
>>   File "gluon/sql.py", line 43, in <module>
>>     from serializers import json
>>   File "gluon/serializers.py", line 9, in <module>
>>     import contrib.simplejson as simplejson
>>   File "gluon/contrib/simplejson/__init__.py", line 238, in <module>
>>     _default_decoder = JSONDecoder(encoding=None, object_hook=None)
>>   File "gluon/contrib/simplejson/decoder.py", line 322, in __init__
>>     self.scan_once = make_scanner(self)
>> AttributeError: 'JSONDecoder' object has no attribute 'object_pairs_hook'
>>
>> I have to have simplejson installed in the system wide site-packages.
>>
>> --
>> Thadeus
>

Reply via email to