Skip to content

[Bug] g.extension: installation addon fails because Git program is missing #3077

@tmszi

Description

@tmszi

Describe the bug
g.extension module fails during installation addon under MS Windows OS because Git is not installed and distributed by default with GRASS GIS installation.

To Reproduce
Steps to reproduce the behavior:

  1. Install GRASS GIS with MS Windows standalone installer
  2. Try install some addon e.g. g.extension db.join
  3. See error
Traceback (most recent call last):
  File "C:\Program Files\GRASS GIS
8.4\scripts\g.extension.py", line 2853, in <module>
    sys.exit(main())
  File "C:\Program Files\GRASS GIS
8.4\scripts\g.extension.py", line 2828, in main
    get_addons_paths(gg_addons_base_dir=options["prefix"])
  File "C:\Program Files\GRASS GIS
8.4\scripts\g.extension.py", line 2732, in get_addons_paths
    addons_branch = get_version_branch(VERSION[0])
  File "C:\Program Files\GRASS GIS
8.4\scripts\g.extension.py", line 507, in get_version_branch
    branch = gs.Popen(
  File "C:\Program Files\GRASS GIS
8.4\etc\python\grass\script\core.py", line 55, in __init__
    raise OSError(_("Cannot find the executable
{0}").format(args[0]))
OSError: Cannot find the executable git

Expected behavior
g.extension module should install some addon without error message and Git program should be distributed with GRASS GIS installation by default.

System description:

  • Operating System: MS Windows
  • GRASS GIS version: 8.4.dev, 8.3.0

Additional context
We need to update the GRASS GIS installation/runtime dependencies (add Git program) for package maintainer on other OS platforms too.

Originally reported here #3059.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsMicrosoft Windows specific

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions