Bug#1103354: TypeError: OsmGpsMap.MapTrack.add_point() takes exactly 2 arguments (1 given)

Jochen Sprickerhof jspricke at debian.org
Wed Apr 16 18:49:33 BST 2025


Package: gir1.2-osmgpsmap-1.0
Version: 1.2.0-3
Severity: normal

Hi,

running gpxviewer some.gpx results in:

Traceback (most recent call last):
  File "/usr/bin/gpxviewer", line 43, in <module>
    gui = MainWindow(ui_dir="%sui/" % prefix,files=files).main()
          ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gpxviewer/ui.py", line 213, in __init__
    self.lazyLoadFiles(files)
    ~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3/dist-packages/gpxviewer/ui.py", line 238, in lazyLoadFiles
    self.load_gpx(filename)
    ~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gpxviewer/ui.py", line 375, in load_gpx
    self.add_track(parent, track, color)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gpxviewer/ui.py", line 88, in add_track
    gpstrack.add_point(OsmGpsMap.MapPoint.new_degrees(point.latitude, point.longitude))
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OsmGpsMap.MapTrack.add_point() takes exactly 2 arguments (1 given)

This is the same error as reported here:

https://github.com/nzjrs/osm-gps-map/issues/106

And applying the patch from that issue make gpxviewer work again.

Can you please apply it to the package?

Thanks!

Jochen


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.22-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gir1.2-osmgpsmap-1.0 depends on:
ii  gir1.2-glib-2.0 [gir1.2-gobject-2.0]  2.84.1-1
ii  gir1.2-gtk-3.0                        3.24.49-3
ii  libosmgpsmap-1.0-1                    1.2.0-3

gir1.2-osmgpsmap-1.0 recommends no packages.

gir1.2-osmgpsmap-1.0 suggests no packages.

-- no debconf information



More information about the Pkg-grass-devel mailing list