Package: gramps Version: 4.2.2~dfsg-1 Severity: normal Dear Maintainer,
today i discovered that the "geography view" stopped working (i'm pretty sure it
did work, but don't know the last version of gramps where this is true).
The problem is, that I store the coordinates of my places in
degree/minutes/seconds (e.g. "51° 28′ 48″ N") and gramps fails to convert these
coordinates into floating point (51.48).
Btw, gramps does a syntax-check when I enter the coordinates, and verifies that
the above coordinates are fine; but when I want to display the places, I get a
traceback:
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line 966,
> in __create_page
> page_display = page.get_display()
> File "/usr/lib/python3/dist-packages/gramps/gui/views/pageview.py", line
> 389, in get_display
> self.top = self.build_interface()
> File "/usr/lib/python3/dist-packages/gramps/gui/views/pageview.py", line
> 162, in build_interface
> widget = self.build_widget()
> File "/usr/lib/python3/dist-packages/gramps/plugins/lib/maps/osmgps.py",
> line 115, in build_widget
> self.change_map(None, config.get("geography.map_service"))
> File "/usr/lib/python3/dist-packages/gramps/plugins/lib/maps/osmgps.py",
> line 172, in change_map
> self.goto_handle(handle=None)
> File "/usr/lib/python3/dist-packages/gramps/plugins/view/geoplaces.py",
> line 176, in goto_handle
> self.build_tree()
> File "/usr/lib/python3/dist-packages/gramps/plugins/view/geoplaces.py",
> line 194, in build_tree
> self._createmap(active)
> File "/usr/lib/python3/dist-packages/gramps/plugins/view/geoplaces.py",
> line 279, in _createmap
> self.osm.set_center_and_zoom(float(place.get_latitude()),
> ValueError: could not convert string to float: '51° 28′ 48″ N'
Attached is a minimal database (consisting of a single place), that exhibits
the problem.
Basically, you only have to go to the "Geography" view and select "All known
places".
(sometimes i have to switch to another menu and then back after that).
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gramps depends on:
ii gir1.2-gtk-3.0 3.18.8-1
ii librsvg2-2 2.40.13-3
ii python3-bsddb3 6.1.0-1+b2
ii python3-gi 3.18.2-2
ii python3-gi-cairo 3.18.2-2
pn python3:any <none>
ii xdg-utils 1.1.1-1
Versions of packages gramps recommends:
ii gir1.2-gexiv2-0.10 0.10.3-2
ii gir1.2-osmgpsmap-1.0 1.1.0-1
ii graphviz 2.38.0-12+b1
ii python3-icu 1.9.2-2+b2
Versions of packages gramps suggests:
ii fonts-freefont-ttf 20120503-4
pn gir1.2-goocanvas-2.0 <none>
ii gir1.2-gtkspell3-3.0 3.0.7-2
ii python3-pil 3.1.1-1
ii rcs 5.9.4-3
-- no debconf information
places-bug.gramps
Description: application/gzip

