<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2019 at 6:32 PM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I am trying to create a docker image with wxGUI.<br>
<br>
After hours of attempts (since Alpine does not offer the wxPython<br>
package, so it needs to be pip installed in the Dcokerfile) I got it<br>
build:<br>
<br>
<a href="https://hub.docker.com/r/neteler/docker-alpine-grass-gis-gui" rel="noreferrer" target="_blank">https://hub.docker.com/r/neteler/docker-alpine-grass-gis-gui</a><br>
<br>
# fetch image<br>
docker pull neteler/docker-alpine-grass-gis-gui<br>
<br>
# run image<br>
docker run -i -t --rm -v $(pwd):/tmp -v /tmp/.X11-unix:/tmp/.X11-unix<br>
-e uid=$(id -u) -e gid=$(id -g) -e DISPLAY=unix$DISPLAY --name grass77<br>
neteler/docker-alpine-grass-gis-gui grass77 --gui<br>
Starting GRASS GIS...<br>
WARNING: GRASS GUI not found. Please check your installation.<br>
Switching to text based interface mode.<br>
<br>
Hit RETURN to continue.<br>
<br>
As you see - no GUI while g.gui is there!?<br>
<br>
# interactive test<br>
docker run -i -t --rm -v $(pwd):/tmp -v /tmp/.X11-unix:/tmp/.X11-unix<br>
-e uid=$(id -u) -e gid=$(id -g) -e DISPLAY=unix$DISPLAY --name grass77<br>
neteler/docker-alpine-grass-gis-gui /bin/bash<br>
<br>
bash-5.0# grass77 /tmp/grassdata/nc_spm_08_grass7/user1/<br>
Starting GRASS GIS...<br>
WARNING: GRASS GUI not found. Please check your installation.<br>
Switching to text based interface mode.<br>
Hit RETURN to continue.<br>
Cleaning up temporary files...<br>
<br>
__________ ___ __________ _______________<br>
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/<br>
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \<br>
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /<br>
\____/_/ |_/_/ |_/____/____/ \____/___//____/<br>
<br>
Welcome to GRASS GIS <a href="http://7.7.dev" rel="noreferrer" target="_blank">7.7.dev</a>\<br>
GRASS GIS homepage: <a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a><br>
This version running through: Bash Shell (/bin/bash)<br>
Help is available with the command: g.manual -i<br>
See the licence terms with: g.version -c<br>
See citation options with: g.version -x<br>
Start the GUI with: g.gui wxpython<br>
When ready to quit enter: exit<br>
<br>
GRASS <a href="http://7.7.dev" rel="noreferrer" target="_blank">7.7.dev</a> (nc_spm_08_grass7):/grassdb > g.gui<br>
ERROR: Your installation doesn't include GUI, exiting.<br></blockquote><div><br></div><div><br></div><div>not sure if that helps but this error probably comes from general/g.gui/main.c:</div><div><br></div> sprintf(progname, "%s/gui/wxpython/wxgui.py", G_gisbase());<br> if (access(progname, F_OK) == -1)<br><div> G_fatal_error(_("Your installation doesn't include GUI, exiting.")); </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
GRASS <a href="http://7.7.dev" rel="noreferrer" target="_blank">7.7.dev</a> (nc_spm_08_grass7):/grassdb > ldd $(which g.gui)<br>
/lib/ld-musl-x86_64.so.1 (0x7fcf65ef1000)<br>
<a href="http://libgrass_gis.7.7.so" rel="noreferrer" target="_blank">libgrass_gis.7.7.so</a> => /usr/local/grass77/lib/<a href="http://libgrass_gis.7.7.so" rel="noreferrer" target="_blank">libgrass_gis.7.7.so</a><br>
(0x7fcf65e71000)<br>
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fcf65ef1000)<br>
<a href="http://libgrass_datetime.7.7.so" rel="noreferrer" target="_blank">libgrass_datetime.7.7.so</a> =><br>
/usr/local/grass77/lib/<a href="http://libgrass_datetime.7.7.so" rel="noreferrer" target="_blank">libgrass_datetime.7.7.so</a> (0x7fcf65e65000)<br>
libz.so.1 => /lib/libz.so.1 (0x7fcf65c4e000)<br>
libbz2.so.1 => /usr/lib/libbz2.so.1 (0x7fcf65c3f000)<br>
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x7fcf65b99000)<br>
<br>
bash-5.0# python3<br>
Python 3.7.3 (default, Apr 17 2019, 11:48:37)<br>
[GCC 8.3.0] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import wx<br>
<br>
Looks ok.<br>
<br>
I suspect some missing lib on my Alpine image but have no idea which one.<br>
<br>
Does anyone has an idea?<br>
<br>
thanks,<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a></blockquote></div></div>