Skip to content

Windows System Error #4

@mankoff

Description

@mankoff

I'm trying to use your wonderful code on Windows but getting a System Error:

g.list.exe - System Error
The code execution cannot proceed because libgrass_vector.7.4.0.dll was not found.
Reinstalling the program may fix this problem.

This is caused from the following script. Everything works until the last g.list line:

grass7bin = r'"C:\Program Files\GRASS GIS 7.4.0\grass74.bat"'
import os
os.environ['GRASSBIN'] = grass7bin

from grass_session import Session
from grass.pygrass.modules.shortcuts import general as g

PERMANENT=Session()
PERMANENT.open(gisdb="C:\Users\<user>\Documents\GRASS_database", location="G", mapset="PERMANENT", create_opts="")

g.list(type="raster")

I'm running this from within IPython inside Spyder. The same (rough) code works when I do it on OS X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions