Monday 15 May 2017

grass - Specifying GISBASE location for QGIS install?


I am just a beginner at this QGIS and GRASS and I am using this QGIS 2.0.1 Dufour which throws a error at the startup that



"QGIS couldn't find your GRASS installation. Would you like to specify path (GISBASE) to your GRASS installation?"



I cannot find the root cause of the problem or any way to solve it.



From other forum posts, I can see that many others have seen this problem but no one has given a clear cut solution to it.




If someone can help me with this issue, it will be really helpful. My project work is at halt, so please help me solve it.


**The installer is **



QGIS-OSGeo4W-2.0.1-3-Setup-x86



and



WinGRASS-6.4.3-1-Setup



Also one more update is that it runs fine on my laptop which intel i7 and 4GB RAM with Windows 8 but not on my desktop which is an INTEL DUAL CORE and 2GB RAM which has Windows 7 Enterprise





my "postinstall.log" FILE:


`C:\Program Files\QGIS Dufour\postinstall.log
OSGEO4W_ROOT=C:\PROGRA~1\QGIS Dufour
OSGEO4W_STARTMENU=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour
OSGEO4W_ROOT_MSYS=/C/PROGRA~1/QGIS Dufour

C:\PROGRA~1\QGIS Dufour>"C:\PROGRA~1\QGIS Dufour"\bin\make-bat-for-py.bat

Generating .bat files for all .py files in C:\PROGRA~1\QGIS Dufour\bin



C:\PROGRA~1\QGIS Dufour>set ICON=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico

C:\PROGRA~1\QGIS Dufour>set ICON_CMD=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico

C:\PROGRA~1\QGIS Dufour>set ICON_TCLTK=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico

C:\PROGRA~1\QGIS Dufour>set BATCH=C:\PROGRA~1\QGIS Dufour\bin\grass64.bat


C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\bin\grass64.bat

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\bin\grass64

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\apps\grass\grass-6.4.3\etc\fontcap

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3"

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 GUI.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-wx" \ "Launch GRASS GIS 6.4.3 with wxGUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico"


XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 GUI.lnk
Target object: C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments; -wx
Working Directory: \
Description: Launch GRASS GIS 6.4.3 with wxGUI
Display Mode: Normal Window (1)

Icon file: C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Old TclTk GUI.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-tcltk" \ "Launch GRASS GIS 6.4.3 with the old TclTk GUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico"

XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Old TclTk GUI.lnk

Target object: C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments; -tcltk
Working Directory: \
Description: Launch GRASS GIS 6.4.3 with the old TclTk GUI
Display Mode: Normal Window (1)
Icon file: C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Command Line.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-text" \ "Launch GRASS GIS 6.4.3 in text mode" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico"


XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Command Line.lnk
Target object: C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments; -text
Working Directory: \
Description: Launch GRASS GIS 6.4.3 in text mode
Display Mode: Normal Window (1)

Icon file: C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\GRASS GIS 6.4.3.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-wx" \ "Launch GRASS GIS 6.4.3 with wxGUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico"

XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Desktop\GRASS GIS 6.4.3.lnk

Target object: C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments; -wx
Working Directory: \
Description: Launch GRASS GIS 6.4.3 with wxGUI
Display Mode: Normal Window (1)
Icon file: C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico


C:\PROGRA~1\QGIS Dufour>del "C:\PROGRA~1\QGIS Dufour"\bin\grass64.bat.tmpl


C:\PROGRA~1\QGIS Dufour>del "C:\PROGRA~1\QGIS Dufour"\bin\grass64.tmpl

C:\PROGRA~1\QGIS Dufour>for %f in ("C:\Users\ab281182\AppData\Local\Temp") do call set TEMPDRIVE=%~df

C:\PROGRA~1\QGIS Dufour>call set TEMPDRIVE=C:

C:\PROGRA~1\QGIS Dufour>cd C:\Users\ab281182\AppData\Local\Temp

C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2005_x86.exe" /q /t:C:


C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2005_x86.exe"

C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2008_x86.exe" /q

C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2008_x86.exe"


C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2010_x86.exe" /q

C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2010_x86.exe"

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour"
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\MSYS Shell.lnk" "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat" " " \ "Minimal SYStem" 7 "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico"


XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\MSYS Shell.lnk
Target object: C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat
Arguments;
Working Directory: \
Description: Minimal SYStem

Display Mode: Minimized (7)
Icon file: C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\MSYS Shell.lnk" "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat" " " \ "Minimal SYStem" 7 "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico"

XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows


Shortcut path: C:\ProgramData\Desktop\MSYS Shell.lnk
Target object: C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat
Arguments;
Working Directory: \
Description: Minimal SYStem
Display Mode: Minimized (7)
Icon file: C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico


C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps/msys/etc/fstab


C:\PROGRA~1\QGIS Dufour>dllupdate -oite -copy -reboot "C:\PROGRA~1\QGIS Dufour\bin\libeay32.dll"
C:\PROGRA~1\QGIS Dufour\bin\libeay32.dll: Version=1.0.1.3
C:\Windows\system32\libeay32.dll: Version=0.0.0.0
Target does not exist, no action.

C:\PROGRA~1\QGIS Dufour>dllupdate -oite -copy -reboot "C:\PROGRA~1\QGIS Dufour\bin\ssleay32.dll"
C:\PROGRA~1\QGIS Dufour\bin\ssleay32.dll: Version=1.0.1.3
C:\Windows\system32\ssleay32.dll: Version=0.0.0.0
Target does not exist, no action.


C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\pyuic4.bat

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour

C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps\Python27\Lib\site-packages\PyQt4\pyqtconfig.py

C:\PROGRA~1\QGIS Dufour>call C:\PROGRA~1\QGIS Dufour\bin\make-bat-for-py.bat
'C:\PROGRA~1\QGIS' is not recognized as an internal or external command,
operable program or batch file.


C:\PROGRA~1\QGIS Dufour>call "C:\PROGRA~1\QGIS Dufour"\bin\o4w_env.bat

'"C:\PROGRA~1\QGIS"' is not recognized as an internal or external command,
operable program or batch file.
OSGEO4W home is C:\PROGRA~1\QGIS Dufour
Synchronizing CRS database with GDAL/PROJ definitions.
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified

QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
Loading epsg.wkt
0 WKTs loaded
CRS update (inserted:0 updated:0 deleted:3631 errors:0)
No CRS updates were necessary.

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\qgis.bat

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\qgis-browser.bat


C:\PROGRA~1\QGIS Dufour>REM get short path without blanks

C:\PROGRA~1\QGIS Dufour>for %i in ("C:\PROGRA~1\QGIS Dufour") do set O4W_ROOT=%~fsi

C:\PROGRA~1\QGIS Dufour>set O4W_ROOT=C:\PROGRA~1\QGIS Dufour

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour"
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.


C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" "QGIS Desktop 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico"

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" "QGIS Browser 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis-browser.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico"

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "~$folder.desktop$" "QGIS Desktop 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico"

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "~$folder.desktop$" "QGIS Browser 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis-browser.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico"

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour


C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour\apps\qgis\bin\qgis.reg"

C:\PROGRA~1\QGIS Dufour>"C:\Windows\regedit" /s "C:\PROGRA~1\QGIS Dufour\apps\qgis\bin\qgis.reg"

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\\PROGRA~1\\QGIS Dufour"\bin\qt.conf

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\Setup.lnk" "C:\PROGRA~1\QGIS Dufour\bin\setup.bat -R C:\PROGRA~1\QGIS Dufour" "" "" "Installer" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico"


XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\Setup.lnk
Target object: C:\PROGRA~1\QGIS Dufour\bin\setup.bat -R C:\PROGRA~1\QGIS Dufour
Arguments;
Working Directory:
Description: Installer
Display Mode: Normal Window (1)

Icon file: C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico


C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin/setup.bat

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin/setup-test.bat

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour"
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\OSGeo4W.lnk" "C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico"

XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows

Shortcut path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\OSGeo4W.lnk
Target object: C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat
Arguments;
Working Directory: \

Description: OSGeo for Windows command shell
Display Mode: Normal Window (1)
Icon file: C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\OSGeo4W.lnk" "C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico"

XXMkLink ver 1.00 (c)2005 Copyright Pixelab, Inc.

The shortut created as follows


Shortcut path: C:\ProgramData\Desktop\OSGeo4W.lnk
Target object: C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat
Arguments;
Working Directory: \
Description: OSGeo for Windows command shell
Display Mode: Normal Window (1)
Icon file: C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico



C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour

C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps\Python27\Lib\site-packages\sipconfig.py
`

So what do you think now?




Answer



The Windows standalone installer you used has its own GRASS and does not require to install WINGRASS separately. It might be that those two interfere.


Uninstall WINGRASS and QGSIS, delete the .qgis2 path in your user folder, and reinstall QGIS only.


Then look into C:\Program Files (x86)\QGIS Dufour\postinstall.log for any error messages. When it complains that the PATH variablke exceeds 1024 characters, clean that.



Alternatively, you can use the OSGEO4W setup installer.




From your postinstall.log:


'C:\PROGRA~1\QGIS' is not recognized as an internal or external command,
operable program or batch file.

is the point where it breaks. Strangely, it did work for me on the same operating system. Try to install everything into C:\QGISDufour\ to avoid any blanks in the pathname, or use osgeo4w-setup.exe, which installs into C:\OSGEO4W\


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...