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

**URL:** <https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518>\
**Category:** Help\
**Created:** [May 25, 2024, 5:10pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518 "2024-05-25T17:10:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 25, 2024, 5:10pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/1 "2024-05-25T17:10:16Z")

</div>

[Cross-posted from **Gramps for Genealogists**](https://www.facebook.com/groups/370692133138445/posts/2484225505118420/? __cft__ %5B0%5D=AZUhZCmk-cbzA0THTOdYFz6WLB4rmTfZLElbWZo438YMkWqgjVrC-Lcp74RQWW1R06fVN1rHyI-zLtDk1XdP9dNwzw86OBsvUAHsGNGYz4pktoCC5yxlU3B7cRD2uKrKlWPlimOgp82AcCZg0hlTI9jjJ-jcMgCFnUIjDqhtJd08ywShqkdcfsYEO0cHufViXnVRwN-1Ig2Wam7LHcXCs8Pf& __tn__ =%2CO%2CP-R) Facebook group [**Federico Inthamoussu**](https://www.facebook.com/groups/370692133138445/user/1077201585/) 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!

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/b/b7d2f4ccf7248715dcc659d706cb9333c82335f6.jpeg)

Gramps 5.2.x on Windows

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [May 25, 2024, 7:29pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/2 "2024-05-25T19:29:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [May 26, 2024, 2:27pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/3 "2024-05-26T14:27:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [May 27, 2024, 9:48pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/4 "2024-05-27T21:48:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [May 28, 2024, 8:50am UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/5 "2024-05-28T08:50:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 28, 2024, 5:34pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/6 "2024-05-28T17:34:35Z")

</div>

> [@SNoiraud](#):
>
> provide a small example which reproduce the problem.

That may be problematic. Unlike the issue where the [Report does not parse hyphenated Roles](https://gramps-project.org/bugs/view.php?id=12470#c63269) (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?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [June 27, 2024, 5:35pm UTC](https://gramps.discourse.group/t/valueerror-not-enough-values-in-narrated-website-report-for-5-2-x/5518/7 "2024-06-27T17:35:07Z")

</div>

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