[ckan-dev] Ckanext-qa doesn't display any information.

Jesús Redondo redondogarciajesus at gmail.com
Wed Mar 12 09:05:52 UTC 2014


Hello,

You are right, the two "-" were incorrectly typed. Now the command output
is:







*(default)jesus at jesus-P5QL-PRO:/usr/lib/ckan/default/src/ckanext-qa$ paster
qa update --config=/etc/ckan/default/production.ini2014-03-12 09:00:23,236
INFO  [ckanext.qa <http://ckanext.qa>] QA on dataset being added to Celery
queue: farmacias-caceres (6 resources)2014-03-12 09:00:25,170 INFO
[ckanext.qa <http://ckanext.qa>] QA on dataset being added to Celery queue:
farolas-de-caceres (6 resources)2014-03-12 09:00:25,420 INFO  [ckanext.qa
<http://ckanext.qa>] QA on dataset being added to Celery queue:
arboles-de-caceres (7 resources)2014-03-12 09:00:25,678 INFO  [ckanext.qa
<http://ckanext.qa>] QA on dataset being added to Celery queue:
museos-caceres (5 resources)2014-03-12 09:00:25,878 INFO  [ckanext.qa
<http://ckanext.qa>] QA on dataset being added to Celery queue:
ontologia-caceres (4 resources)2014-03-12 09:00:26,103 INFO  [ckanext.qa
<http://ckanext.qa>] QA on dataset being added to Celery queue:
metadatos-sobre-www-caceresabierto-es (2 resources)*

I guess the command run properly (not sure what Celery does).

But the problem persists, if I access
http://www.caceresabierto.es/qa/dataset/five_stars no datasets are shown.

Another question: when the ckaext-qa is running, it shows something like
this http://ckan.org/2012/02/09/ckans-qa-extension-just-got-better/ in the
dataset catalog, right? I think that's the most useful feature of the
plugin, but I am not sure if is included by default, and if so, Do you know
any instance where this plugin is active and running? So I can check his
behaviour.

Thanks for all the help offered :)

Jesús Redondo García.




On Tue, Mar 11, 2014 at 10:43 PM, Ross Jones <ross at servercode.co.uk> wrote:

> Hi,
>
> The error you're getting is because it is looking for the default config
> file (development.ini) so it hasn't recognised the config file you have
> provided in the terminal.  I think you may have typed it incorrectly, there
> are two - before config. Try copying and pasting the line below, perhaps
> it'll show up better in your terminal than it does in mail.
>
> *    paster qa update --config=/etc/ckan/default/production.ini*
>
> Ross.
>
> On 11 Mar 2014, at 20:15, Jesús Redondo <redondogarciajesus at gmail.com>
> wrote:
>
> Hello Ross,
>
> You're right, I didn't run the paster command. I have tried, but
> unfortunately an error was displayed:
>
> NOTE: the command has been run like this:  *paster qa update
> --config=/etc/ckan/default/production.ini*
> and with the virtualenv was on.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Traceback (most recent call last):  File
> "/usr/lib/ckan/default/bin/paster", line 9, in <module>
> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
> File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 104, in run    invoke(command, command_name, options, args[1:])  File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 143, in invoke     exit_code = runner.run(args)  File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 238, in run    result = self.command()  File
> "/usr/lib/ckan/default/src/ckanext-qa/ckanext/qa/commands.py", line 50, in
> command     self._load_config()  File
> "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 79, in
> _load_config    raise AssertionError('Config filename %r does not exist.' %
> self.filename)AssertionError: Config filename
> '/usr/lib/ckan/default/src/ckanext-qa/development.ini' does not exist.*
>
>
> I have searched for the file "development.ini" but no results were return.
>
>
> Is the path where I run the command correct? I don't know why this is
> failing.
> Thanks for the help.
>
> Jesús Redondo
>
>
> On Tue, Mar 11, 2014 at 2:29 PM, Ross Jones <ross at servercode.co.uk> wrote:
>
>> Hi,
>>
>> Did you run the update command that's mentioned at
>> https://github.com/ckan/ckanext-qa#using-the-qa-extension ?
>>
>>     paster qa update --config=/path/to/.ini
>>
>> If you did, did it give any output? If you didn't and it now works, you
>> might want to run it from a cron task or something similar.
>>
>> Ross
>>
>>
>> On 11 Mar 2014, at 13:23, Jesús Redondo <redondogarciajesus at gmail.com>
>> wrote:
>>
>> Hello,
>>
>> I am trying to install ckanext-qa plugin in a 2.0.2 CKAN instance. The
>> instance is accessible via:
>>
>> http://www.caceresabierto.es
>>
>> I have installed ckanext-archiver (
>> https://github.com/ckan/ckanext-archiver), which is prerequisite, then
>> qa-extension (https://github.com/ckan/ckanext-qa) and finally I have
>> configured the production.ini and restarted apache2.
>>
>> The plugins activated are the following:
>>
>> ckan.plugins = stats recline_preview noregistration resource_proxy
>> pdf_preview archiver qa
>>
>> And the URL of the site is:
>> ckan.site_url = http://www.caceresabierto.es
>>
>> The problem is that no changes have occur in the CKAN portal:
>>
>> 1) The datasets don't show any info about the 5 stars of openness.
>>
>> For instance, I don't see any difference in
>> http://www.caceresabierto.es/dataset/farmacias-caceres, no matter if the
>> plugin is on or off.
>>
>> I expected to see something similar to what is shown here:
>> http://ckan.org/2012/02/09/ckans-qa-extension-just-got-better/
>> or here: http://data.gov.uk/dataset/land-registry-monthly-price-paid-data(I guess they are using this same extension).
>>
>>
>> 2) If I use /qa path to check the openness of the datasets, no datasets
>> are found.
>> http://www.caceresabierto.es/qa/dataset/five_stars
>>
>> I expected to see something like this but with dataset instead of
>> organisations:
>> http://data.gov.uk/data/reports/qa/organisation/scores
>>
>> I would appreciate any help with this. Thanks,
>>
>> Jesús Redondo
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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/20140312/37be490a/attachment-0003.html>


More information about the ckan-dev mailing list