[GRASS-user] installation of grass 7 unknown-linux binaries

Hey you,

I have proceeded the Grass-7.0 install.sh successfully. However, when
executing 'grass70' I've got an Python error which made GUI impossible
to startup.

please, some of you know how to troubleshoot such error (Ubuntu 13.10
have both Python 2.7, 3.2 and 3.3 installed)?

Error message as follow.

...
Starting GRASS GIS...
Traceback (most recent call last):
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/gis_set.py",
line 36, in <module>
    from core import globalvar
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/globalvar.py",
line 28, in <module>
    from core.debug import Debug
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 67, in <module>
    Debug = DebugMsg()
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 38, in __init__
    self.SetLevel()
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 43, in SetLevel
    self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 917, in gisenv
    s = read_command("g.gisenv", flags='n')
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 411, in read_command
    ps = pipe_command(*args, **kwargs)
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 386, in pipe_command
    return start_command(*args, **kwargs)
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 345, in start_command
    return Popen(args, **popts)
  File "/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 58, in __init__
    startupinfo, creationflags)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
...

Thanks in advance.

Jose Anderson

On Wed, Jan 29, 2014 at 4:21 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

Hey you,

I have proceeded the Grass-7.0 install.sh successfully. However, when
executing 'grass70' I've got an Python error which made GUI impossible
to startup.

...

  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
...

Do you use a 32bit Linux? The snapshot Linux binaries are generated on
a 64bit server.
What do you get with

uname -a
?

Markus

Em 30/01/2014 13:24, “José Anderson” <joseandersonbatista@gmail.com> escreveu:

Markus,

thanks for your quick reply.

My ubuntu is 64bits in fact.

Now I have to build wxpython yet (hope 3.0.0 is supported)

This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Jose

2014-01-29 Markus Neteler <neteler@osgeo.org>:

On Wed, Jan 29, 2014 at 4:21 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

Hey you,

I have proceeded the Grass-7.0 install.sh successfully. However, when
executing ‘grass70’ I’ve got an Python error which made GUI impossible
to startup.

File “/usr/lib/python2.7/subprocess.py”, line 1326, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error

Do you use a 32bit Linux? The snapshot Linux binaries are generated on
a 64bit server.
What do you get with

uname -a
?

Markus

On Thu, Jan 30, 2014 at 4:24 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

Markus,

thanks for your quick reply.

My ubuntu is 64bits in fact.

I have no Ubuntu, so I cannot say much here. But we build the snapshot
binaries in a Debian box.

Now I have to build wxpython yet (hope 3.0.0 is supported)

This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

Markus

2014-02-02 Markus Neteler <neteler@osgeo.org>:

On Thu, Jan 30, 2014 at 4:24 PM, José Anderson

Now I have to build wxpython yet (hope 3.0.0 is supported)

This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

wxPython is not supported to ubuntu since 11.4 (they release new
version every semester. Last long termed is 12.4)

Now wxPython is ok, but, libgdal looks like it is in trouble, because
pyGRASS supports just libgdal1.6.0, none higher (libgdal1.7.0 from
ubuntu).

Jose

Markus

On Mon, Feb 3, 2014 at 1:18 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

Now wxPython is ok, but, libgdal looks like it is in trouble, because
pyGRASS supports just libgdal1.6.0, none higher (libgdal1.7.0 from
ubuntu).

In which sense is it not supported? I am using GDAL 1.10.1 with the file
/usr/lib64/libgdal.so.1.17.1
happily on Fedora.

Please post the error message.

Markus

The GDAL installed are: gdal-bin 1.7.3, python-gdal 1.7.3,
libgdal1-dev 1.7.3 and libgdal1-1.7.3.

The .SO I have is: libgdal1.7.0.so.1

The error msg is:

"Unable to import pyGRASS: libgdal1.6.0.so.1: cannot open shared
object file: No such file or directory".

Thank you.

2014-02-03 Markus Neteler <neteler@osgeo.org>:

On Mon, Feb 3, 2014 at 1:18 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

Now wxPython is ok, but, libgdal looks like it is in trouble, because
pyGRASS supports just libgdal1.6.0, none higher (libgdal1.7.0 from
ubuntu).

In which sense is it not supported? I am using GDAL 1.10.1 with the file
/usr/lib64/libgdal.so.1.17.1
happily on Fedora.

Please post the error message.

Markus

Hi José,

On Mon, Feb 3, 2014 at 1:21 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

"Unable to import pyGRASS: libgdal1.6.0.so.1: cannot open shared
object file: No such file or directory".

mmh, how did you import the pygrass library?

Pietro

Pietro,

