What version of Python do you have?

Most likely, you are running 2.4 or 2.5 and have an incompatible json
module. You need to uninstall what you have and install simplejson. In
Python 2.6, there's a 'json' module built-in, but pre-2.6, there's a third
party 'json' module that has a different API and breaks us. I've heard of
this being installed by default at some companies.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Sep 23, 2010 at 5:59 AM, jdt141 <justin.d.te...@gmail.com> wrote:

> Hi All,
>
> A bit of help on this would be appreciated. I haven't been able to
> find this error code to date. Running RBTools v 0.2 and ReviewBoard
> 1.0.9
>
> When I attempt to post review, with a Perforce repository, everything
> seems to work fine. The diff is created, but the post-review fails
> every time with the following:
>
> HTTP POSTing to http://10.27.64.37/api/json/reviewrequests/new/:
> {'repository_path': 'myRepositoryURL', 'changenum': '85990'} Traceback
> (most recent call last):
>  File "/usr/bin/post-review", line 8, in <module>
>    load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
> ()
>  File "/usr/lib/python2.5/site-packages/RBTools-0.2-py2.5.egg/rbtools/
> postreview.py", line 2861, in main
>  File "/usr/lib/python2.5/site-packages/RBTools-0.2-py2.5.egg/rbtools/
> postreview.py", line 2497, in tempt_fate
>  File "/usr/lib/python2.5/site-packages/RBTools-0.2-py2.5.egg/rbtools/
> postreview.py", line 422, in new_review_request
>  File "/usr/lib/python2.5/site-packages/RBTools-0.2-py2.5.egg/rbtools/
> postreview.py", line 648, in api_post
>  File "/usr/lib/python2.5/site-packages/RBTools-0.2-py2.5.egg/rbtools/
> postreview.py", line 549, in process_json
> AttributeError: 'module' object has no attribute 'loads'
>
> I'm at a loss... Any and all help would be appreciated.
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com<reviewboard%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to