kartoza / docker-qgis-desktop

A docker project that will run your QGIS desktop app inside a docker container
GNU General Public License v2.0
98 stars 46 forks source link

QGIS 2.8 build no longer has qgis executable. #35

Open thadk opened 5 years ago

thadk commented 5 years ago

The 2.8.9 and 2.8.4 version (and perhaps the 2.6 version) seems to have a build issue so the qgis executable is not created. I tried the docker-hub version and tried to build my own and saw a similar issue.

I need this for a legacy build so I'm going to keep working around this but if you have any tips, welcome. Maybe worth retiring 2.8 as it doesn't contain qgis.

docker exec -t 9b14520d20d54017b4f12e450f5e28797d0ebce19592d6942fc23fd236c9906f  \
    qgis  \
     --code /opt/data/rasterScripts/lacPopulationZonalStats.py \
     --nologo \
        /opt/data/data/shp/continents-levels2-LAC_pop.shp
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"qgis\": executable file not found in $PATH": unknown

Here is the last error of the build process.

$ ./build.sh
Sending build context to Docker daemon  52.22kB
Step 1/6 : FROM ubuntu:16.04
16.04: Pulling from library/ubuntu
b234f539f7a1: Pull complete
55172d420b43: Pull complete
5ba5bbeb6b91: Pull complete
43ae2841ad7a: Pull complete
f6c9c6de4190: Pull complete
Digest: sha256:b050c1822d37a4463c01ceda24d0fc4c679b0dd3c43e742730e2884d3c582e3a
Status: Downloaded newer image for ubuntu:16.04
 ---> 5e8b97a2a082
Step 2/6 : MAINTAINER Tim Sutton<tim@kartoza.com>
 ---> Running in b24769e6ae12
Removing intermediate container b24769e6ae12
 ---> 417ab3347df7
Step 3/6 : ENV LANG C
...
[ 62%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/symbology-ng/qgssmartgroupeditordialog.cpp.o
[ 62%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/attributetable/qgsattributetabledelegate.cpp.o
The command '/bin/sh -c /build/scripts/getDeps.sh &&     /build/scripts/getCode.sh &&     /build/scripts/make.sh &&     /build/scripts/clean.sh' returned a non-zero code: 137
Gustry commented 5 years ago

Just for curiosity, why are you using QGIS 2.8? You should pull 2.18 IMHO. (or if it's a very legacy issue, 2.14?)

thadk commented 5 years ago

I have python scripts written that use the zonal statistics processing API and it seems to change after 2.08.

I was able to confirm 2.08.3 on DockerHub still works. I saved a copy of an old Kartoza 2.08.9 build to https://hub.docker.com/r/thadk/qgis-desktop for later use until I can update my script to QGIS3.2+. Thanks for the help.

Overall, thanks for making and upkeeping this kartoza image and enabling my little side project: https://github.com/thadk/PoliticalAtlas

mazzma12 commented 5 years ago

Upvoting as I ran into the same issue, version 2.8 does not have executable. I just need a QGIS 2.X version so I will use the 2.18 as suggested