I ran this install.SH over 64bit precompiled tarball
(http://grass.osgeo.org/grass70/binary/linux/snapshot/)
for Ubuntu 12.04 LTS.

This includes pygrass.

2014-02-03 Pietro <peter.zamb@gmail.com>:

Hi José,

On Mon, Feb 3, 2014 at 1:21 PM, José Anderson
<joseandersonbatista@gmail.com> wrote:

"Unable to import pyGRASS: libgdal1.6.0.so.1: cannot open shared
object file: No such file or directory".

mmh, how did you import the pygrass library?

Pietro

José wrote:

thanks for your quick reply.

My ubuntu is 64bits in fact.

Markus N:

I have no Ubuntu, so I cannot say much here. But we build the snapshot
binaries in a Debian box.

Now I have to build wxpython yet (hope 3.0.0 is supported)

This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

Hi,

there are pre-made grass7 packages for ubuntu already built, (albeit
a few weeks out of date)

https://launchpad.net/~grass/+archive/grass-devel
http://grasswiki.osgeo.org/wiki/Ubuntu_Packaging

but I would always encourage users who wish to try development versions
of code to build GRASS from source themselves, it's not so bad; these
instructions should work:

https://trac.osgeo.org/grass/browser/grass/trunk/debian/README.debian
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

regards,
Hamish

Thanks Hamish,

think that binaries were not available yet when I reached the
repository first time.

Well, anyways, it looks like no GUI is present. The following error
raises, since (and I checked) no /usr/lib/grass70/etc/gui directory
was created.
...
python: can't open file
'/usr/lib/grass70/etc/gui/wxpython/gis_set.py': [Errno 2] No such file
or directory
...

Nevertheless, I feel it is getting close...

--
2014-02-03 Hamish <hamish_b@yahoo.com>:

José wrote:

thanks for your quick reply.

My ubuntu is 64bits in fact.

Markus N:

I have no Ubuntu, so I cannot say much here. But we build the snapshot
binaries in a Debian box.

Now I have to build wxpython yet (hope 3.0.0 is supported)

This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

Hi,

there are pre-made grass7 packages for ubuntu already built, (albeit
a few weeks out of date)

https://launchpad.net/~grass/+archive/grass-devel
http://grasswiki.osgeo.org/wiki/Ubuntu_Packaging

but I would always encourage users who wish to try development versions
of code to build GRASS from source themselves, it's not so bad; these
instructions should work:

https://trac.osgeo.org/grass/browser/grass/trunk/debian/README.debian
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

regards,
Hamish

J, H,

the long term supported (LTS) ubuntu up-to-date is 12.04, but
grass-gui is not available to it.

By the way, other grass-gui release number is 6.4 instead of 7.0. Is
that correct to grass 7?

Should 'grass-gui_6.4.2-2build1_amd64.deb' work in ubuntu 12.04?

2014-02-03 Hamish <hamish_b@yahoo.com>:

is the grass-gui package installed?

if so, check files with:

$ dpkg -L grass-gui

Hamish

On Tuesday, February 4, 2014 9:56 AM, José Anderson <joseandersonbatista@gmail.com> wrote:
>T hanks Hamish,

think that binaries were not available yet when I reached the
repository first time.

Well, anyways, it looks like no GUI is present. The following error
raises, since (and I checked) no /usr/lib/grass70/etc/gui directory
was created.
...
python: can't open file
'/usr/lib/grass70/etc/gui/wxpython/gis_set.py': [Errno 2] No such file
or directory
...

Nevertheless, I feel it is getting close...

--
2014-02-03 Hamish <hamish_b@yahoo.com>:

José wrote:

  thanks for your quick reply.

  My ubuntu is 64bits in fact.

Markus N:

I have no Ubuntu, so I cannot say much here. But we build the snapshot
binaries in a Debian box.

  Now I have to build wxpython yet (hope 3.0.0 is supported)

  This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

Hi,

there are pre-made grass7 packages for ubuntu already built, (albeit
a few weeks out of date)

https://launchpad.net/~grass/+archive/grass-devel
http://grasswiki.osgeo.org/wiki/Ubuntu_Packaging

but I would always encourage users who wish to try development versions
of code to build GRASS from source themselves, it's not so bad; these
instructions should work:

https://trac.osgeo.org/grass/browser/grass/trunk/debian/README.debian
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

regards,
Hamish

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hamish,

I found the GUI package in the repository with the name 'grass70-gui'
instead of 'grass-gui', as shown in the
http://packages.ubuntu.com/search?keywords=grass

Also, the grass70.desktop, the command name should be 'grass70'
instead of 'grass7'.

I'll keep on testing it.

2014-02-04 José Anderson <joseandersonbatista@gmail.com>:

J, H,

the long term supported (LTS) ubuntu up-to-date is 12.04, but
grass-gui is not available to it.

By the way, other grass-gui release number is 6.4 instead of 7.0. Is
that correct to grass 7?

Should 'grass-gui_6.4.2-2build1_amd64.deb' work in ubuntu 12.04?

2014-02-03 Hamish <hamish_b@yahoo.com>:

is the grass-gui package installed?

if so, check files with:

$ dpkg -L grass-gui

Hamish

On Tuesday, February 4, 2014 9:56 AM, José Anderson <joseandersonbatista@gmail.com> wrote:
>T hanks Hamish,

think that binaries were not available yet when I reached the
repository first time.

Well, anyways, it looks like no GUI is present. The following error
raises, since (and I checked) no /usr/lib/grass70/etc/gui directory
was created.
...
python: can't open file
'/usr/lib/grass70/etc/gui/wxpython/gis_set.py': [Errno 2] No such file
or directory
...

Nevertheless, I feel it is getting close...

--
2014-02-03 Hamish <hamish_b@yahoo.com>:

José wrote:

  thanks for your quick reply.

  My ubuntu is 64bits in fact.

Markus N:

I have no Ubuntu, so I cannot say much here. But we build the snapshot
binaries in a Debian box.

  Now I have to build wxpython yet (hope 3.0.0 is supported)

  This tutorial seams ok. http://wiki.wxpython.org/CheckInstall.

Why can't you simply use the wxpython offered by ubuntu?

Hi,

there are pre-made grass7 packages for ubuntu already built, (albeit
a few weeks out of date)

https://launchpad.net/~grass/+archive/grass-devel
http://grasswiki.osgeo.org/wiki/Ubuntu_Packaging

but I would always encourage users who wish to try development versions
of code to build GRASS from source themselves, it's not so bad; these
instructions should work:

https://trac.osgeo.org/grass/browser/grass/trunk/debian/README.debian
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

regards,
Hamish

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user