[GRASS-dev] winGRASS addons - consolidation/fix release needed!!
Helmut Kudrnovsky
hellik at web.de
Sat Sep 7 03:07:09 PDT 2019
Helmut Kudrnovsky wrote
>>pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky <[hidden email]>
napsal:
>>> Do you have a list of your issues facing while winGRASS compiling?
>>
>>different ;-) I am closer to successful build. Now it fails compiling
>
> completly fresh git checkout here, still the already earlier mentioned
> issue
> in
>
> GRASS GIS 7.9.dev a9d2c0bd6 compilation log
> --------------------------------------------------
> Started compilation: Sat Sep 7 11:16:10 CEST 2019
> --
> Errors in:
> /usr/src/grass_trunk_git/grass/lib/pngdriver
> /usr/src/grass_trunk_git/grass/lib/psdriver
> [...]
>
> caused by
>
> if [ "" != "" ] ; then
> GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
> GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
> PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
> PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
> PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/usr/bin:/mingw64/bin/:/c/OSGeo4W64/bin:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w/lib:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w"
> LC_ALL=C LANG=C LANGUAGE=C --html-description < /dev/null | grep -v
> '
> </body>
> \|
> </html>
> ' > pngdriver.tmp.html ; fi
> VERSION_NUMBER=7.9.dev VERSION_DATE=2019 MODULE_TOPDIR=../.. \
> python3
> /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/tools/mkhtml.py
> pngdriver >
> /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/docs/html/pngdriver.html
> Fatal Python error: initfsencoding: unable to load the file system codec
> ModuleNotFoundError: No module named 'encodings'
>
> did a pacman -Syu in msys2 for an uptodate python
>
> pacman -Ql mingw-w64-x86_64-python3 > pac.log shows:
>
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__init__.py
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__pycache__/
> mingw-w64-x86_64-python3
> /mingw64/lib/python3.7/encodings/__pycache__/__init__.cpython-37.opt-1.pyc
> [...]
>
> package encodings should be there.
>
> maybe an intereference between msys/python3 and osgeo4w/python3
>
> will investigate ...
msys2:
myuser at DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python --version
Python 3.7.4
myuser at DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python3 -c "import encodings; print(encodings.__file__)"
C:/msys64/mingw64/lib/python3.7/encodings/__init__.py
myuser at DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python
Python 3.7.4 (default, Aug 15 2019, 18:17:27) [GCC 9.2.0 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import encodings
osgeo4w:
C:\>python --version
Python 3.7.0
C:\>python3 -c "import encodings; print(encodings.__file__)"
C:\OSGEO4~1\apps\Python37\lib\encodings\__init__.py
C:\>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import encodings
>>>
in package.sh
[...]
# Force Python3
# alias python=python3
export PYTHONPATH=
export PYTHONHOME=$OSGEO4W_ROOT_MSYS/apps/Python37
export PATH=$OSGEO4W_ROOT_MSYS/apps/Python37:$PATH
[...]
do we use msys2/py3 or osgeo4w/py3 for compilation?
-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
More information about the grass-dev
mailing list