[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 Akshita,

On Tue, Apr 14, 2015 at 04:53:23PM +0530, Akshita Jha wrote:
> I am attaching the files for the package 'imagej'. If you can please find
> time to go through it and check how these differ from the actual files, it
> can help me debug the issue.

These files are looking absolutely normal.
 
> > The 'license' keyerror :
> >
> > 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
> > 313, in run
> >     if sprosp['license'] == '':
> > KeyError: 'license'

The key license is contained in imagej.copyright.

> > The 'source' keyerror arises for the first time for:
> >   /srv/udd.debian.org/mirrors/machine-readable/w wineasio
> >
> > 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
> > 411, in run
> >     cur.executemany(pkgquery, pkgs)
> > KeyError: 'source'

The key source is contained in imagej.contol.

So everything looks totally normal to me.  May be for whatever reason
python-debian is broken at your side?  The parsing is done by

...
from debian import deb822
...
   ...  deb822.Sources.iter_paragraphs
...
   ...  deb822.Deb822.iter_paragraphs

Both things are used in all Blends tools dealing with the typical Debian
metadata files in RFC 822 format.  Its also used in the current tasks.py
by importing blendstasktools.py.  You might probably be able to test my
theory by re-running tasks.py.  If you run into similar key errors
something is broken in python-debian.  However - I admit I have no idea
what might be wrong since this always worked reliable.  You might need to
debug the resulting stanzas.

Hope this helps tracking down the issue

        Andreas.

-- 
http://fam-tille.de


Reply to: