Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS 2.8 build no longer has qgis executable. #35

Open
thadk opened this issue Jul 6, 2018 · 3 comments
Open

QGIS 2.8 build no longer has qgis executable. #35

thadk opened this issue Jul 6, 2018 · 3 comments

Comments

@thadk
Copy link
Contributor

thadk commented Jul 6, 2018

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<[email protected]>
 ---> 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
Copy link
Contributor

Gustry commented Jul 6, 2018

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
Copy link
Contributor Author

thadk commented Jul 6, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants