Skip to content

AppImage requires osm-gps-map on Ubuntu #208

@florisvanvugt

Description

@florisvanvugt

Hi! Thanks for this great piece of software.
I'm on Ubuntu 24.04.2 and when I first tried to run the AppImage I imagined it would run as-is.
However I think it requires a package or perhaps several to be installed first.
Perhaps this does not require any changes in the software, but I'm just posting in case it's helpful for fellow Ubuntu users.

Details:
I initially tried to run the appimage as follows:

wget https://github.com/dakk/gweatherrouting/releases/download/v0.2/GWeatherRouting-x86_64.AppImage
chmod +x GWeatherRouting-x86_64.AppImage
./GWeatherRouting-x86_64.AppImage

This gave me the following error:

Traceback (most recent call last):
  File "gweatherrouting/gtk/mainwindow.py", line 27, in <module>
  File "gi/__init__.py", line 122, in require_version
ValueError: Namespace OsmGpsMap not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gweatherrouting/__main__.py", line 37, in <module>
  File "gweatherrouting/__main__.py", line 30, in start_ui_gtk
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 450, in exec_module
  File "gweatherrouting/gtk/mainwindow.py", line 29, in <module>
  File "gi/__init__.py", line 122, in require_version
ValueError: Namespace OsmGpsMap not available
[PYI-135497:ERROR] Failed to execute script '__main__' due to unhandled exception!

After some searching I figured I needed perhaps to install the OsmGpsMap app that it was referring to.
Here is what I tried:

sudo apt install libosmgpsmap-1.0-dev

Then when I ran gweatherrouting it works:

./GWeatherRouting-x86_64.AppImage

Of note: I had previously installed other packages (sudo apt install gobject-introspection python3-gdal libffi8 librsvg2-2 libgdal-dev) but this was before I tried the appimage, so I am not sure if they too are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions