[GRASS-user] Install GRASS 7.4

Hello everyone!

I unfortunately made an unknown mistake, crashing Grass on my computer (Ubuntu 16.04). I now want to reinstall GRASS and the module r.avaflow (which, i believe, only works with GRASS 7.4). The problem is, i can only install GRASS 7.6, even with the method stated on the GRASS homepage for GRASS 7.4.4 (old stable). Can anyone pls help??? I have already tried quite some time but can’t find a solution.

Best regards
Ulli

Hello, I do not know if you refer to a method of installing an older .deb package, but in this case it may be easier to install outside of the packaging system, for example from a weekly binary snapshots (probably easier), or from source. You can in the same time have the newer and continually updated version from your apt sources alongside it, thus having advantages of both versions at hand (good idea also because of possible dependencies of the binary snapshot, which should be met on your system if you have other version of grass already installed). The binary snapshots can be installed to a directory of your choice, system-wide probably under /usr/local, or even only for one user under his own home directory. Version which may be good for you is on https://grass.osgeo.org/grass74/binary/linux/snapshot/, together wit instructions how to install.
Regards,
Tomas

Dne 19. 02. 19 v 17:59 Ulrich Kriechbaum napsal(a):

Hello everyone!
I unfortunately made an unknown mistake, crashing Grass on my computer (Ubuntu 16.04). I now want to reinstall GRASS and the module r.avaflow (which, i believe, only works with GRASS 7.4). The problem is, i can only install GRASS 7.6, even with the method stated on the GRASS homepage for GRASS 7.4.4 (old stable). Can anyone pls help??? I have already tried quite some time but can't find a solution.
Best regards
Ulli

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

--
Tomáš Brunclík
fotky: http://tom44.portfoliobox.me/
mobil: (+420) 724 709 138
skype: tomas_brunclik, jabber: tomas_iv@jabber.cz

Now I see there are not simple instructions how to install binary snapshot in the directory itself, so if you are not familiar with it, just download grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019-install.sh and grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019.tar.gz (or similar files if the grass version or build date is updated) and run on the terminal:

···

cd

sudo sh grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019-install.sh grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019.tar.gz

Replace with the path to directory, where you downloaded the files. This is system-wide installation to /usr/local

And now: I tried this (although the single user variant) and after successful installation I got this after selecting existing grass mapset in the GUI dialog:

/ / __ / | / / / / __/ / /
/ / __/ /
/ / /| | _
\
\ / / __ / / _

/ /
/ / , / ___ |
/ /
/ / / /
/ // / / /
_
/
/ |
/
/ |
/
// _///_/

Welcome to GRASS GIS 7.4.5svn (r74079)
GRASS GIS homepage: https://grass.osgeo.org
This version running through: Bash Shell (/bin/bash)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit

Launching GUI in the background, please wait…
GRASS 7.4.5svn (utm33n):~ > g.list: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py”, line 167, in
sys.exit(main())
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py”, line 154, in main
app = GMApp(workspaceFile)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/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 “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py”, line 101, in OnInit
workspace=self.workspaceFile)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/lmgr/frame.py”, line 142, in init
self.notebook = self._createNoteBook()
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/lmgr/frame.py”, line 337, in _createNoteBook
gcstyle=GC_PROMPT)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/goutput.py”, line 118, in init
self.cmdPrompt = GPromptSTC(parent=self, menuModel=self._menuModel)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py”, line 139, in init
GPrompt.init(self, parent=parent, menuModel=menuModel)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py”, line 57, in init
self.mapList = self._getListOfMaps()
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py”, line 101, in _getListOfMaps
result[‘raster’] = grass.list_strings(‘raster’)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py”, line 1226, in list_strings
mapset=mapset).splitlines():
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py”, line 476, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py”, line 332, in handle_errors
returncode=returncode)
grass.exceptions.CalledModuleError: Module run None [‘g.list’, ‘–q’, ‘-m’, ‘type=raster’] ended with error
Process ended with non-zero return code 127. See errors in the (error) output.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File “/usr/lib/python2.7/atexit.py”, line 24, in _run_exitfuncs
func(*targs, **kargs)
PyAssertionError: C++ assertion “GetEventHandler() == this” failed at …/src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed event handlers must have been removed
Error in sys.exitfunc:
Traceback (most recent call last):
File “/usr/lib/python2.7/atexit.py”, line 24, in _run_exitfuncs
func(*targs, **kargs)
wx._core.PyAssertionError: C++ assertion “GetEventHandler() == this” failed at …/src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed event handlers must have been removed

