#2808: grass --version throws an exception
-------------------------+-------------------------
Reporter: pmav99 | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.3
Component: Packaging | Version: 7.0.2
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
It seems that the license file is missing.
{{{
(venv)grassuser@7d152add9280:~/repo$ dpkg -s grass
dpkg-query: package 'grass' is not installed and no information is
available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
(venv)grassuser@7d152add9280:~/repo$ dpkg -s grass7
Package: grass7
Status: install ok installed
Priority: optional
Section: metapackages
Installed-Size: 37
Maintainer: “GRASS GIS” team on Launchpad <grass@lists.launchpad.net>
Architecture: all
Version: 7.0.2-1~ubuntu14.04.1
Depends: grass7-core, grass7-gui
Recommends: grass7-doc
Suggests: grass7-dev
(venv)grassuser@7d152add9280:~/repo$ grass --version
GRASS GIS 7.0.1
Traceback (most recent call last):
File "/usr/bin/grass", line 1355, in <module>
parse_cmdline()
File "/usr/bin/grass", line 1267, in parse_cmdline
message('\n' + readfile(gfile("etc", "license")))
File "/usr/bin/grass", line 139, in readfile
f = open(path, 'r')
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass70/etc/license'
(venv)grassuser@7d152add9280:~/repo$