[GRASS-user] [pid file issue for d.* ]

This is what command shell throws:

Cleaning up temporary files…
Starting GRASS GIS…
WARNING: Concurrent mapset locking is not supported on Windows
Executing <d.mon wx2> …
Execution of <d.mon wx2> finished.
Cleaning up temporary files…

C:\Users\WRPPF-A>ERROR: Variable ‘LOCATION_NAME’ not set
Traceback (most recent call last):
File “C:\Program Files\GRASS GIS 7.2.0/gui/wxpython/mapdisp/main.py”, line 608, in
fd = open(pidFile, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:\Users\WRPPF-A\Documents\grassdata\nc_spm_08_grass7\user1\.tmp/unknown/MONITORS/wx2\pid’

What am I missing?

I have attached my script herewith this mail.

(attachments)

grass_script.py (1.29 KB)

···

Regards,
Ang Dawa Sherpa
GIS technician - Irrigation Master Plan
WRPPF - DOI, Nepal Government
Lalitpur
contact: 984 007 3861

On Wed, Jan 11, 2017 at 5:38 AM, Ang Sherpa <angsherpa232@gmail.com> wrote:

This is what command shell throws:

Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
Executing <d.mon wx2> ...
Execution of <d.mon wx2> finished.
Cleaning up temporary files...

C:\Users\WRPPF-A>ERROR: Variable 'LOCATION_NAME' not set
Traceback (most recent call last):
  File "C:\Program Files\GRASS GIS 7.2.0/gui/wxpython/mapdisp/main.py", line
608, in <module>
    fd = open(pidFile, 'w')
IOError: [Errno 2] No such file or directory:
'C:\\Users\\WRPPF-A\\Documents\\grassdata\\nc_spm_08_grass7\\user1\\.tmp/unknown/MONITORS/wx2\\pid'

I see a mixture of \\ and / path separators:

In this section
https://trac.osgeo.org/grass/browser/grass/trunk/lib/display/r_raster.c#L110

there are hardcoded / which might be wrong (/me guessing).

Markus

Thanks for attention, Markus
The problem seems to be with the path, however, I am quite lost here. I have not been able to figure out that which part of my script has to be edited.

···

Regards,
Ang Dawa Sherpa
GIS technician - Irrigation Master Plan
WRPPF - DOI, Nepal Government
Lalitpur
contact: 984 007 3861

On Wed, Jan 11, 2017 at 5:07 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Jan 11, 2017 at 5:38 AM, Ang Sherpa <angsherpa232@gmail.com> wrote:

This is what command shell throws:

Cleaning up temporary files…
Starting GRASS GIS…
WARNING: Concurrent mapset locking is not supported on Windows
Executing <d.mon wx2> …
Execution of <d.mon wx2> finished.
Cleaning up temporary files…

C:\Users\WRPPF-A>ERROR: Variable ‘LOCATION_NAME’ not set
Traceback (most recent call last):
File “C:\Program Files\GRASS GIS 7.2.0/gui/wxpython/mapdisp/main.py”, line
608, in
fd = open(pidFile, ‘w’)
IOError: [Errno 2] No such file or directory:
‘C:\Users\WRPPF-A\Documents\grassdata\nc_spm_08_grass7\user1\.tmp/unknown/MONITORS/wx2\pid’

I see a mixture of \ and / path separators:

In this section
https://trac.osgeo.org/grass/browser/grass/trunk/lib/display/r_raster.c#L110

there are hardcoded / which might be wrong (/me guessing).

Markus

On Tue, Jan 10, 2017 at 11:38 PM, Ang Sherpa <angsherpa232@gmail.com> wrote:

Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
Executing <d.mon wx2> ...
Execution of <d.mon wx2> finished.
Cleaning up temporary files...

C:\Users\WRPPF-A>ERROR: Variable 'LOCATION_NAME' not set

This means that GRASS GIS session ended and d.mon wx0 is trying to run in
the background, see #3252 for explanation:

https://trac.osgeo.org/grass/ticket/3252