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

Martin Landa landa.martin at gmail.com
Mon Nov 5 08:40:29 PST 2018


Hi,

po 5. 11. 2018 v 17:36 odesílatel Pedro Venâncio
<pedrongvenancio at gmail.com> 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


More information about the grass-dev mailing list