Opened 7 years ago

Last modified 4 years ago

#3341 new defect

g.search.modules depends on grass-gui

Reported by: martinl Owned by: grass-dev@…
Priority: minor Milestone: 7.8.3
Component: Packaging Version: unspecified
Keywords: g.search.modules Cc:
CPU: Unspecified Platform: Unspecified

Description

In distributions like Debian/Ubuntu GRASS is split into more packages like grass-core and grass-gui. Currently G72:g.search.modules (shifted by grass-core) depends on XML (gui/wxpython/xml/module_items.xml) which is shifted by grass-gui package.

Currently the command fails (no grass-gui package not installed).

RASS 7.2.0 (landsat):~ > g.search.modules buffer
Traceback (most recent call last):
  File "/usr/lib/grass72/scripts/g.search.modules", line 246, in <module>
    sys.exit(main())
  File "/usr/lib/grass72/scripts/g.search.modules", line 81, in main
    modules = _search_module(keywords, AND, manpages)
  File "/usr/lib/grass72/scripts/g.search.modules", line 176, in _search_module
    menudata_file = open(filename, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/grass72/gui/wxpython/xml/module_items.xml'

Solution: GUI XML files could be moved to 'etc' directory.

Change History (10)

comment:1 by wenzeslaus, 7 years ago

I'm not really sure about the right directory and files which are specific to wxGUI GUI actions, but generally I agree that this needs to be revised. If would implement #645 by using the toolbox trees with the current structure, we would make grass-gui dependent on grass-doc which is not right.

comment:2 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:3 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:4 by martinl, 6 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.2.4

comment:6 by martinl, 5 years ago

Milestone: 7.2.47.8.0

comment:7 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:8 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:9 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:10 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.