[GRASS-dev] create location in windows

Luca Delucchi lucadeluge at gmail.com
Wed Jul 29 08:18:42 PDT 2015


On 29 July 2015 at 16:42, Markus Neteler <neteler at osgeo.org> wrote:
> On Wed, Jul 29, 2015 at 4:33 PM, Luca Delucchi <lucadeluge at gmail.com> wrote:
>> Hi devs,
>>
>> a colleague of mine has problem creating new location on Windows7.
>> Here the error that she got using epsg code or prj file
>>
>> Traceback (most recent call last):
>>   File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\gis_set.py", line
>>  500, in OnWizard
>>     grassdatabase = self.tgisdbase.GetValue())
>>   File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\location_wizard\w
>> izard.py", line 1916, in __init__
>>     msg = self.OnWizFinished()
>>   File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\location_wizard\w
>> izard.py", line 2111, in OnWizFinished
>>     **addl_opts)
>>   File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\etc\python\grass\script\core.p
>> y", line 1396, in create_location
>>     encoding='utf-8', mode='w')
>
> ... mhh, once again an encoding issue?
>

I don't think is an encoding problem...

>>   File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\Python27\lib\codecs.py", line
>> 881, in open
>>     file = __builtin__.open(filename, mode, buffering)
>> IOError: [Errno 2] No such file or directory: u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\
>> \MYNAME'
>
> I wonder why there are double \\ while two lines above there are only
> the common single \.
>

if it used os.path.normpath it add double \

> Just guessing...
>
>>
>> D:\\GEOGRAPHY\\ exists and MODIS should be the location.
>
> Is D:\\GEOGRAPHY\\MODIS\\PERMANENT\ there?
>

no, it should be created by the location wizard...

>> Any idea? a bug already fixes in RC2?
>
> Good question, maybe worth trying.
>

we will try tomorrow...

> Markus


-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the grass-dev mailing list