[GRASS-dev] [GRASS GIS] #3559: permission denied on Windows Subsystem for Linux
GRASS GIS
trac at osgeo.org
Tue May 8 01:15:38 PDT 2018
#3559: permission denied on Windows Subsystem for Linux
-------------------------+-------------------------
Reporter: lrntct | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.6.0
Component: Default | Version: 7.4.0
Keywords: | CPU: x86-64
Platform: Unspecified |
-------------------------+-------------------------
I am trying to use GRASS on Ubuntu 18.04 on Windows 10 using the Windows
Subsystem for Linux.
The permissions seems to work appropriately, i.e I can create a normal
file, either manually or through Python. The error occurs only when using
GRASS, that is why I report the bug here.
When I try to create a map, GRASS returns the following error:
{{{
Writing a file works
Creating a GRASS map results in a permission denied error
ERROR: MAPSET input - permission denied
Traceback (most recent call last):
File "../../../../Documents/grass_wsl.py", line 9, in <module>
gscript.run_command('r.mapcalc', expression="map_test=2")
File "/usr/lib/grass74/etc/python/grass/script/core.py", line 421, in
run_command
return handle_errors(returncode, returncode, args, kwargs)
File "/usr/lib/grass74/etc/python/grass/script/core.py", line 332, in
handle_errors
returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['r.mapcalc',
'expression=map_test=2'] ended with error
Process ended with non-zero return code 1. See errors in the (error)
output.
}}}
This is a minimum working example:
{{{
print('Writing a file works')
with open('testfile', 'w') as testfile:
testfile.write('this is a test')
print('Creating a GRASS map results in a permission denied error')
from grass.script import core as gscript
gscript.run_command('r.mapcalc', expression="map_test=2")
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3559>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list