Dynamic Web Report B

I’m very interested by that version B of DWR I’ve discovered with Ulrich post. DWR (the standard A version) which I use as my main genealogy website.

But I’ve also seen on github that version is 4 years old, so before current Gramps version.

This brings me to a few questions:

  • Does this version work with the current version of Gramps?
  • Could it be deployed by the Gramps developers as the version that ships with Gramps instead of the current one?
1 Like

I’m using Gramps v5.1.6 on Win10 and DWR B is my “every day work horse” for some downstream tasks. I had to downgrade from v5.2.2 because of the speed issues with this version, but I’ve not noticed any problems with DWR B. So I guess the answer to your question is “yes” but propably, you have to try it for yourself.

1 Like

It didn’t seem to work for me when I:

  1. didn’t uninstall the existing Dynamic Web report
  2. followed the link to GitHub
  3. downloaded the ZIP file
  4. extracted the contents
  5. copied the resulting folder (and all its contents) to the plugins folder (I’m on indows 11 and the path given on GitHub is the correct one to the plugins folder except you first have to ‘show hidden files’
  6. opened Gramps

There was only one option option for DynamicWeb and it produced something that looked the same as the original version.

I then closed Gramps, renamed the original DynamicWeb folder, removed the ‘B’ from the name the new DynamicWeb folder and restarte Gramps. I still only got a report that looked like the original version.

However, that doesn’t mean it doesn’t work, it just means I’ve not got it to work.

1 Like

Can you give idiot proof instructions on how you installed it? As my previous post shows I failed using Win 11 Pro and Gramps 5.2.3.

The gramplet plugin registration is for Version 5.1 but you are using 5.2

So the 1st step is to open the file ending in .gpr.py with a text editor. Then look for a line that has both version and 5.1, then change that to 5.2

Save the file and restart Gramps

1 Like

Hmm, not really. I’m trying to recall the steps:

(1) Download the ZIP file from GitHub and decompress it into the Gramps Plugin folder with a new folder name (the standard version is in ..\plugins\DynamicWeb)

C:\Users\...\AppData\Roaming\gramps\gramps51\plugins\DynamicWebB

(2) There should be a file named dynamicwebB.gpr.py in this new folder. The content of this file (besides the comments) is:

register(REPORT,
	id = 'DynamicWebB',
	name = _("Dynamic Web Report B"),
	description =  _("Produces dynamic web pages for the database"),
	version = '0.0.93',
	gramps_target_version = "5.1",
	status = STABLE,
	fname = 'dynamicwebB.py',
	category = CATEGORY_WEB,
	reportclass = 'DynamicWebReport',
	optionclass = 'DynamicWebOptions',
	report_modes = [REPORT_MODE_GUI, REPORT_MODE_CLI],
	authors = ['Pierre Bélissent', 'mods by JV'],
	authors_email = ['xxxyyy@gmail.com'],
	require_active = True
)

I’m not 100 % sure what I had to change here, but I guess it was the name and the gramps_target_version. I guess this is the very change @emyoulation refers to.

(3) Now start Gramps and you should have both DWR reports available.

I think this was it.

1 Like

Thanks to all of you, I’ll try that.

But why this version haven’t been added to v5.2?

Humm. Not sure it works with 5.2.

Error in console:

2025-01-03 21:23:30.722: WARNING: _manager.py: line 333: Plugin error (from 'dynamicwebB'): cannot import name 'first_letter' from 'gramps.plugins.webreport.common' (C:\Program Files\GrampsAIO64-5.2.2\gramps\plugins\webreport\common.py)

Error while lauching it in Gramps:

The download hasn’t been published to the official addon collection.

So they probably developed for their own use. Either they are still using 5.1 or decided the 5.2 registration tweak wasn’t a hassle for users to tweak.

1 Like

Interesting. I tried looking in the original DynamicWeb. It imported from an entirely different module: the alphabeticindex.py module. The gramps/plugins/webreport/common.py doesn’t have a first_letter to import.

It looks like you use the Index feature and others do not.

Yeah! Magic! Now it works.

Thank you!!

1 Like

@emyoulation Sorry, I spoke too soon. Yes, it does now appear in the Web Pages menu but when I click on it I get this error:

I think that means that this plugin is not compatible with the Windows version of Gramps 5.2

That is the English version of the same French error dialog that Patrice reports above.

He notes that additional diagnostic feedback is in the console when that dialog appears. It is related to the indexing trying to import from the wrong module.

I’m afraid you’ve lost me there. I’m only a user, but one who knows enough about IT to be dangerous. Beyond simple editing I’m not a coder :smiley:

I am in the same category. However the error message in the console is very explicit. Line 333 240 of dynamicwebB' cannot find the first_letter to import from common.py module.
from gramps.plugins.webreport.common import first_letter

But the original dynamic web has:
from gramps.plugins.webreport.alphabeticindex import first_letter

If your Gramps reports the same thing to the console, all you have to do is edit line 333 to have the right path. The run again to see the next error, if any.

EDITED…
[–OK but what is the name of the file that holds this line? As yet I’ve not found it.–]
IGNORE THAT, I’ve found it now, sorry, couldn’t see for looking…

Thank you again. That fixes it, it runs without error now.

Many thanks for your patience with me, I appreciate it.

1 Like

@PLegoux , does this change allow the addon work for for you too?

This name change doesn’t seem necessary

An issue for 5.2 compatibility has been filed:

1 Like

The line number is 240.
Screenshot 2025-01-04 142203
If that was changed it will run on Win11.
I just noticed that the place names are not displayed by date.

2 Likes