Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-12-12 Thread Pedro Venâncio
Hi Martin and Helmut,

About this issue, I finally find the problem.

I had changed the default code page in this machine long time ago (Regional
Settings -> Language for non-Unicode programs -> and marked the beta option
"Use Unicode UTF-8 for worldwide language support").

And so, the active code page in windows console was 65001.

Unchecking that option, the defaut CHCP came back to 850, and the problem
gone away!

Thank you very much for your help!

Best regards,
Pedro Venâncio




Pedro Venâncio  escreveu no dia quarta,
7/11/2018 à(s) 14:10:

> Hi Martin,
>
> Yes, I tried to update wxPython by pip, but it does not solved the problem.
>
> Returning to 2.8.12 also does not help:
>
> C:\>pip uninstall wxpython
> Uninstalling wxPython-4.0.3:
>   Would remove:
> c:\osgeo4~1\apps\python27\lib\site-packages\wx\*
> c:\osgeo4~1\apps\python27\lib\site-packages\wxpython-4.0.3.dist-info\*
> c:\osgeo4~1\apps\python27\scripts\helpviewer.exe
> c:\osgeo4~1\apps\python27\scripts\img2png.exe
> c:\osgeo4~1\apps\python27\scripts\img2py.exe
> c:\osgeo4~1\apps\python27\scripts\img2xpm.exe
> c:\osgeo4~1\apps\python27\scripts\pycrust.exe
> c:\osgeo4~1\apps\python27\scripts\pyshell.exe
> c:\osgeo4~1\apps\python27\scripts\pyslices.exe
> c:\osgeo4~1\apps\python27\scripts\pyslicesshell.exe
> c:\osgeo4~1\apps\python27\scripts\pywxrc.exe
> c:\osgeo4~1\apps\python27\scripts\wxdemo.exe
> c:\osgeo4~1\apps\python27\scripts\wxdocs.exe
> c:\osgeo4~1\apps\python27\scripts\wxget.exe
> Proceed (y/n)? y
>   Successfully uninstalled wxPython-4.0.3
> You are using pip version 18.0, however version 18.1 is available.
> You should consider upgrading via the 'python -m pip install --upgrade
> pip' command.
>
> C:\>grass74
> Cleaning up temporary files...
> Starting GRASS GIS...
> ATENÇÃO: Concurrent mapset locking is not supported on Windows
>
>   __  ___   _____
>  / / __ \/   | / ___/ ___/   / /  _/ ___/
> / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
>/ /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
>\/_/ |_/_/  |_///   \/___///
>
> Welcome to GRASS GIS 7.4.2
> GRASS GIS homepage:  http://grass.osgeo.org
> This version running through:Command Shell
> (C:\WINDOWS\system32\cmd.exe)
> Help is available with the command:  g.manual -i
> See the licence terms with:  g.version -c
> See citation options with:   g.version -x
> Start the GUI with:  g.gui wxpython
> When ready to quit enter:exit
>
> Microsoft Windows [Version 10.0.17134.345]
> (c) 2018 Microsoft Corporation. Todos os direitos reservados.
>
> C:\>g.gui wxpython
> Launching  GUI in the background, please wait...
>
> C:\>python
> Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64
> bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import wx
> >>> wx.version()
> '2.8.12.1 (msw-unicode)'
>
> >>> import sys
> >>> print '\n'.join(sys.path)
>
> C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\python
> C:\OSGeo4W64\apps\Python27
> C:\OSGEO4~1\bin\python27.zip
> C:\OSGEO4~1\apps\Python27\DLLs
> C:\OSGEO4~1\apps\Python27\lib
> C:\OSGEO4~1\apps\Python27\lib\plat-win
> C:\OSGEO4~1\apps\Python27\lib\lib-tk
> C:\OSGEO4~1\bin
> C:\OSGEO4~1\apps\Python27
> C:\OSGEO4~1\apps\Python27\lib\site-packages
> C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
>
> C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
> C:\OSGEO4~1\apps\Python27\lib\site-packages\win32
> C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib
> C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin
> C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
>
> Thanks!
>
> Best regards,
> Pedro
>
>
>
> Martin Landa  escreveu no dia quarta, 7/11/2018
> à(s) 12:52:
>
>> Hi,
>>
>> st 7. 11. 2018 v 12:02 odesílatel Pedro Venâncio
>>  napsal:
>> > >>> import wx
>> > >>> wx.version()
>> > u'4.0.3 msw (phoenix) wxWidgets 3.0.5'
>>
>> btw, have you installed wxPython on your own by pip? OSGeo4W still
>> comes with version 2.8.12 [1]
>>
>> Ma
>>
>> [1] https://download.osgeo.org/osgeo4w/x86_64/release/python/python-wx/
>>
>> --
>> Martin Landa
>> http://geo.fsv.cvut.cz/gwiki/Landa
>> http://gismentors.cz/mentors/landa
>>
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-07 Thread Pedro Venâncio
Hi Martin,

Yes, I tried to update wxPython by pip, but it does not solved the problem.

Returning to 2.8.12 also does not help:

C:\>pip uninstall wxpython
Uninstalling wxPython-4.0.3:
  Would remove:
c:\osgeo4~1\apps\python27\lib\site-packages\wx\*
c:\osgeo4~1\apps\python27\lib\site-packages\wxpython-4.0.3.dist-info\*
c:\osgeo4~1\apps\python27\scripts\helpviewer.exe
c:\osgeo4~1\apps\python27\scripts\img2png.exe
c:\osgeo4~1\apps\python27\scripts\img2py.exe
c:\osgeo4~1\apps\python27\scripts\img2xpm.exe
c:\osgeo4~1\apps\python27\scripts\pycrust.exe
c:\osgeo4~1\apps\python27\scripts\pyshell.exe
c:\osgeo4~1\apps\python27\scripts\pyslices.exe
c:\osgeo4~1\apps\python27\scripts\pyslicesshell.exe
c:\osgeo4~1\apps\python27\scripts\pywxrc.exe
c:\osgeo4~1\apps\python27\scripts\wxdemo.exe
c:\osgeo4~1\apps\python27\scripts\wxdocs.exe
c:\osgeo4~1\apps\python27\scripts\wxget.exe
Proceed (y/n)? y
  Successfully uninstalled wxPython-4.0.3
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

C:\>grass74
Cleaning up temporary files...
Starting GRASS GIS...
ATENÇÃO: Concurrent mapset locking is not supported on Windows

  __  ___   _____
 / / __ \/   | / ___/ ___/   / /  _/ ___/
/ / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
   / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
   \/_/ |_/_/  |_///   \/___///

Welcome to GRASS GIS 7.4.2
GRASS GIS homepage:  http://grass.osgeo.org
This version running through:Command Shell
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command:  g.manual -i
See the licence terms with:  g.version -c
See citation options with:   g.version -x
Start the GUI with:  g.gui wxpython
When ready to quit enter:exit

Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

C:\>g.gui wxpython
Launching  GUI in the background, please wait...

C:\>python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> import wx
>>> wx.version()
'2.8.12.1 (msw-unicode)'

>>> import sys
>>> print '\n'.join(sys.path)

C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\python
C:\OSGeo4W64\apps\Python27
C:\OSGEO4~1\bin\python27.zip
C:\OSGEO4~1\apps\Python27\DLLs
C:\OSGEO4~1\apps\Python27\lib
C:\OSGEO4~1\apps\Python27\lib\plat-win
C:\OSGEO4~1\apps\Python27\lib\lib-tk
C:\OSGEO4~1\bin
C:\OSGEO4~1\apps\Python27
C:\OSGEO4~1\apps\Python27\lib\site-packages
C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin
C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode

Thanks!

Best regards,
Pedro



Martin Landa  escreveu no dia quarta, 7/11/2018
à(s) 12:52:

> Hi,
>
> st 7. 11. 2018 v 12:02 odesílatel Pedro Venâncio
>  napsal:
> > >>> import wx
> > >>> wx.version()
> > u'4.0.3 msw (phoenix) wxWidgets 3.0.5'
>
> btw, have you installed wxPython on your own by pip? OSGeo4W still
> comes with version 2.8.12 [1]
>
> Ma
>
> [1] https://download.osgeo.org/osgeo4w/x86_64/release/python/python-wx/
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-07 Thread Martin Landa
Hi,

