[GRASS-dev] [GRASS GIS] #2808: grass --version throws an exception

#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$

}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2808&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords: Ubuntu
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by neteler):

* keywords: => Ubuntu
* platform: Unspecified => Linux

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2808#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords: Ubuntu
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by neteler):

Since

No such file or directory: '/usr/lib/grass70/etc/license'

you need to report that to the Ubuntu packaging team.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2808#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2808: grass --version throws an exception
--------------------------+-------------------------
  Reporter: pmav99 | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.3
Component: Packaging | Version: 7.0.2
Resolution: worksforme | Keywords: Ubuntu
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by neteler):

* status: new => closed
* resolution: => worksforme

Comment:

See https://wiki.ubuntu.com/UbuntuGIS

Closing here.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2808#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>