Hi,
First of all sorry for the delay. Since, it's the last month of my
semester, I am a little busy with college work.
That said, I removed the changes I had made but I get the following error
on $ ./update-and-run.sh blends-prospective.
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'
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.
If this helps, the program never goes inside the for loop:
"for stanza in deb822.Sources.iter_paragraphs(p.stdout):"
which is why sprosp['license'] = '' is not initialized.
Do you also get the same errors ?
And also can you help me understand what exactly the contents of
<source>.copyright, <source>.control, <source>.vcs, <source>.changelog
represent ?
If I understand correctly :
<source>.vcs : contains the information its blend and its vcs broswer.
<source>.chnagelog : contains all the changes that were made to the source
<source>.copyright : contains license information
<source>.control : contains infromation about its packages, dependencies,
maintainers etc.
Is there something other than this that I need to know about these?
Thanking You,
Akshita Jha
On Tue, Apr 7, 2015 at 1:46 PM, Andreas Tille <[email protected]> wrote:
> On Mon, Apr 06, 2015 at 10:42:45PM +0200, Andreas Tille wrote:
> > >
> > > So, do I consider this issue fixed ?
> >
> > I'll need to check tomorrow.
>
> ./only-run.sh blends-prospective
> 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
> 422, in run
> cur.execute(query)
> psycopg2.ProgrammingError: FEHLER: Syntaxfehler bei „REPLACE“
> LINE 1: ...RE bibref_insert (text, text, text, text, int) AS REPLACE IN...
> ^
>
> Sorry, my postgresql is configured for German locale:
>
> "Syntaxfehler bei" --> "syntax error at"
>
> I can't check today but perhaps tomorrow will be some time in case you
> can not reproduce this.
>
> Kind regards
>
> Andreas.
>
> --
> http://fam-tille.de
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive: https://lists.debian.org/[email protected]
>
>
--
Akshita Jha