Hello list;
I have just installed the new Grass version but I haven’t been able to work with it!
If I try to launch the GRASS 6.4 ORC6 with the new wxpython GUI; I get an error message saying that python.exe has detected a problem and has to close. Further, I get this:
ERROR: G_getenv(): Variable LOCATION_NAME not set
Traceback (most recent call last):
File “C:/Archivos de programa/GRASS-64/etc/wxpython/gis_set.py”, line 866, in
GRASSStartUp = StartUp(0)
File “C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-unicode\wx_core.p
y”, line 7935, in init
self._BootstrapApp()
File “C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-unicode\wx_core.p
y”, line 7509, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “C:/Archivos de programa/GRASS-64/etc/wxpython/gis_set.py”, line 837, in
OnInit
StartUp = GRASSStartup()
File “C:/Archivos de programa/GRASS-64/etc/wxpython/gis_set.py”, line 165, in
init
self._set_properties()
File “C:/Archivos de programa/GRASS-64/etc/wxpython/gis_set.py”, line 215, in
_set_properties
not os.path.isdir(os.path.join(self.gisdbase, location)):
File “C:\Archivos de programa\GRASS-64\Python25\lib\ntpath.py”, line 67, in jo
in
elif isabs(b):
File “C:\Archivos de programa\GRASS-64\Python25\lib\ntpath.py”, line 53, in is
abs
s = splitdrive(s)[1]
File “C:\Archivos de programa\GRASS-64\Python25\lib\ntpath.py”, line 119, in s
plitdrive
if p[1:2] == ‘:’:
TypeError: ‘NoneType’ object is unsubscriptable
If I try to use the very nice GRASS 6.4 ORC6 with MSYS interface; the computer gets blocked if I try to run a command.
Any idea of what the problem could be?
Thank you in advance
Miguel
Hello list;
I have just installed the new Grass version but I haven’t been able to work with it!
If I try to launch the GRASS 6.4 ORC6 with the new wxpython GUI; I get an error message saying that python.exe has detected a problem and has to close.
Any idea of what the problem could be?
Miguel,
I had the same problem with osgeo4w.
Then I installed the RC6 with the installer (http://grass.osgeo.org/grass64/binary/mswindows/native/), after that both distributions worked very well.
I have no idea what it is, but it worked.
BTW, RC6 is very stable.
Pablo.
Fale com seus amigos do Messenger direto da Caixa de Entrada do Hotmail. Clique aqui
Hi,
I've installed spgrass6, which apparently went fine (on my mac).
All the examples I found run R commands from the GRASS console (hence not being necessary to specify the GRASS LOCATION, etc.
Isn't it possible to specify a GRASS LOCATION from within the R interface?
In R, I loaded spgrass6, then tried:
> initGRASS("/Applications/grass-6.4.app")
and I get:
/bin/sh: g.gisenv: command not found
Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText == :
argument is of length zero
Error in parseGRASS(cmd) : g.region not parsed
sh: g.region: command not found
>
----
If I want to start GRASS and open a specific mapset, would this work?
initGRASS("/Applications/grass-6.4.app", GISdbase="/Users/antonio/Documents/grass", location="pt_etrs89", mapset="interior")
(well, it doesn't, I'm just not sure why...)
Thank you
António
António,
You must run this from the GRASS term window; first start R at the GRASS shell prompt, by typing R; then load spgrass6: library(spgrass6) — the supporting libraries (sp, rgdal, etc.) must be installed in R first.
Regards,
Tom
António M. Rodrigues wrote:
Hi,
I've installed spgrass6, which apparently went fine (on my mac).
All the examples I found run R commands from the GRASS console (hence not being necessary to specify the GRASS LOCATION, etc.
Isn't it possible to specify a GRASS LOCATION from within the R interface?
In R, I loaded spgrass6, then tried:
> initGRASS("/Applications/grass-6.4.app")
and I get:
/bin/sh: g.gisenv: command not found
Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText == :
argument is of length zero
Error in parseGRASS(cmd) : g.region not parsed
sh: g.region: command not found
>
----
If I want to start GRASS and open a specific mapset, would this work?
initGRASS("/Applications/grass-6.4.app", GISdbase="/Users/antonio/Documents/grass", location="pt_etrs89", mapset="interior")
(well, it doesn't, I'm just not sure why...)
Thank you
António_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177
EMAIL: thomas.adams@noaa.gov
VOICE: 937-383-0528
FAX: 937-383-0033