st 7. 11. 2018 v 12:02 odesílatel Pedro Venâncio
 napsal:
> >>> import wx
> >>> wx.version()
> u'4.0.3 msw (phoenix) wxWidgets 3.0.5'

btw, have you installed wxPython on your own by pip? OSGeo4W still
comes with version 2.8.12 [1]

Ma

[1] https://download.osgeo.org/osgeo4w/x86_64/release/python/python-wx/

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-07 Thread Pedro Venâncio
Hi all,

I've done some more tests:

C:\>grass74
Cleaning up temporary files...
Starting GRASS GIS...
ATENÇÃO: Concurrent mapset locking is not supported on Windows

  __  ___   _____
 / / __ \/   | / ___/ ___/   / /  _/ ___/
/ / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
   / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
   \/_/ |_/_/  |_///   \/___///

Welcome to GRASS GIS 7.4.2
GRASS GIS homepage:  http://grass.osgeo.org
This version running through:Command Shell
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command:  g.manual -i
See the licence terms with:  g.version -c
See citation options with:   g.version -x
Start the GUI with:  g.gui wxpython
When ready to quit enter:exit

Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

C:\>g.gui wxpython
Launching  GUI in the background, please wait...

C:\>python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> import wx
>>> wx.version()
u'4.0.3 msw (phoenix) wxWidgets 3.0.5'

>>> import sys
>>> sys.executable
'C:\\OSGEO4~1\\bin\\python.exe'

>>> print '\n'.join(sys.path)
C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\python
C:\OSGeo4W64\apps\Python27
C:\OSGEO4~1\bin\python27.zip
C:\OSGEO4~1\apps\Python27\DLLs
C:\OSGEO4~1\apps\Python27\lib
C:\OSGEO4~1\apps\Python27\lib\plat-win
C:\OSGEO4~1\apps\Python27\lib\lib-tk
C:\OSGEO4~1\bin
C:\OSGEO4~1\apps\Python27
C:\OSGEO4~1\apps\Python27\lib\site-packages
C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin
C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
>>>

>>> quit()

C:\>where python
C:\OSGeo4W64\bin\python.exe

Any suggestion about other tests I can run to check if something is missing?


I also tried to install GRASS 6.4 with OSGeo4W, but this time I get this
error:

C:\>grass64
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/grass/grass-6.4.3/etc/wxpython/wxgui.py", line 34,
in 
from lmgr.frame import GMFrame
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\frame.py",
line 46, in 
from lmgr.layertreeimport LayerTree, LMIcons
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\layertree.py",
line 37, in 
from mapdisp.frame   import MapFrame
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\mapdisp\frame.py",
line 38, in 
from vdigit.toolbarsimport VDigitToolbar
  File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\toolbars.py", line
23, in 
from vdigit.mainimport VDigit
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\main.py",
line 18, in 
from vdigit.wxdigit import IVDigit, GV_LINES
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdigit.py",
line 33, in 
from vdigit.wxdisplay import DisplayDriver
  File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdisplay.py", line
29, in 
from grass.lib.vector import *
  File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\vector.py",
line 23, in 
_libs["grass_vect.6.4.3"] = load_library("grass_vect.6.4.3")
  File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py",
line 55, in load_library
return self.load(path)
  File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py",
line 221, in load
return _WindowsLibrary(path)
  File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py",
line 207, in __init__
self.cdll = ctypes.cdll.LoadLibrary(path)
  File "C:\OSGEO4~1\apps\Python27\lib\ctypes\__init__.py", line 444, in
LoadLibrary
return self._dlltype(name)
  File "C:\OSGEO4~1\apps\Python27\lib\ctypes\__init__.py", line 366, in
__init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found


C:\>grass64 -text

Welcome to GRASS 6.4.3 (2013)

GRASS homepage:  http://grass.osgeo.org/
This version running thru:   Windows Command Shell (cmd.exe)
When ready to quit enter:exit
Help is available with the command:  g.manual -i
See the licence terms with:  g.version -c

Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

