[GRASS-user] Wingrass 6.4 with MSYS does not work
Daniel Victoria
daniel.victoria at gmail.com
Mon Jul 5 16:11:39 EDT 2010
Hi Markus M.,
I forgot to mention that I'm using win7 and it's a Portuguese instalation...
I installed the Grass SVN version (tried bothe r42668 and r42681) and
I get the same problem in both. That is, when I try to launch
Grass64svn with MSYS console, after passing the select location
window, the MSys console just closes. Opening a separate MSys console
and executing /grass/bin/grass64svn will start the Select location
window and after I click on Start, Grass crashes with the following
error:
------------------------------------------------------------------------------------------------------------
$ grass64svn
Cleaning up temporary files ...
Starting GRASS ...
ATENÇÃO: Attention!
ATENÇÃO: Locking is not supported on Windows!
__________ ___ __________ _______________
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
\____/_/ |_/_/ |_/____/____/ \____/___//____/
Welcome to GRASS 6.4.0svn (2010)
GRASS homepage: http://grass.osgeo.org/
This version running thru: GNU Bash (Cygwin) (/usr/bin/bash.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit
Closing monitors ...
Cleaning up temporary files ...
Done.
Goodbye from GRASS GIS
daniel at PEQUI /grass/bin
$ Traceback (most recent call last):
File "c:/Program Files (x86)/GRASS-64-SVN/etc/wxpython/wxgui.py",
line 85, in <module>
import gui_modules.preferences as preferences
File "c:\Program Files
(x86)\GRASS-64-SVN\etc\wxpython\gui_modules\preferences.py", line 807,
in <module>
globalSettings = Settings()
File "c:\Program Files
(x86)\GRASS-64-SVN\etc\wxpython\gui_modules\preferences.py", line 491,
in __init__
self.ReadSettingsFile()
File "c:\Program Files
(x86)\GRASS-64-SVN\etc\wxpython\gui_modules\preferences.py", line 563,
in ReadSettingsFile
mapset_file = os.path.join(gisdbase, location_name, mapset_name,
self.fileName)
File "C:\Program Files (x86)\GRASS-64-SVN\Python25\lib\ntpath.py",
line 67, in join
elif isabs(b):
File "C:\Program Files (x86)\GRASS-64-SVN\Python25\lib\ntpath.py",
line 53, in isabs
s = splitdrive(s)[1]
File "C:\Program Files (x86)\GRASS-64-SVN\Python25\lib\ntpath.py",
line 119, in splitdrive
if p[1:2] == ':':
TypeError: 'NoneType' object is unsubscriptable
$
----------------------------------------------------------------------------------------------------------------
Thanks
Daniel
On Mon, Jul 5, 2010 at 4:19 PM, Markus Metz
<markus.metz.giswork at googlemail.com> wrote:
> Daniel Victoria wrote:
>>
>> I just installed WinGrass 6.4.0RC6
>
> Get rid of 6.4.0RC6, it's known not to work well on Windows, use the
> latest Wingrass instead, available from here:
> http://josef.fsv.cvut.cz/wingrass/grass64/
>
>> and I can get the Grass wxpython
>> gui to work OK. The thing is that I also want to use the command line
>> for some bash loops and R integration. So I have one question and one
>> problem. Let's go for the problem first.
>>
>> 1) Problem: If it click on the Grass with MSYS icon the screen
>> prompting for the location and mapset will show up but, when I select
>> the location and click OK, Grass shuts down. Opening a msys windows
>> and calling grass64 gives the following error:
>
> Should be solved with a new installer, to make sure you could delete
> any .grasswx6 file found on your system first.
>
>>
>> 2) Question: Can I integrate Wingrass and R? How do I run R from the
>> grass command line? Should I use MSYS? because I can't get the windows
>> command line functioning after I start wxpython gui.
>>
> On Windows, the easiest way is calling grass from R with initGRASS
> from the R package spgrass6. After GRASS has been initialized for R,
> you have access to grass commands from within R. For an example, see
> http://geomorphometry.org/content/geomorphometry-r-saga-ilwis-grass
>
> Go down to the part of the script with the grass example, adjust
> loc <- initGRASS("C:/GRASS", home=tempdir())
> as appropriate for your system.
>
> Good luck,
>
> Markus
>
More information about the grass-user
mailing list