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

Pedro Venâncio pedrongvenancio at gmail.com
Mon Nov 5 08:35:06 PST 2018


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
<module>
    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 <module>
    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
<module>
    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
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20181105/cce31991/attachment.html>


More information about the grass-dev mailing list