GRASS 6.4.3 (pinhel)> g.gui

Launching 'wxpython' GUI in the background, please wait ...
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/grass/grass-6.4.3/etc/wxpython/wxgui.py", line 34,
in 
from lmgr.frame import 

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-06 Thread Pedro Venâncio
Hi Helmut,



Helmut Kudrnovsky  escreveu no dia terça, 6/11/2018 à(s)
19:24:

> >C:\>grass74
> >Cleaning up temporary files...
> >Starting GRASS GIS...
> >ERROR: Invalid return code from GUI startup script.
> >Please advise GRASS developers of this error.
> >Exiting...
> >Press any key to continue . . .
>
> what is the invalid return code?
>


The error falls here, like Markus said:

def gui_startup(grass_gui):
"""Start GUI for startup (setting gisrc file)"""
if grass_gui in ('wxpython', 'gtext'):
ret = call([os.getenv('GRASS_PYTHON'), wxpath("gis_set.py")])

# this if could be simplified to three branches (0, 5, rest)
# if there is no need to handle unknown code separately
if ret == 0:
pass
elif ret in [1, 2]:
# 1 probably error coming from gis_set.py
# 2 probably file not found from python interpreter
# formerly we were starting in text mode instead, now we just fail
# which is more straightforward for everybody
fatal(_("Error in GUI startup. See messages above (if any)"
" and if necessary, please"
" report this error to the GRASS developers.\n"
"On systems with package manager, make sure you have the
right"
" GUI package, probably named grass-gui, installed.\n"
"To run GRASS GIS in text mode use the -text flag.\n"
"Use '--help' for further options\n"
" {cmd_name} --help\n"
"See also:
https://grass.osgeo.org/{cmd_name}/manuals/helptext.html;).format(
cmd_name=cmd_name))
elif ret == 5:  # defined in gui/wxpython/gis_set.py
# User wants to exit from GRASS
message(_("Exit was requested in GUI.\nGRASS GIS will not start.
Bye."))
sys.exit(0)
else:
fatal(_("Invalid return code from GUI startup script.\n"
"Please advise GRASS developers of this error."))



>
> is there another python installation on this windows system?
>
>
Yes, I've Python 2.7 and Python 3.7, both instaled with OSGeo4W, one for
QGIS 2.18 and another for QGIS 3.4. But I've the same on another machine.



> >The strange thing is that both systems are similar, and it works in one,
> and not in another.
>
> can you delete all the content in:
>
> C:\Users\YourUserName\AppData\Roaming\GRASS7
>
> and try to restart
>
>
I already tested this, but after delete it, it only create an empty GRASS7
folder.



>
> what is happening when you're in text mode and do
>
> C:\>g.gui wxpython
>
> ?


C:\>g.gui wxpython
Launching  GUI in the background, please wait...
C:\>

but it does not launch the GUI. Looking at the windows task manager
processes, the GRASS GUI process shows up, but closes right after a second
or so.

Thank you very much for the help Helmut and Markus!

Best regards,
Pedro
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-06 Thread Helmut Kudrnovsky
>Running GRASS from the command line, works perfectly:
>
>C:\>grass74 -text
>Cleaning up temporary files...
>Starting GRASS GIS...
>ATENÇÃO: Concurrent mapset locking is not supported on Windows

what is happening when you're in text mode and do

C:\>g.gui wxpython

?



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-06 Thread Markus Neteler
On Tue, Nov 6, 2018 at 8:24 PM Helmut Kudrnovsky  wrote:
>
> >C:\>grass74
> >Cleaning up temporary files...
> >Starting GRASS GIS...
> >ERROR: Invalid return code from GUI startup script.
> >Please advise GRASS developers of this error.
> >Exiting...
> >Press any key to continue . . .
>
> what is the invalid return code?

Our code could be more chatty :-)

https://trac.osgeo.org/grass/browser/grass/trunk/lib/init/grass.py#L1144

... at least write which code occurred?

Markus
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-06 Thread Helmut Kudrnovsky
>C:\>grass74
>Cleaning up temporary files...
>Starting GRASS GIS...
>ERROR: Invalid return code from GUI startup script.
>Please advise GRASS developers of this error.
>Exiting...
>Press any key to continue . . .

what is the invalid return code?

is there another python installation on this windows system?

>The strange thing is that both systems are similar, and it works in one,
and not in another.

can you delete all the content in:

C:\Users\YourUserName\AppData\Roaming\GRASS7

and try to restart



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-06 Thread Pedro Venâncio
Hi all,

It seems a local problem here, because I've tested in another machine and
everything works ok.

The strange thing is that both systems are similar, and it works in one,
and not in another.

Now I only get this message:

C:\>grass74
Cleaning up temporary files...
Starting GRASS GIS...
ERROR: Invalid return code from GUI startup script.
Please advise GRASS developers of this error.
Exiting...
Press any key to continue . . .


Running GRASS from the command line, works perfectly:

C:\>grass74 -text
Cleaning up temporary files...
Starting GRASS GIS...
ATENÇÃO: Concurrent mapset locking is not supported on Windows

  __  ___   _____
 / / __ \/   | / ___/ ___/   / /  _/ ___/
/ / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
   / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
   \/_/ |_/_/  |_///   \/___///

Welcome to GRASS GIS 7.4.2
GRASS GIS homepage:  http://grass.osgeo.org
This version running through:Command Shell
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command:  g.manual -i
See the licence terms with:  g.version -c
See citation options with:   g.version -x
Start the GUI with:  g.gui wxpython
When ready to quit enter:exit

Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

C:\>

And also from QGIS (Processing and GRASS Plugin).

Any clue about what the problem could be?

Thank you very much.

Best regards,
Pedro


Pedro Venâncio  escreveu no dia segunda,
5/11/2018 à(s) 17:28:

> Hi Martin,
>
> I did not have this environment variable set, but I set it and it still
> does not work.
>
> Anyway, I don't remember the last time I used GRASS GUI on this machine,
> but it was about 2 weeks ago.
>
> Then this problem must have resulted from a recent change / update.
>
> Thanks Martin.
>
> Best regards,
> Pedro
>
>
>
> Martin Landa  escreveu no dia segunda, 5/11/2018
> à(s) 16:40:
>
>> Hi,
>>
>> po 5. 11. 2018 v 17:36 odesílatel Pedro Venâncio
>>  napsal:
>> > os.getenv('HOMEPATH'))
>> >   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 65, in join
>> > result_drive, result_path = splitdrive(path)
>> >   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 115, in
>> splitdrive
>> > if len(p) > 1:
>> > TypeError: object of type 'NoneType' has no len()
>>
>> it seems that HOMEPATH environmental variable is not defined for your
>> account.
>>
>> > I'm using Windows 10.
>>
>> Based on [1] HOMEPATH should be defined on Windows 10 too.
>>
>> Haven't you unset HOMEPATH for your account by chance? Try to set
>> HOMEPATH pointing to your home directory.
>>
>> Martin
>>
>> [1]
>> https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html
>>
>> --
>> Martin Landa
>> http://geo.fsv.cvut.cz/gwiki/Landa
>> http://gismentors.cz/mentors/landa
>>
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-05 Thread Pedro Venâncio
Hi Martin,

