<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018 at 6:39 PM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
while we meanwhile use GRASS GIS 7.6.svn in docker for months we ran<br>
into this issue today:<br>
<br>
root@52e6935c3247:/grassdb# grass76 --text c 'EPSG:4326'<br>
/actinia_core/grassdb/latlongtest<br>
Cleaning up temporary files...<br>
Starting GRASS GIS...<br>
Creating new GRASS GIS location <latlongtest>...<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/grass76", line 2162, in <module><br>
main()<br>
File "/usr/local/bin/grass76", line 2075, in main<br>
geofile=params.geofile, create_new=True)<br>
File "/usr/local/bin/grass76", line 1005, in set_mapset<br>
create_location(gisdbase, location_name, geofile)<br>
File "/usr/local/bin/grass76", line 807, in create_location<br>
epsg=epsg, datum_trans=datum_trans)<br>
File "/usr/local/grass-7.6.svn/etc/python/grass/script/core.py",<br>
line 1538, in create_location<br>
encoding='utf-8', mode='w')<br>
File "/usr/lib/python2.7/codecs.py", line 898, in open<br>
file = __builtin__.open(filename, mode, buffering)<br>
IOError: [Errno 2] No such file or directory:<br>
'/actinia_core/grassdb/latlongtest/PERMANENT/MYNAME'<br>
<br>
... why that?<br>
<br>
root@52e6935c3247:/grassdb# set | grep -i utf<br>
LANG=C.UTF-8<br>
LC_ALL=en_US.UTF-8<br>
<br>
The directory is writable (I can mkdir the entire path without issues).<br>
<br>
I wonder what I should look for here?<br></blockquote><div><br></div><div>For the open() to create MYNAME (mode is w), /actinia_core/grassdb/latlongtest/PERMANENT/ needs to exist already. Without looking to the source code, I assume that create_location() is creating .../latlongtest/PERMANENT directories (I don't expect it actually tests if it was successful unless the underlying Python function checks that).</div><div><br></div><div>If /actinia_core/grassdb/ is a volume, I would try the same in a directory which is not a volume. Creating minimal reproducible example would be my next step, naive, but could help.</div><div><br></div><div>Vaclav<br></div><br></div></div>