Opened 2 years ago

Last modified 6 weeks ago

#3341 new defect

g.search.modules depends on grass-gui

Reported by: martinl Owned by: grass-dev@…
Priority: minor Milestone: 7.8.1
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 (7)

comment:1 Changed 2 years ago by wenzeslaus

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 Changed 2 years ago by martinl

Milestone: 7.2.17.2.2

comment:3 Changed 2 years ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:4 Changed 19 months ago by martinl

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:5 Changed 19 months ago by martinl

Milestone: 7.2.4

comment:6 Changed 6 months ago by martinl

Milestone: 7.2.47.8.0

comment:7 Changed 6 weeks ago by neteler

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.