I did not have this environment variable set, but I set it and it still
does not work.

Anyway, I don't remember the last time I used GRASS GUI on this machine,
but it was about 2 weeks ago.

Then this problem must have resulted from a recent change / update.

Thanks Martin.

Best regards,
Pedro



Martin Landa  escreveu no dia segunda, 5/11/2018
à(s) 16:40:

> Hi,
>
> po 5. 11. 2018 v 17:36 odesílatel Pedro Venâncio
>  napsal:
> > os.getenv('HOMEPATH'))
> >   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 65, in join
> > result_drive, result_path = splitdrive(path)
> >   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 115, in splitdrive
> > if len(p) > 1:
> > TypeError: object of type 'NoneType' has no len()
>
> it seems that HOMEPATH environmental variable is not defined for your
> account.
>
> > I'm using Windows 10.
>
> Based on [1] HOMEPATH should be defined on Windows 10 too.
>
> Haven't you unset HOMEPATH for your account by chance? Try to set
> HOMEPATH pointing to your home directory.
>
> Martin
>
> [1]
> https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-05 Thread Martin Landa
Hi,

po 5. 11. 2018 v 17:36 odesílatel Pedro Venâncio
 napsal:
> os.getenv('HOMEPATH'))
>   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 65, in join
> result_drive, result_path = splitdrive(path)
>   File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 115, in splitdrive
> if len(p) > 1:
> TypeError: object of type 'NoneType' has no len()

