CardView icon indicating copy to clipboard operation
CardView copied to clipboard

Gramps 6.0 testing - Cardview does not load - "cannot import name 'to_json' from 'gramps.gen.lib.serialize'"

Open wroldwiedbwe opened this issue 8 months ago • 1 comments

Changed reference to "5.2" (.gpr.py files) and changed them to 6.0 and Cardview does not work in 6.0.

What are your plans for Cardview?

Love for Cardview to be updated 😊 if you have time?

2025-03-31 07:42:07.578: WARNING: _manager.py: line 328: Plugin error (from 'status_person'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:07.592: WARNING: _manager.py: line 328: Plugin error (from 'status_todo'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:08.502: WARNING: _manager.py: line 328: Plugin error (from 'card_view_person'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:12.539: WARNING: _manager.py: line 328: Plugin error (from 'card_view_person'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:12.541: WARNING: _manager.py: line 328: Plugin error (from 'card_view_person'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:13.567: WARNING: _manager.py: line 328: Plugin error (from 'card_view_family'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:14.225: WARNING: _manager.py: line 328: Plugin error (from 'card_view_event'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:15.056: WARNING: _manager.py: line 328: Plugin error (from 'card_view_place'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:15.728: WARNING: _manager.py: line 328: Plugin error (from 'card_view_source'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:16.299: WARNING: _manager.py: line 328: Plugin error (from 'card_view_citation'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:16.911: WARNING: _manager.py: line 328: Plugin error (from 'card_view_repository'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:17.712: WARNING: _manager.py: line 328: Plugin error (from 'card_view_media'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:18.313: WARNING: _manager.py: line 328: Plugin error (from 'card_view_note'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:18.928: WARNING: _manager.py: line 328: Plugin error (from 'card_view_tag'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py) 2025-03-31 07:42:19.445: WARNING: _manager.py: line 328: Plugin error (from 'tagview'): cannot import name 'to_json' from 'gramps.gen.lib.serialize' (C:\Program Files\GrampsAIO64-6.0.0\gramps\gen\lib\serialize.py)

Same error message as on Gramps issue 13710 for the JSONExport addon.

wroldwiedbwe avatar Mar 30 '25 20:03 wroldwiedbwe

Yes, this is to be expected.

I will try to make some time to fix this.

cdhorn avatar Mar 31 '25 07:03 cdhorn

Same error message as on Gramps issue 13710 for the JSONExport addon.

if it helps the pr for that issue. https://github.com/gramps-project/addons-source/pull/732

fxtmtrsine avatar May 15 '25 20:05 fxtmtrsine

I think this is a more compact set of changes to address this

https://github.com/gramps-project/addons-source/pull/731/commits/0f8446c2a1dd97f031c564b3e4fcac6e23f7c3d7

GaryGriffin avatar May 16 '25 15:05 GaryGriffin

Sorry forgot about this, on quit the hiatus from genealogy related stuff so thanks for the reminder. No real testing yet, and I'll be out good portion of the rest of the day, but pushed the changes needed for it to load under 6.0.

cdhorn avatar May 17 '25 15:05 cdhorn

ERROR: Plugin file C:\Users\gioto\AppData\Roaming\gramps\gramps60\plugins\CardView-master\src\template_minimal.py has a version of "5.2" which is invalid for Gramps "AIO64-6.0.1--1".

Updating template_minimal.gpr.py to 6.0 starts CardView , thanks. I'll hold off doing any testing.

giotodibondone avatar May 18 '25 03:05 giotodibondone

Oops, sorry, got that one too now.

cdhorn avatar May 18 '25 10:05 cdhorn

@cdhorn Thank you

wroldwiedbwe avatar May 30 '25 03:05 wroldwiedbwe

You are most welcome. Really need to make some time to pivot back to this. Maybe this coming winter, don't see it happening in next few months for sure.

cdhorn avatar May 31 '25 01:05 cdhorn

Thank you

sam-m888 avatar Sep 16 '25 05:09 sam-m888