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

GRASS GIS trac at osgeo.org
Wed Nov 25 07:14:00 PST 2015

#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 at 7d152add9280:~/repo$ dpkg -s grass
 dpkg-query: package 'grass' is not installed and no information is
 Use dpkg --info (= dpkg-deb --info) to examine archive files,
 and dpkg --contents (= dpkg-deb --contents) to list their contents.
 (venv)grassuser at 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 at 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 at 7d152add9280:~/repo$ grass --version
 GRASS GIS 7.0.1
 Traceback (most recent call last):
   File "/usr/bin/grass", line 1355, in <module>
   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:
 (venv)grassuser at 7d152add9280:~/repo$


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

More information about the grass-dev mailing list