[GRASS-dev] grass7/0_trunk/release fail to start

A fresh, (make dist)clean(ed) and error-free configured & compiled grass7_trunk under Funtoo (3.12.18-KS.01) won't launch:

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70
/usr/bin/python2.7: can't open file '/osgeo/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py': [Errno 2] No such file or directory
Received EXIT message from GUI.

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70 -text
ERROR: Unable to start GRASS. You can:
  - Launch GRASS with '-gui' switch (`grass70 -gui`)
  - Create manually GISRC file (/home/nik/.grass7/rc)
  - Launch GRASS with path to the location/mapset as an argument (`grass70 /path/to/location/mapset`)
Exiting...

# ./grass70 -text /geo/grassdb/wgs84/PERMANENT/
Starting GRASS GIS...
Traceback (most recent call last):
   File "./grass70", line 1386, in <module>
     check_lock()
   File "./grass70", line 857, in check_lock
     ret = call([gfile("etc", "lock"), lockfile, "%d" % os.getpid()])
   File "./grass70", line 154, in call
     return subprocess.call(cmd, **kwargs)
   File "/usr/lib64/python2.7/subprocess.py", line 522, in call
     return Popen(*popenargs, **kwargs).wait()
   File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
     errread, errwrite)
   File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
     raise child_exception
OSError: [Errno 2] No such file or directory

I am searching the mail archive and though I find some references, they don't help me trace my error. I configured and compiled grass64 in a similar way, and it just works fine. Any hints?

Regards, Nikos

On Thu, May 8, 2014 at 10:11 AM, Nikos Alexandris
<nik@nikosalexandris.net> wrote:

A fresh, (make dist)clean(ed) and error-free configured & compiled
grass7_trunk under Funtoo (3.12.18-KS.01) won't launch:

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70

Do you use trunk or release branch?

/usr/bin/python2.7: can't open file
'/osgeo/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py':
[Errno 2] No such file or directory
Received EXIT message from GUI.

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70 -text

To me it looks like you have a mixed version of trunk and relbr70...

Markus

Nikos Alexandris:

A fresh, (make dist)clean(ed) and error-free configured & compiled
grass7_trunk under Funtoo (3.12.18-KS.01) won't launch:

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70

Markus Neteler:

Do you use trunk or release branch?

/usr/bin/python2.7: can't open file

'/osgeo/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py':
[Errno 2] No such file or directory
Received EXIT message from GUI.

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70 -text

To me it looks like you have a mixed version of trunk and relbr70...

I have downloaded both and tested both separately. The configuration and compilation is done in the respective source directories separately, i.e.: grass70_release and grass7_trunk as downloaded per svn. Trying to be as clean as possible, I wiped out grass7_trunk and kept only grass70 on-disk. I make a simple configuration

# in grass70_release directory
make distclean
./configure --with-freetype-includes="/usr/include/freetype2/"

..

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

   Source directory: /osgeo/grass70_release
   Build directory: /osgeo/grass70_release
   Installation directory: ${prefix}/grass-7.0.0svn
   Startup script in directory:${exec_prefix}/bin
   C compiler: gcc -g -O2
   C++ compiler: c++ -g -O2
   Building shared libraries: yes
   OpenGL platform: X11

   MacOSX application: no
   MacOSX architectures:
   MacOSX SDK:

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

# compile
make -j5

..

Started compilation: Thu May 8 11:50:16 EEST 2014
--
Errors in:
No errors detected.
--
Finished compilation: Thu May 8 11:54:11 EEST 2014

# launch grass
/osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70 /geo/grassdb/wgs84/PERMANENT/

WELCOME TO GRASS 7.0.0svn

    1) Have at your side all available GRASS GIS tutorials

    2) When working on your location, the following materials
       are extremely useful:
       - A topographic map of your area
       - Current catalog of available computer maps

    3) Check the GRASS GIS web pages for supporting mailing lists and more:
       http://grass.osgeo.org

Hit RETURN to continue
Starting GRASS GIS...
Traceback (most recent call last):
   File "./grass70", line 1386, in <module>
     check_lock()
   File "./grass70", line 857, in check_lock
     ret = call([gfile("etc", "lock"), lockfile, "%d" % os.getpid()])
   File "./grass70", line 154, in call
     return subprocess.call(cmd, **kwargs)
   File "/usr/lib64/python2.7/subprocess.py", line 522, in call
     return Popen(*popenargs, **kwargs).wait()
   File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
     errread, errwrite)
   File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
     raise child_exception
