osm-gps-map icon indicating copy to clipboard operation
osm-gps-map copied to clipboard

OsmGpsMap - Glade-previewer does not want to load it.

Open KhazAkar opened this issue 3 years ago • 5 comments

Hi! I've tried to use OsmGpsMap in glade 3.28.1, but glade-previewer complains with following error:

Couldn't load builder definition: ../../OpenTacho.glade:122:1 Invalid object type 'OsmGpsMap'

When I remove it from glade UI, it loads fine. Widget is added in extra templates menu: image

Any idea how I can resolve this problem?

KhazAkar avatar Sep 03 '21 21:09 KhazAkar

Maybe it's because ver 1.2 haven't had corrected catalog file... see PR #84

I should've made release quite some time ago..

johnny-bit avatar Sep 04 '21 08:09 johnny-bit

I've tested it on git master branch to be quite honest, not on official 1.2 release.

KhazAkar avatar Sep 04 '21 09:09 KhazAkar

Dunno. I don't know much about glade. @dakk - would you be able to help with the issue here?

johnny-bit avatar Sep 04 '21 10:09 johnny-bit

I think something with the versions in general is a little bit strange.

In Ubuntu

uname@hostname:~$ apt show libosmgpsmap-1.0-1
Package: libosmgpsmap-1.0-1
Version: 1.2.0-1build1
Priority: optional
Section: universe/libs
Source: osm-gps-map
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian GIS Project <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 142 kB
Depends: libc6 (>= 2.29), libcairo2 (>= 1.2.4), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.19.12), libsoup2.4-1 (>= 2.41.90)
Conflicts: libosmgpsmap-1.0-0
Replaces: libosmgpsmap-1.0-0
Homepage: https://nzjrs.github.com/osm-gps-map/
Task: ubuntustudio-photography
Download-Size: 41,4 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
Description: GTK+ library to embed OpenStreetMap maps
 libosmgpsmap is a library to embed maps in applications that when given GPS
 co-ordinates, draws a GPS track, and points of interest on a moving map
 display. Downloads map data from a number of websites, including
 openstreetmap.org, openaerialmap.org and others.

it is called 1.0-1 but the Version then is 1.2.0?

Using

gi.require_version("OsmGpsMap", "1.0")

works but

gi.require_version("OsmGpsMap", "1.2")

fails... Already played around a lot but didn't get it running the way I think it should run...

q-wertz avatar Sep 17 '21 10:09 q-wertz

I think something with the versions in general is a little bit strange.

In Ubuntu

uname@hostname:~$ apt show libosmgpsmap-1.0-1
Package: libosmgpsmap-1.0-1
Version: 1.2.0-1build1
Priority: optional
Section: universe/libs
Source: osm-gps-map
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian GIS Project <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 142 kB
Depends: libc6 (>= 2.29), libcairo2 (>= 1.2.4), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.19.12), libsoup2.4-1 (>= 2.41.90)
Conflicts: libosmgpsmap-1.0-0
Replaces: libosmgpsmap-1.0-0
Homepage: https://nzjrs.github.com/osm-gps-map/
Task: ubuntustudio-photography
Download-Size: 41,4 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
Description: GTK+ library to embed OpenStreetMap maps
 libosmgpsmap is a library to embed maps in applications that when given GPS
 co-ordinates, draws a GPS track, and points of interest on a moving map
 display. Downloads map data from a number of websites, including
 openstreetmap.org, openaerialmap.org and others.

it is called 1.0-1 but the Version then is 1.2.0?

Using

gi.require_version("OsmGpsMap", "1.0")

works but

gi.require_version("OsmGpsMap", "1.2")

fails... Already played around a lot but didn't get it running the way I think it should run...

This is an error of the package on apt; as github said, the current version is 1.2. Regarding gi.require_version, there were still some wrong version numbers into he code.

Hi! I've tried to use OsmGpsMap in glade 3.28.1, but glade-previewer complains with following error:

Couldn't load builder definition: ../../OpenTacho.glade:122:1 Invalid object type 'OsmGpsMap'

When I remove it from glade UI, it loads fine. Widget is added in extra templates menu: image

Any idea how I can resolve this problem?

Glade-previewer does not work even for me: but if I create a glade file works well importing it on python/pygtk

dakk avatar Sep 17 '21 15:09 dakk