[ckan-dev] ckan-qa error in ckan 2.2

Ross Jones ross at servercode.co.uk
Tue Apr 29 09:42:10 UTC 2014


Did you restart celery?

On 29 Apr 2014, at 10:36, Isabel Ruiz <isaruizmellado at gmail.com> wrote:

> Hi !
> 
> I have followed  https://github.com/kennethreitz/requests/issues/1380 and https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365 links, 
> 
> I mean: 
> 1- I have opened ckanext-archiver/ckanext/archiver/tasks.py file, 
> 2- replaced return json.dumps(headers) with return json.dumps(dict(headers)), 
> 3- I have restarted ckan and 
> 4- executed paster qa update command. 
> 
> 
> 
> It returns same error: Unknown error: CaseInsensitiveDict({'content-length': '20', 'content-encoding': 'gzip', 'accept-ranges': 'bytes', 'vary': 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu), cacheinter at CEMI', 'last-modified': 'Wed, 02 Apr 2014 10:17:03 GMT', 'etag': '"17000000001ffc-92371-4f60c95f8e5c0"', 'date': 'Mon, 07 Apr 2014 22:00:49 GMT', 'content-type': 'text/csv'}) is not JSON serializable
> 
> Any suggestions about this error ?
> 
> Thanks a lot!
> 
> 
> 
> 
> 
> 
> 
> On Tue, Apr 8, 2014 at 11:00 AM, Ross Jones <ross at servercode.co.uk> wrote:
> Actually, my mistake. The problem is in the archiver (the two extensions are dependant) at https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365
> 
> Although headers is declared as {} the call at https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L339 will be on the path to the problem.
> 
> Ross
> 
> 
> On 8 Apr 2014, at 09:50, Ross Jones <ross at servercode.co.uk> wrote:
> 
>> I think it is the problem described at  https://github.com/kennethreitz/requests/issues/1380, perhaps it is running a slightly different version of requests than previously?
>> 
>> Maybe a bug report mentioning that QA should use json.dumps(dict(r.headers)) rather than json.dumps(r.headers) ?  Or, better yet a pull request :)
>> 
>> Ross
>> 
>> 
>> On 8 Apr 2014, at 09:30, Isabel Ruiz <isaruizmellado at gmail.com> wrote:
>> 
>>> Hi!
>>> 
>>> We have installed ckan-qa in ckan 2.1a and it worked fine.
>>> We have celery 2.4.2
>>> 
>>> Now, we have upgraded to ckan 2.2.
>>> 
>>> We have executed paster qa update --config=/etc/ckan/default/malaga.ini
>>> 
>>> This instruction starts and it seems working fine.
>>> 
>>> But if we go to resource page details QA returns this:
>>> 
>>> Puntuación: Unknown error: CaseInsensitiveDict({'content-length': '20', 'content-encoding': 'gzip', 'accept-ranges': 'bytes', 'vary': 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu), cacheinter at CEMI', 'last-modified': 'Wed, 02 Apr 2014 10:17:03 GMT', 'etag': '"17000000001ffc-92371-4f60c95f8e5c0"', 'date': 'Mon, 07 Apr 2014 22:00:49 GMT', 'content-type': 'text/csv'}) is not JSON serializable
>>> 
>>> What can be worng?
>>> 
>>> Is ckan-qa and ckan 2.2 compatibles? 
>>> 
>>> 
>>> 
>>> -- 
>>> Isabel M. Ruiz Mellado
>>> http://about.me/isabelruiz
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>> 
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> 
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> 
> 
> 
> 
> -- 
> Isabel M. Ruiz Mellado
> http://about.me/isabelruiz
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140429/68c30b8e/attachment-0003.html>


More information about the ckan-dev mailing list