Of course, grass gui did not start. On this machine, grass 7.2 is installed amd running via the packaging system (I’m on Debian stretch based SolydX distro), so evidently, there are unmet dependencies of the binary snapshot and the fact, that I have grass 7.2 from repos running is not enough because of different versions of libraries required. Is this the type of problem you face as well? I run older version of GRASS 7.4 on my other machines, so I was a little surprised the installation did not work out of the box as I expected… Sorry for recommending simple solution before realizing it may not be as simple as I thought. But maybe it can still work without these problems on your distro.

Tomas

Dne 19. 02. 19 v 19:33 Tomáš Brunclík napsal(a):

-- 
Tomáš Brunclík
fotky: [http://tom44.portfoliobox.me/](http://tom44.portfoliobox.me/)
mobil: (+420) 724 709 138
skype: tomas_brunclik, jabber: [tomas_iv@jabber.cz](mailto:tomas_iv@jabber.cz)

Hello, I do not know if you refer to a method of installing an older .deb package, but in this case it may be easier to install outside of the packaging system, for example from a weekly binary snapshots (probably easier), or from source. You can in the same time have the newer and continually updated version from your apt sources alongside it, thus having advantages of both versions at hand (good idea also because of possible dependencies of the binary snapshot, which should be met on your system if you have other version of grass already installed). The binary snapshots can be installed to a directory of your choice, system-wide probably under /usr/local, or even only for one user under his own home directory. Version which may be good for you is on https://grass.osgeo.org/grass74/binary/linux/snapshot/, together wit instructions how to install.
Regards,
Tomas

Dne 19. 02. 19 v 17:59 Ulrich Kriechbaum napsal(a):

Hello everyone!

I unfortunately made an unknown mistake, crashing Grass on my computer (Ubuntu 16.04). I now want to reinstall GRASS and the module r.avaflow (which, i believe, only works with GRASS 7.4). The problem is, i can only install GRASS 7.6, even with the method stated on the GRASS homepage for GRASS 7.4.4 (old stable). Can anyone pls help??? I have already tried quite some time but can’t find a solution.

Best regards
Ulli

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[https://lists.osgeo.org/mailman/listinfo/grass-user](https://lists.osgeo.org/mailman/listinfo/grass-user)
-- 
Tomáš Brunclík
fotky: [http://tom44.portfoliobox.me/](http://tom44.portfoliobox.me/)
mobil: (+420) 724 709 138
skype: tomas_brunclik, jabber: [tomas_iv@jabber.cz](mailto:tomas_iv@jabber.cz)

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[https://lists.osgeo.org/mailman/listinfo/grass-user](https://lists.osgeo.org/mailman/listinfo/grass-user)

Hi Ulli,

I haven’t used r.avaflow but the manual says it’s build on python 2.7 so I don’t see why it wouldn’t work in grass76.

We will move to python 3 only in the next release, i.e., grass78.

In any case, you could also ask the authors. Indeed, it would be great if r.avaflow could be installed with g.extension as most add-ons.

Cheers,
Vero

El mar., 19 feb. 2019 13:59, Ulrich Kriechbaum <ulrichkriechbaum@gmx.at> escribió:

Hello everyone!

I unfortunately made an unknown mistake, crashing Grass on my computer (Ubuntu 16.04). I now want to reinstall GRASS and the module r.avaflow (which, i believe, only works with GRASS 7.4). The problem is, i can only install GRASS 7.6, even with the method stated on the GRASS homepage for GRASS 7.4.4 (old stable). Can anyone pls help??? I have already tried quite some time but can’t find a solution.

Best regards
Ulli


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