SampleReport in 6.0.7- Value Error, unserialize Person

How do I resolve? Thank you.

Using my personal and the example databases the samplereport code produces messages in def __process_attributes(self):slight_smile: all other options work fine. Same error occurred in 6.0.6.

Report Source: Gramps-Modules/SampleReport/samplereport.py at main · GaryGriffin/Gramps-Modules · GitHub

14499: ERROR: _reportdialog.py: line 800: Failed to run report.
Traceback (most recent call last):
File “C:\Program Files\GrampsAIO64-6.0.7\gramps\gui\plug\report_reportdialog.py”, line 759, in report
my_report.write_report()
~~~~~~~~~~~~~~~~~~~~~~^^
File “C:\Users\Brenda&Rick\AppData\Roaming\gramps\gramps60\plugins\SampleReport\samplereport.py”, line 125, in write_report
reportRows = self.__process_attributes()
File “C:\Users\Brenda&Rick\AppData\Roaming\gramps\gramps60\plugins\SampleReport\samplereport.py”, line 191, in __process_attributes
person.unserialize(data[1])
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.7\gramps\gen\lib\person.py”, line 285, in unserialize
(
^
…<21 lines>…
) = data
^
ValueError: too many values to unpack (expected 21)

@GaryGriffin this looks like an old report for Gramps 5. How could it even be loaded in 6.0?

This addon report was written for 5.1 . I can reproduce his issue on 6.0 . Will work on an update for 6.0.

Thank you. I was trying to use a sample report to get a better understanding of accessing data from Gramps. It seemed pretty straightforward. Could not debug the cause of the error.

I updated the Sample Report for 6.0 API changes. The Attribute list should now work. Please let me know if there are additional issues.

Gary, the revised report now works. Thank you.