I was looking for a simple GTK+ GPS map widget with Python bindings and this project looked like a great fit. I installed osm-gps-map from the Arch community repos (https://www.archlinux.org/packages/community/x86_64/osm-gps-map/
) and tried to run the example code in the GitHub (mapviewer.py) using Python2.7, PyGTK version (2, 24, 0) and GTK version (2, 24, 30), and it produced these warnings/errors:
mapviewer.py:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
mapviewer.py:32: PyGIWarning: OsmGpsMap was imported without specifying a version first. Use gi.require_version('OsmGpsMap', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import OsmGpsMap as osmgpsmap
using library: <gi.repository.OsmGpsMap> (version 1.0)
Traceback (most recent call last):
File "mapviewer.py", line 278, in <module>
u = UI()
File "mapviewer.py", line 73, in __init__
self.osm = osmgpsmap.Map(user_agent="mapviewer.py/%s" % osmgpsmap._version)
Has anybody encountered this issue before? It seems like the Python bindings might not have installed properly on my machine, but when I tried to build from source, it seemed the instructions on your website were out of date regarding the Python bindings (ie. there is no /python folder in the source anymore.)