[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [GSoC] Adding information to UDD and inject the rendering to tasks,py



Hi,

On Sun, Apr 12, 2015 at 4:47 PM, Andreas Tille <andreas@an3as.eu> wrote:
Hi Akshita,

On Sun, Apr 12, 2015 at 01:18:06PM +0530, Akshita Jha wrote:
> Traceback (most recent call last):
> File "/srv/udd.debian.org/udd//udd.py", line 86, in <module>
>     exec "gatherer.%s()" % command
>   File "<string>", line 1, in <module>
>   File "/srv/udd.debian.org/udd/udd/blends_prospective_gatherer.py", line
> 316, in run
>     if sprosp['license'] == '':
> KeyError: 'license'
>
> This error occurs wherever "if sprosp['license'] == ' ' " is checked. I
> solved these errors by using try-except block:
>
> try:
>     if sprosp['license'] == '':
>         sprosp['license'] = 'free'
> except KeyError:
>     sprosp['license'] = 'free'

While this sounds like a sensible extension I do not run into this error.

> Now when I run $./update-and-run.sh blends-prospective, I get a new error:
>
> Error while inserting packages 'source'
> Traceback (most recent call last):
>   File "/srv/udd.debian.org/udd//udd.py", line 86, in <module>
>     exec "gatherer.%s()" % command
>   File "<string>", line 1, in <module>
>   File "/srv/udd.debian.org/udd/udd/blends_prospective_gatherer.py", line
> 417, in run
>     cur.executemany(pkgquery, pkgs)
> KeyError: 'source'
>
> I am not sure if something has changed in machine readable files which is
> causing this error. These errors did not occur before.

Could you please check the files in

   /srv/udd.debian.org/mirrors/machine-readable

It smells as if something would be broken there.  I do not run into this
error.

I can't seem to get rid of the errors. There are no 0 sized files in  "/srv/udd.debian.org/mirrors/machine-readable".  Do you have any idea how else can I verify what the issue is ? 
If it is of any help, I get no error when I run $ ./update-and-run.sh bibref.

--
Akshita Jha

Reply to: