Permission error when generating narrated web site

Hi!

I’ve been using Gramps for a few weeks – so I’m a total noob.

Details:

  • Gramps 5.1.5-1
  • Windows 10

When I try to generate a narrated web site, I’m getting the following error:

196735: ERROR: narrativeweb.py: line 1516: [Errno 13] Permission denied: 'c:\\users\\rick\\.'
Traceback (most recent call last):
  File "C:\Program Files\GrampsAIO64-5.1.5\gramps\plugins\webreport\narrativeweb.py", line 1513, in copy_file
    shutil.copyfile(from_fname, dest)
  File "AIO/shutil.py", line 120, in copyfile
PermissionError: [Errno 13] Permission denied: 'c:\\users\\rick\\.'

I’m a little confused, as I’ve selected a different Destination for the output (that is fully writable) – why is Gramps still looking for the c:\users\rick ? I’m running Gramps as an Administrator.

After the error appears, I select Cancel a few times, and the output continues.

What am I doing wrong, and how can I avoid the error?

Thanks!

It looks like you added a period (.) to the destination folder. c:\users\rick\.

But as I said previously, that directory is not what I’m using:

GrampsError

I don’t understand why it is using c:\\users\\rick\\. at all. Gramps should be using the directory shown above, right?

The Narrative Web stores the chosen directory and other settings in an
initialization file. On my Linux system, at least some of the settings
are stored in ~/gramps/gramps51/gramps.ini, so you will get an error if
you don’t have permission to create or modify the initialization file.

Allen Crider

I believe that the C:\Users\<username> is also utilized for for creating a temp directory where parts of the report can be compounded and collated. Sub-directories there should be always writable by the user.

But the error message gives the impression that it dropped the filename from the OS action.

I can confirm that my C:\Users\Rick directory is definitely writable. I can generate other reports (e.g., Ancestral Report) report to that location.

This is only true for the dynamicweb. The narrativeweb creates the tar on the fly.

Can you provide the following file: report_options.xml which is normally in the $HOME/.gramps directory on UNIX systems and on C:\Users\<USER>\AppData\Roaming\gramps\report_options.xml on windows

This is only true for the dynamicweb. The narrativeweb creates the tar on the fly.

I am not using the Store web pages in .tar.gz archive.

Here’s the newweb section of the report_options.xml (I’ve been experimenting with all the report types, so it is also filled with everything else):

<?xml version="1.0" encoding="utf-8"?>
<options>
<last-common>
  <format name="html"/>
</last-common>
...
<module name="navwebpage MY TREE NAME">
  <option name="ancestortree" value="True"/>
  <option name="archive" value="False"/>
  <option name="birthorder" value="True"/>
  <option name="caluri" value="/WEBCAL"/>
  <option name="citationreferents" value="Outline"/>
  <option name="cmsuri" value="/NAVWEB"/>
  <option name="contactimg" value=""/>
  <option name="contactnote" value=""/>
  <option name="coordinates" value="False"/>
  <option name="create_thumbs_only" value="True"/>
  <option name="cright" value="7"/>
  <option name="css" value="default"/>
  <option name="date_format" value="1"/>
  <option name="dl_descr1" value="Smith Family Tree"/>
  <option name="dl_descr2" value="Johnson Family Tree"/>
  <option name="down_fname1" value="C:\Users\rick\"/>
  <option name="down_fname2" value="C:\Users\rick\"/>
  <option name="encoding" value="UTF-8"/>
  <option name="ext" value=".html"/>
  <option name="extrapage" value=""/>
  <option name="extrapagename" value=""/>
  <option name="familymappages" value="False"/>
  <option name="filter" value="0"/>
  <option name="footernote" value=""/>
  <option name="gallery" value="True"/>
  <option name="googlemapkey" value=""/>
  <option name="googleopts" value="FamilyLinks"/>
  <option name="graphgens" value="5"/>
  <option name="headernote" value=""/>
  <option name="homeimg" value=""/>
  <option name="homenote" value=""/>
  <option name="inc_addressbook" value="False"/>
  <option name="inc_events" value="False"/>
  <option name="inc_families" value="False"/>
  <option name="inc_gendex" value="False"/>
  <option name="inc_id" value="0"/>
  <option name="inc_places" value="False"/>
  <option name="inc_repository" value="False"/>
  <option name="inc_sources" value="False"/>
  <option name="inc_stats" value="False"/>
  <option name="incdownload" value="False"/>
  <option name="incl_private" value="False"/>
  <option name="introimg" value=""/>
  <option name="intronote" value=""/>
  <option name="linkhome" value="False"/>
  <option name="living_people" value="99"/>
  <option name="mapservice" value="OpenStreetMap"/>
  <option name="maxinitialimageheight" value="600"/>
  <option name="maxinitialimagewidth" value="800"/>
  <option name="name_format" value="1"/>
  <option name="navigation" value="Horizontal"/>
  <option name="notes" value="True"/>
  <option name="pid" value="I328692713"/>
  <option name="placemappages" value="False"/>
  <option name="prevnext" value="True"/>
  <option name="reference_sort" value="True"/>
  <option name="relation" value="False"/>
  <option name="securesite" value="False"/>
  <option name="showbirth" value="True"/>
  <option name="showdeath" value="False"/>
  <option name="showhalfsiblings" value="False"/>
  <option name="showparents" value="False"/>
  <option name="showpartner" value="False"/>
  <option name="target" value="E:\Rick Geneology\tree"/>
  <option name="title" value="MY TITLE HERE"/>
  <option name="trans" value="default"/>
  <option name="unused" value="True"/>
  <option name="usecal" value="False"/>
  <option name="usecms" value="False"/>
  <option name="years_past_death" value="0"/>
  <format name="html"/>
  <style name="default"/>
</module>
</options>

I see the down_fname options with the directory in question. Do I need to change them? (Although I don’t fully understand why – as the directory is writable.)

Thanks,

-R

I think this is not the problem because the include download page is not selected:

<option name="incdownload" value="False"/>

What is the name of your database ?
Do you have others <module name="navwebpage …> sections ?

The section name in the report_options.xml is generated like that : “narrativeweb” = " " + “database_name”

@ricks99 Rick,

If you’re uncomfortable posting your entire report_options.xml file, how about using the Private Messaging on this forum to send it to @SNoiraud Serge? (You might have to ZIP it to successfully attach.)

Because this is a chunky format, you might have to iteratively (and frustratingly) respond a multitude of times if you only send the chunks that SEEM to be related.

Serge can still respond here so that this thread helps built our support knowledgebase.

I have only a single navwebpage section.

From @emyoulation 's suggestion, I’m going to PM my complete reports_options.xml to you, and we can take this offline. When resolved, you can summarize the issue here.

Thanks, all!

So, this will (surely) be a stupid question, but how in the world do I compse a new message? On my The Gramps Project (Discourse Forum & Mailing List) page, there’s no obvious Create/Send new message button?

And on @SNoiraud 's profile page (The Gramps Project (Discourse Forum & Mailing List) - Collecting our past.) I can’t find any sort of Send me a message link?

Sorry for being so dense. :frowning:

Every system is different. So don’t worry about asking questions.

I click on the avatar on one of the person’s responses in the thread. A dialog appears that has a “Message” button. This opens a message editor with the originating thread quoted.

I’ve started a PM thread with you, Serge & me. Feel free to start your own instead. (I tend to aggravate people, so it might be a good idea.)

Thanks for the pointer (I’ve responded to the PM).

FWIW, when I click your (or anyone’s avatar), I do not see the big, blue Message button. :face_with_diagonal_mouth:

grampsMessage

1 Like

Ahhh. Your account here on Discourse is only a day old. It still has anti-SPAMbot restrictions. I will bump your 30 day probation.

1 Like