<div dir="ltr"><div dir="ltr">Hi all,<br><br>It seems a local problem here, because I've tested in another machine and everything works ok. <br><br>The strange thing is that both systems are similar, and it works in one, and not in another.<br><br>Now I only get this message:<br><br>C:\>grass74<br>Cleaning up temporary files...<br>Starting GRASS GIS...<br>ERROR: Invalid return code from GUI startup script.<br>Please advise GRASS developers of this error.<br>Exiting...<br>Press any key to continue . . .<br></div><div dir="ltr"><br></div><div dir="ltr"><br>Running GRASS from the command line, works perfectly:<br><br>C:\>grass74 -text<br>Cleaning up temporary files...<br>Starting GRASS GIS...<br>ATENÇÃO: Concurrent mapset locking is not supported on Windows<br><br>          __________  ___   __________    _______________<br>         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/<br>        / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \<br>       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /<br>       \____/_/ |_/_/  |_/____/____/   \____/___//____/<br><br>Welcome to GRASS GIS 7.4.2<br>GRASS GIS homepage:                      <a href="http://grass.osgeo.org">http://grass.osgeo.org</a><br>This version running through:            Command Shell (C:\WINDOWS\system32\cmd.exe)<br>Help is available with the command:      g.manual -i<br>See the licence terms with:              g.version -c<br>See citation options with:               g.version -x<br>Start the GUI with:                      g.gui wxpython<br>When ready to quit enter:                exit<br><br>Microsoft Windows [Version 10.0.17134.345]<br>(c) 2018 Microsoft Corporation. Todos os direitos reservados.<br><br>C:\><br><br>And also from QGIS (Processing and GRASS Plugin).<br><br>Any clue about what the problem could be?<br><br>Thank you very much.<br><br>Best regards,<br>Pedro</div><div dir="ltr"><br></div></div><br><div class="gmail_quote"><div dir="ltr">Pedro Venâncio <<a href="mailto:pedrongvenancio@gmail.com">pedrongvenancio@gmail.com</a>> escreveu no dia segunda, 5/11/2018 à(s) 17:28:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi Martin,</div><div><br></div><div>I did not have this environment variable set, but I set it and it still does not work.<br><br>Anyway, I don't remember the last time I used GRASS GUI 
on this machine, but it was about 2 weeks ago.<br><br>Then this problem must have resulted from a recent change / update.</div><div><br></div><div>Thanks Martin.</div><div><br></div><div>Best regards,</div><div>Pedro<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Martin Landa <<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>> escreveu no dia segunda, 5/11/2018 à(s) 16:40:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
po 5. 11. 2018 v 17:36 odesílatel Pedro Venâncio<br>
<<a href="mailto:pedrongvenancio@gmail.com" target="_blank">pedrongvenancio@gmail.com</a>> napsal:<br>
>     os.getenv('HOMEPATH'))<br>
>   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 65, in join<br>
>     result_drive, result_path = splitdrive(path)<br>
>   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 115, in splitdrive<br>
>     if len(p) > 1:<br>
> TypeError: object of type 'NoneType' has no len()<br>
<br>
it seems that HOMEPATH environmental variable is not defined for your account.<br>
<br>
> I'm using Windows 10.<br>
<br>
Based on [1] HOMEPATH should be defined on Windows 10 too.<br>
<br>
Haven't you unset HOMEPATH for your account by chance? Try to set<br>
HOMEPATH pointing to your home directory.<br>
<br>
Martin<br>
<br>
[1] <a href="https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html" rel="noreferrer" target="_blank">https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html</a><br>
<br>
-- <br>
Martin Landa<br>
<a href="http://geo.fsv.cvut.cz/gwiki/Landa" rel="noreferrer" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
<a href="http://gismentors.cz/mentors/landa" rel="noreferrer" target="_blank">http://gismentors.cz/mentors/landa</a><br>
</blockquote></div>
</blockquote></div>