[GRASS-user] Unable to execute nviz on GRASS 7.8.3dev compile version

Hi, dear members: In order to avoid the

ERROR: Unable to open element file <> for 
<WIND  >

On grass 7.8.2-1 ubuntu version, I tried to compile the updated version (7.8.3dev). It seems that everything works in compilation step, but when I try to use nvis (3d View), I got this message on console:

Starting 3D view mode...                                                        
NotImplementedError
The above exception was the direct cause of the following
exception:
Traceback (most recent call last):
  File "/home/kenneth/Descargas/grass78/grass-7.8.git_src_sn
apshot_2020_04_25/dist.x86_64-pc-linux-
gnu/gui/wxpython/mapdisp/toolbars.py", line 244, in
OnSelectTool
self.parent.AddNviz()
  File "/home/kenneth/Descargas/grass78/grass-7.8.git_src_sn
apshot_2020_04_25/dist.x86_64-pc-linux-
gnu/gui/wxpython/mapdisp/frame.py", line 392, in AddNviz
lmgr=self._layerManager)
  File "/home/kenneth/Descargas/grass78/grass-7.8.git_src_sn
apshot_2020_04_25/dist.x86_64-pc-linux-
gnu/gui/wxpython/nviz/mapwindow.py", line 103, in __init__
glcanvas.GLCanvas.__init__(self, parent, id,
attribList=attribs)
SystemError
:
<method-wrapper '__init__' of GLWindow object at
0x7f8e38a41f78> returned a result with an error set

What am I doing wrong? I follow the steps at: https://grasswiki.osgeo.org/wiki/Compile_and_Install and https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu My compilation parameters were:

# "configure" source code for local machine (checks for CPU type etc):
MYCFLAGS='-O2 -fPIC -fno-common -fexceptions -std=gnu99 -fstack-protector -m64 -g -Wall'
#MYCXXFLAGS=''
MYLDFLAGS='-Wl,--no-undefined -Wl,-z,now'

LDFLAGS="$MYLDFLAGS" CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure \
  --with-cxx \
  --enable-largefile \
  --with-proj --with-proj-share=/usr/share/proj \
  --with-gdal=/usr/bin/gdal-config \
  --with-python \
  --with-geos \
  --with-sqlite \
  --with-nls \
  --with-zstd \
  --with-pdal \
  --with-cairo --with-cairo-ldflags=-lfontconfig \
  --with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
  --with-wxwidgets \
  --with-fftw \
  --with-motif \
  --with-opengl-libs=/usr/include/GL \
  --with-postgres=yes --with-postgres-includes="/usr/include/postgresql" \
  --without-netcdf \
  --without-mysql \
  --without-odbc \
  --without-openmp \
  --without-ffmpeg

My environment is:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic
geos-config --version
3.8.0
gdal-config --version
3.0.4

proj
Rel. 7.0.0, March 1st, 2020

flex --version
flex 2.6.4

python --version
Python 3.6.9

gcc --version
gcc (Ubuntu 9.3.0-11ubuntu0~18.04.1) 9.3.0

glxinfo | grep "OpenGL version"
OpenGL version string: 3.3.0 NVIDIA 340.108

Thank you for your help.


Sent from the Grass - Users mailing list archive at Nabble.com.

I got the answer.
I have to change in some python scripts the function time.clock() because
the python version.

Acording to this message:

https://github.com/OSGeo/grass/issues/536
<https://github.com/OSGeo/grass/issues/536&gt;

Have a nice day.

Kenneth

--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

Hi,

On Thu, Apr 30, 2020 at 4:43 AM krcabrer <krcabrer@gmail.com> wrote:

I got the answer.
I have to change in some python scripts the function time.clock() because
the python version.

Acording to this message:

https://github.com/OSGeo/grass/issues/536

Yes, it has already been fixed. Please try
GRASS GIS 7.8.3RC2
https://github.com/OSGeo/grass/releases/tag/7.8.3RC2

which contains the fix.

Markus

--
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog