Hi Govind,
The only thing that I can thinks of is that you are using python
2.7. It works fine for me on SL6/python 2.6 so I wonder if this is a
python version issue?
John
On 28/09/2017 14:52, Govind Songara wrote:
> Hi All,
>
> I am following these instruction to configure accounting.
>
> https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/Dev/Recipes/EGI_APEL_Accounting
>
> Getting this error
>
> [root@se2 ~]# /usr/share/lcgdm/scripts/star-accounting.py --reportgroups
> --nsconfig=/usr/etc/NSCONFIG --site="UKI-LT2-RHUL"
>
> Traceback (most recent call last):
> File "/usr/share/lcgdm/scripts/star-accounting.py", line 317, in <module>
> addrecord(xmlroot, options.hostname, row[1], None, site, row[2],
> getreservedspacebygid(conn, row[0]), row[3], options.validduration,
> record_id)
> File "/usr/share/lcgdm/scripts/star-accounting.py", line 163, in
> getreservedspacebygid
> cursor.execute ("select sum(t_space) from dpm_db.dpm_space_reserv
> where s_gid=%s;", i)
> File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line
> 187, in execute
> query = query % tuple([db.literal(item) for item in args])
> TypeError: 'int' object is not iterable
>
>
> Any suggestion?
>
> Thanks
> Govind
>
|