it seems that HOMEPATH environmental variable is not defined for your account.

> I'm using Windows 10.

Based on [1] HOMEPATH should be defined on Windows 10 too.

Haven't you unset HOMEPATH for your account by chance? Try to set
HOMEPATH pointing to your home directory.

Martin

[1] 
https://www.tenforums.com/tutorials/3234-environment-variables-windows-10-a.html

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive

2018-11-05 Thread Pedro Venâncio
Hi all,

I'm trying to start GRASS GUI, but I always get this error message:

Cleaning up temporary files...
Starting GRASS GIS...
ERROR: Invalid return code from GUI startup script.
Please advise GRASS developers of this error.
Exiting...
Press any key to continue . . .

I tried GRASS 7.4.2 and 7.4.1 from OSGeo4W 64bits, and the standalone
versions (32 and 64 bits). I also tried the 7.2.2, but without success.

C:\Windows\System32>grass74
Traceback (most recent call last):
  File "C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\grass74.py", line 2025, in

main()
  File "C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\grass74.py", line 1874, in
main
ensure_home()
  File "C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\grass74.py", line 720, in
ensure_home
os.getenv('HOMEPATH'))
  File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 65, in join
result_drive, result_path = splitdrive(path)
  File "C:\OSGEO4~1\apps\Python27\lib\ntpath.py", line 115, in splitdrive
if len(p) > 1:
TypeError: object of type 'NoneType' has no len()
Press any key to continue . . .


Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS 7.4.2\etc\grass74.py", line 2025,
in 
main()
  File "C:\Program Files (x86)\GRASS GIS 7.4.2\etc\grass74.py", line 1874,
in main
ensure_home()
  File "C:\Program Files (x86)\GRASS GIS 7.4.2\etc\grass74.py", line 720,
in ensure_home
os.getenv('HOMEPATH'))
  File "C:\Program Files (x86)\GRASS GIS 7.4.2\Python27\lib\ntpath.py",
line 65, in join
result_drive, result_path = splitdrive(path)
  File "C:\Program Files (x86)\GRASS GIS 7.4.2\Python27\lib\ntpath.py",
line 115, in splitdrive
if len(p) > 1:
TypeError: object of type 'NoneType' has no len()
Press any key to continue . . .


Traceback (most recent call last):
  File "C:\Program Files\GRASS GIS 7.2.2\etc\grass72.py", line 1984, in

main()
  File "C:\Program Files\GRASS GIS 7.2.2\etc\grass72.py", line 1833, in main
ensure_home()
  File "C:\Program Files\GRASS GIS 7.2.2\etc\grass72.py", line 716, in
ensure_home
os.getenv('HOMEPATH'))
  File "C:\Program Files\GRASS GIS 7.2.2\Python27\lib\ntpath.py", line 73,
in join
elif isabs(b):
  File "C:\Program Files\GRASS GIS 7.2.2\Python27\lib\ntpath.py", line 57,
in isabs
s = splitdrive(s)[1]
  File "C:\Program Files\GRASS GIS 7.2.2\Python27\lib\ntpath.py", line 125,
in splitdrive
if p[1:2] == ':':
TypeError: 'NoneType' object has no attribute '__getitem__'
Press any key to continue . . .

Running GRASS algorithms from QGIS Processing, they work like expected, so
the problem must be only on the GUI (WXPython?).

I'm using Windows 10.

Any tip for overcoming this problem?

Thank you very much!

Best regards,
Pedro Venâncio
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev