rinigus / pure-maps

Maps and navigation
https://rinigus.github.io/pure-maps/
GNU General Public License v3.0
252 stars 43 forks source link

Flatpak build fails with error #109

Closed M4rtinK closed 5 years ago

M4rtinK commented 5 years ago

As flatpak looks like a good fit for distributing both modRana and my WiP Twitter app (Tsubame) I've decided to give it a try by first building the Pure Maps flatpak to get the hang of it. Unfortunately the build ends for me with an error (running on Fedora 29):

$ flatpak-builder --repo=../flatpak --force-clean ../build-dir packaging/flatpak/io.github.rinigus.PureMaps.json
Emptying app dir '../build-dir'
Downloading sources
Fetching git repo https://git.merproject.org/mer-core/nemo-qml-plugin-dbus.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0)
Fetching git repo https://github.com/thp/pyotherside.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/rinigus/pkg-mapbox-gl-native.git, ref refs/heads/sfos
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/rinigus/mapbox-gl-native.git, ref refs/heads/sfos-devel
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/rinigus/mapbox-gl-qml.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/rinigus/qmlrunner.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Starting build of io.github.rinigus.PureMaps
Cache hit for nemodbus, skipping build
Cache hit for pyotherside, skipping build
Cache hit for python3-pyxdg, skipping build
Cache hit for mapbox-gl-native-qt, skipping build
Cache hit for mapbox-gl-qml, skipping build
Cache hit for qmlrunner, skipping build
Cache miss, checking out last cache hit
========================================================================
Building module pure-maps in /home/martink/data/coding/gps/pure-maps/.flatpak-builder/build/pure-maps-3
========================================================================
Running: make platform-qtcontrols
rm qml/platform || true
rm: cannot remove 'qml/platform': No such file or directory
ln -s platform.qtcontrols qml/platform
Running: tools/manage-keys inject . || true
Traceback (most recent call last):
  File "tools/manage-keys", line 5, in <module>
    from apikeys import Keys
ImportError: No module named 'apikeys'
Running: make PREFIX=/app NAME=pure-maps install
Installing Python files...
mkdir -p /app/share/pure-maps/poor
cp poor/*.py /app/share/pure-maps/poor
mkdir -p /app/share/pure-maps/poor/gpxpy
cp thirdparty/gpxpy/gpxpy/*.py /app/share/pure-maps/poor/gpxpy
cp: cannot stat 'thirdparty/gpxpy/gpxpy/*.py': No such file or directory
make: *** [Makefile:59: install] Error 1
Error: module pure-maps: Child process exited with code 2

Let me know if you need any more information. :)

rinigus commented 5 years ago

Pure Maps has Git submodules and they all have to be pulled :) . I am preparing now for submission to Flathub and the script (JSON) will move over to there, as for OSM Scout Server.

M4rtinK commented 5 years ago

Indeed! Worked just fine once I've pulled the submodules. :)