# Geography Views fail to initialize

**URL:** <https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198>\
**Category:** Help\
**Created:** [February 9, 2021, 3:39pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198 "2021-02-09T15:39:52Z")\
**Posts on this page:** 12\
**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:** [February 9, 2021, 3:39pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/1 "2021-02-09T15:39:52Z")

</div>

Gramps 5.1.3-2 for Win10

I did an experiment the other day and may have messed up my Geography view. I’m hoping someone will have a suggestion before I have to fall back to re-installing Gramps. (I’ve applied quite a few patches… so I’m forlornly hoping to avoid a re-install.)

It seems to be stuck on initializing on my last Map Service selection. (Which was a cached set of watercolor map backdrop tiles.) So the first step would seem to be resetting to the default Map Service. It looks like I have to do that manually. I didn’t find that service in the `gramps.ini` or any of the Geography view mode `INI` files.

Where is the next file to check?

```
Traceback (most recent call last):
  File "C:\Program Files\GrampsAIO64-5.1.3\gramps\gui\viewmanager.py", line 809, in __create_page
    page = page_def(pdata, self.dbstate, self.uistate)
  File "C:\Program Files\GrampsAIO64-5.1.3\gramps\plugins\view\geoperson.py", line 215, in __init__
    nav_group)
  File "C:\Program Files\GrampsAIO64-5.1.3\gramps\plugins\lib\maps\geography.py", line 148, in __init__
    config.set('geography.personal-map', "")
  File "C:\Program Files\GrampsAIO64-5.1.3\gramps\gen\utils\configmanager.py", line 519, in set
    (section, setting))
AttributeError: No such config setting name: 'geography.personal-map'
```

---

<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:** [February 9, 2021, 4:21pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/2 "2021-02-09T16:21:04Z")

</div>

> [@emyoulation](#):
>
> `AttributeError: No such config setting name: 'geography.personal-map'`

You are trying to use a 5.2 geography module in 5.1.3. isn’t it ?

---

<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:** [February 9, 2021, 4:27pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/3 "2021-02-09T16:27:57Z")

</div>

Not to the best of my awareness. I had applied the tweak you listed elsewhere on this forum.

Searched yesterday for the 5.2 pre-release branch to allow an experiment with your Freeze Gramplets patch. Discovered that was 5.2 only and had just had to restore the 5 changed files from a 5.1.3-2 AIO install. (I did not find the 5.2 branch yet.) It is likely that my install of that 5.1.3-2 to a USB removable tweaked my User Directory.

I expect to have to rip out the main 5.1.3 and re-install. (But I am in the midst of putting together County all-known-places GEDCOM file for their local genealogical society and need to finish that first.)

---

<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:** [February 9, 2021, 4:40pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/4 "2021-02-09T16:40:37Z")

</div>

You need to modify:  
gramps/gen/config.py  
gramps/plugins/lib/maps/constants.py  
gramps/plugins/lib/maps/geography.py  
gramps/plugins/lib/maps/osmgps.py  
gramps/plugins/view/geoclose.py  
gramps/plugins/view/geofamclose.py  
gramps/plugins/view/geomoves.py  
gramps/plugins/view/geoperson.py  
gramps/plugins/view/geoplaces.py

I hope all will be functional.  
I think the best should be to work with master on a copy of your database.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [February 9, 2021, 4:51pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/5 "2021-02-09T16:51:41Z")

</div>

> [@emyoulation](#):
>
> So the first step would seem to be resetting to the default Map Service. It looks like I have to do that manually. I didn’t find that service in the `gramps.ini` or any of the Geography view mode `INI` files.

In the `gramps.ini`

[geography]  
;;map\_service=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:** [February 9, 2021, 4:56pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/6 "2021-02-09T16:56:42Z")

</div>

> [@DaveSch](#):
>
> [geography]  
> ;;map\_service=1

I thought that would be it too. (On my system, it was service 11.) After deleting that line entirely, the error still reported the same named service.

Am restoring the files that Serge suggested. _**[This worked! Yay! Thx Serge!]**_

---

<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:** [February 9, 2021, 5:46pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/7 "2021-02-09T17:46:43Z")

</div>

> [@DaveSch](#):
>
> map\_service

map service is the map provider (osm, google, …) defined in gramps/plugins/lib/maps/constants.py

# map providers

OPENSTREETMAP = 1  
OPENSTREETMAP\_RENDERER = 2  
OPENAERIALMAP = 3  
MAPS\_FOR\_FREE = 4  
OPENCYCLEMAP = 5  
OSM\_PUBLIC\_TRANSPORT = 6  
OSMC\_TRAILS = 7  
GOOGLE\_STREET = 8  
GOOGLE\_SATELLITE = 9  
GOOGLE\_HYBRID = 10  
VIRTUAL\_EARTH\_STREET = 11  
VIRTUAL\_EARTH\_SATELLITE = 12  
VIRTUAL\_EARTH\_HYBRID = 13  
YAHOO\_STREET = 14  
YAHOO\_SATELLITE = 15  
YAHOO\_HYBRID = 16  
PERSONAL = 30

---

<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:** [February 9, 2021, 5:59pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/8 "2021-02-09T17:59:47Z")

</div>

I had also fat-fingered a map service change on the Geography Context menu and Cleared the Tiles Cache on the Personal Maps by mistake.

Do you think that might have been the source of the initialization error?

---

<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:** [February 9, 2021, 6:02pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/9 "2021-02-09T18:02:09Z")

</div>

By the way… the aesthetics of the water color map tiles really suited plotting of pioneer settlements.

Is that going to be one of the standard map services?

---

<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:** [February 9, 2021, 6:11pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/10 "2021-02-09T18:11:20Z")

</div>

> [@emyoulation](#):
>
> I had also fat-fingered a map service change on the Geography Context menu and Cleared the Tiles Cache on the Personal Maps by mistake.
> 
> Do you think that might have been the source of the initialization error?

I don’t think so. If you removes the tiles, you start again to download tiles.

---

<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:** [February 9, 2021, 6:15pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/11 "2021-02-09T18:15:51Z")

</div>

> [@emyoulation](#):
>
> Is that going to be one of the standard map services?

No. This map management is different. And only a few users want to use them. This is provided with the geography views, because they are available in the narrative web. Many webs use those maps.  
It is to have the same view in the geography and in the web.

---

<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:** [March 11, 2021, 6:16pm UTC](https://gramps.discourse.group/t/geography-views-fail-to-initialize/1198/12 "2021-03-11T18:16:29Z")

</div>

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