[GRASS-user] Problems launching GRASS 7.2

alonso alonsarp at um.es
Wed May 10 00:31:33 PDT 2017


Hi:

I have a problem when launching GRASS 7.2 that I compiled it in a Debian 
8.6 machine with apparently no problem:

My configure call is:

CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common 
-Wextra -Wunused" \
CXXFLAGS="-g -Wall" \
./configure \
    --prefix=/usr/local \
    --with-gdal \
    --with-proj --with-proj-share=/usr/share \
    --with-glw --with-nls --with-readline \
    --with-cxx --enable-largefile --enable-shared \
    --with-freetype \
    --with-freetype-includes=/usr/include/freetype2 \
    --with-sqlite --with-cairo \
    --with-python=/usr/bin/python-config \
    --with-geos=/usr/local/bin/geos-config  \
    --with-blas \
    --with-lapack --with-lapack-includes=/usr/lib/lapack \
    --with-liblas=yes \
    --with-netcdf=/usr/bin/nc-config --with-odbc=yes \
    --with-openmp=yes --with-pthread=yes --with-postgres=yes \
    --with-postgres-includes=/usr/local/pgsql/include \
    --with-postgres-libs=/usr/local/pgsql/lib \
    --with-tcltk-includes=/usr/include/tcl8.6/ \
    --with-x --x-libraries=/usr/lib/x86_64-linux-gnu \
    --with-wxwidgets --libdir=/usr/local/lib --includedir=/usr/local/include

and the answer is:

GRASS is now configured for:  x86_64-pc-linux-gnu

   Source directory:           /usr/local/grass-7.2.1
   Build directory:            /usr/local/grass-7.2.1
   Installation directory:     ${prefix}/grass-7.2.1
   Startup script in directory:${exec_prefix}/bin
   C compiler:                 gcc -g -Wall 
-Werror-implicit-function-declaration -fno-common -Wextra -Wunused
   C++ compiler:               c++ -g -Wall
   Building shared libraries:  yes
   OpenGL platform:            X11

   MacOSX application:         no
   MacOSX architectures:
   MacOSX SDK:

   BLAS support:               yes
   BZIP2 support:              no
   C++ support:                yes
   Cairo support:              yes
   DWG support:                no
   FFTW support:               yes
   FreeType support:           yes
   GDAL support:               yes
   GEOS support:               yes
   LAPACK support:             yes
   Large File support (LFS):   yes
   libLAS support:             yes
   MySQL support:              no
   NetCDF support:             yes
   NLS support:                yes
   ODBC support:               yes
   OGR support:                yes
   OpenCL support:             no
   OpenGL support:             yes
   OpenMP support:             yes
   PDAL support:               no
   PNG support:                yes
   POSIX thread support:       yes
   PostgreSQL support:         yes
   Readline support:           yes
   Regex support:              yes
   SQLite support:             yes
   TIFF support:               yes
   X11 support:                no

It compiles without any problem and no errors are reported.

But when I try to run the program I have this python error and, although 
the command line interface works perfectly, I am not able to access the 
python graphical interface.


GRASS 7.2.1 (CursoGRASS):~ > Traceback (most recent call last):
   File "/usr/local/grass-7.2.1/gui/wxpython/wxgui.py", line 158, in 
<module>
     sys.exit(main())
   File "/usr/local/grass-7.2.1/gui/wxpython/wxgui.py", line 145, in main
     app = GMApp(workspaceFile)
   File "/usr/local/grass-7.2.1/gui/wxpython/wxgui.py", line 48, in __init__
     wx.App.__init__(self, False)
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 
8628, in __init__
     self._BootstrapApp()
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 
8196, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "/usr/local/grass-7.2.1/gui/wxpython/wxgui.py", line 92, in OnInit
     workspace=self.workspaceFile)
   File "/usr/local/grass-7.2.1/gui/wxpython/lmgr/frame.py", line 131, 
in __init__
     self._moduleTreeBuilder = LayerManagerModuleTree()
   File "/usr/local/grass-7.2.1/gui/wxpython/lmgr/menudata.py", line 66, 
in __init__
     self, filename, expandAddons=expandAddons)
   File "/usr/local/grass-7.2.1/gui/wxpython/core/menutree.py", line 67, 
in __init__
     expAddons(xmlTree)
   File "/usr/local/grass-7.2.1/gui/wxpython/core/toolboxes.py", line 
364, in expandAddons
     _expandAddonsItem(root)
   File "/usr/local/grass-7.2.1/gui/wxpython/core/toolboxes.py", line 
547, in _expandAddonsItem
     addons = _getAddons()
   File "/usr/local/grass-7.2.1/gui/wxpython/core/toolboxes.py", line 
507, in _getAddons
     output = gcore.read_command('g.extension', quiet=True, flags='ag')
   File "/usr/local/grass-7.2.1/etc/python/grass/script/core.py", line 
458, in read_command
     process = pipe_command(*args, **kwargs)
   File "/usr/local/grass-7.2.1/etc/python/grass/script/core.py", line 
433, in pipe_command
     return start_command(*args, **kwargs)
   File "/usr/local/grass-7.2.1/etc/python/grass/script/core.py", line 
377, in start_command
     return Popen(args, **popts)
   File "/usr/local/grass-7.2.1/etc/python/grass/script/core.py", line 
74, in __init__
     subprocess.Popen.__init__(self, args, **kwargs)
   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
     errread, errwrite)
   File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
     raise child_exception
OSError: [Errno 2] No such file or directory


Any hints?

Thanks in advance.

Paco

-- 
Francisco Alonso SarrĂ­a
Instituto del Agua y del Medio Ambiente
Universidad de Murcia
E-30001- Murcia
Telfno: +34 868888695



More information about the grass-user mailing list