OSError: [Errno 2] No such file or directory

Same error again. I must have something wrong with my local configuration (all this in a new machine). In my other Funtoo-box, I don't remember having done something differently. For example, I didn't need to setup anything in ld.so.conf.

On 08.05.2014 11:56, Nikos Alexandris wrote:

..

# in grass70_release directory
make distclean
./configure --with-freetype-includes="/usr/include/freetype2/"

..

# compile
make -j5

..

Errors in:
No errors detected.

..

# launch grass
/osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70
/geo/grassdb/wgs84/PERMANENT/

..

Starting GRASS GIS...
Traceback (most recent call last):
  File "./grass70", line 1386, in <module>
    check_lock()
  File "./grass70", line 857, in check_lock
    ret = call([gfile("etc", "lock"), lockfile, "%d" % os.getpid()])
  File "./grass70", line 154, in call
    return subprocess.call(cmd, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Same error again. I must have something wrong with my local
configuration (all this in a new machine). In my other Funtoo-box, I
don't remember having done something differently. For example, I
didn't need to setup anything in ld.so.conf.

Could it be due to a difference in wxPython installations? In the working machine I have version 2.9.4.1-r2 and in the faulty one 3.0.0.0? But this shouldn't be a problem, right? The Requirements say: "wxPython >= 2.8.10.1".

Thanks, Nikos

On Thu, May 8, 2014 at 11:26 PM, Nikos Alexandris
<nik@nikosalexandris.net> wrote:
...

Could it be due to a difference in wxPython installations? In the working
machine I have version 2.9.4.1-r2 and in the faulty one 3.0.0.0? But this
shouldn't be a problem, right? The Requirements say: "wxPython >=
2.8.10.1".

Mhh, probably yes? While I commonly use Python 2.x I enforced python3
use for a test:

[neteler@oboe init]$ export GRASS_PYTHON=python3

[neteler@oboe init]$ grass70 -gui
Cleaning up temporary files...
Starting GRASS GIS...
  File "/home/neteler/software/grass70_release/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py",
line 409
    except ValueError, e:
                     ^
SyntaxError: invalid syntax
Error in GUI startup. If necessary, please report this error to the
GRASS developers.
Switching to text mode now.

Using:
python3 --version
Python 3.3.2

So it seems to make a difference.
?

Markus

On 09.05.2014 00:31, Markus Neteler wrote:

On Thu, May 8, 2014 at 11:26 PM, Nikos Alexandris
<nik@nikosalexandris.net> wrote:
...

Could it be due to a difference in wxPython installations? In the working
machine I have version 2.9.4.1-r2 and in the faulty one 3.0.0.0? But this
shouldn't be a problem, right? The Requirements say: "wxPython >=
2.8.10.1".

Mhh, probably yes? While I commonly use Python 2.x I enforced python3
use for a test:

[neteler@oboe init]$ export GRASS_PYTHON=python3

[neteler@oboe init]$ grass70 -gui
Cleaning up temporary files...
Starting GRASS GIS...
  File

"/home/neteler/software/grass70_release/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py",
line 409
    except ValueError, e:
                     ^
SyntaxError: invalid syntax
Error in GUI startup. If necessary, please report this error to the
GRASS developers.
Switching to text mode now.

Using:
python3 --version
Python 3.3.2

So it seems to make a difference.
?

It would here too, but I am referring to wxPython and not Python. In both systems there is:

$ eselect python list
Available Python interpreters:
   [1] python2.7 *
   [2] python3.3

I also installed wxPython 2.9.4.1-r2 in the "faulty" box, so both systems do have:

$ eselect wxwidgets list
Available wxWidgets profiles:
   [1] gtk2-unicode-2.9 *

I recompiled but it didn't help :-(. I will search for Gentoo/Funtoo support elsewhere than here. Thank you Markus,

Nikos

On 08.05.2014 11:11, Nikos Alexandris wrote:

A fresh, (make dist)clean(ed) and error-free configured & compiled
grass7_trunk under Funtoo (3.12.18-KS.01) won't launch:

# /osgeo/grass70_release/bin.x86_64-unknown-linux-gnu $ ./grass70
/usr/bin/python2.7: can't open file

'/osgeo/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gis_set.py':
[Errno 2] No such file or directory
Received EXIT message from GUI.

..

Here was the error: $GISBASE= was set to </osgeo/src/grass70/dist.x86_64-unknown-linux-gnu> while I have the source code under </osgeo/grass70>!

All fine now.