[ECODP-dev] Problem with user statistics
Dimitrios Mexis
dimitrios.mexis at tenforce.com
Wed Jun 26 08:56:19 UTC 2013
Many thanks for the quick fix, I will try to test asap.
regards
Dimitrios
On Wed, Jun 26, 2013 at 10:23 AM, John Glover <john.glover at okfn.org> wrote:
> Hi Dimitrios,
>
> Thanks. This was a bug, I have just pushed a fix to our Github repository.
>
> Regards,
> John
>
>
> On 26 June 2013 09:14, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
>
>> Hello we have the following issue:
>>
>> Running this script :
>> *ckan_user_stats.sh*
>> *Content of script:*
>> *#!/bin/bash*
>> *# Arg1 = absolute path to file where the stats are output to in CSV
>> format*
>> *# Arg2 = date in the form [YYYY-MM-DD] from which point the stats are
>> dumped*
>> *
>> *
>> *source ./paster.sh*
>> *
>> *
>> *if [ $# -lt 2 ] ; then*
>> * echo "2 arguments are mandatory"*
>> * echo "Arg1 = file where the stats are output to in CSV format"*
>> * echo "Arg2 = date in the form [YYYY-MM-DD] from which point the
>> stats are dumped"*
>> *
>> *
>> * exit*
>> * fi*
>> *
>> *
>> *paster --plugin=ckan tracking export "$1" -c $CKAN_INI "$2"*
>>
>> *I have this output:*
>>
>>
>> tracking updated for 2013-06-12 00:00:00
>> tracking updated for 2013-06-13 00:00:00
>> tracking updated for 2013-06-14 00:00:00
>> tracking updated for 2013-06-15 00:00:00
>> tracking updated for 2013-06-16 00:00:00
>> tracking updated for 2013-06-17 00:00:00
>> tracking updated for 2013-06-18 00:00:00
>> tracking updated for 2013-06-19 00:00:00
>> tracking updated for 2013-06-20 00:00:00
>> tracking updated for 2013-06-21 00:00:00
>> tracking updated for 2013-06-22 00:00:00
>> tracking updated for 2013-06-23 00:00:00
>> tracking updated for 2013-06-24 00:00:00
>> tracking updated for 2013-06-25 00:00:00
>> tracking updated for 2013-06-26 00:00:00
>> Traceback (most recent call last):
>> File "/applications/ecodp/users/ecodp/ckan/ecportal/bin/paster", line
>> 9, in <module>
>> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
>> File
>> "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
>> line 104, in run
>> invoke(command, command_name, options, args[1:])
>> File
>> "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
>> line 143, in invoke
>> exit_code = runner.run(args)
>> File
>> "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
>> line 238, in run
>> result = self.command()
>> File
>> "/applications/ecodp/users/ecodp/ckan/ecportal/src/ckan/ckan/lib/cli.py",
>> line 962, in command
>> self.export_tracking(engine, output_file)
>> File
>> "/applications/ecodp/users/ecodp/ckan/ecportal/src/ckan/ckan/lib/cli.py",
>> line 1053, in export_tracking
>> f_out = csv.writer(fh)
>> NameError: global name 'csv' is not defined
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130626/14573c33/attachment.html>
More information about the ecodp-dev
mailing list