ValueError: not enough values in Narrated Website report for 5.2.x

Cross-posted from Gramps for Genealogists Facebook group Federico Inthamoussu posting:

Hi there!
I’m new to the group but using GRAMPS for about three years.
Is anyone facing issues with “Narrated Web Site…” ?
Everything worked fine until I moved away from 5.1.5, it stopped working in 5.2.0 and the same with 5.2.1 and 5.2.2
Any idea of what could be causing this? or log I can check? Thanks!

Gramps 5.2.x on Windows

This looks like a broken link, and broken code in the report. It should check the result value before trying to extract values from it.

1 Like

It’s quite odd, because the result is checked against None, so the offending line should not be reached if it is. And that suggests that there is a possibility that it’s not None, but an empty list.

I know similar cases from my job, working with C#, where we often used a property IsEmptyOrZero to catch both possibilities, but I have not seen a similar test in Python.

1 Like

I just read, in mail, and on FB, that a backup-restore-sequence helps, and that implies that there probably is a loose end, like an empty list where None is expected, which is not detected, by regular means, like check & repair.

Any idea about a follow-up for that?

1 Like

To resolve this, the best way should be to create a bug request and provide a small example which reproduce the problem.

2 Likes

That may be problematic. Unlike the issue where the Report does not parse hyphenated Roles (such as daughter-in-law or father-in-law), @Enno notes that this problem goes away as the data passes through an XML export/backup and import into a new database.

So isolation might require transferring a ZIP of the whole database folder instead of an XML.

The question becomes: is this a corruption that is commonly created through normal use? Or did the user do something weird in their workflow? Or is it a just a freak occurrence?

If it is common enough, then Gramps should be changed to prevent it or “Check & Repair” should fix it. If it is a Freak Occurrence, the backup/import cycle is sufficient.

Do you think that using the “Import and Merge” tool to compare the Corrupt database and its backup .gramps file would be revealing?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.