<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi<div class=""><br class=""><blockquote type="cite" class="">On 14 Sep 2015, at 15:30, Radim Blazek <<a href="mailto:radim.blazek@gmail.com" class="">radim.blazek@gmail.com</a>> wrote:<br class=""><br class="">On Sun, Sep 13, 2015 at 10:16 PM, Tim Sutton <<a href="mailto:tim@qgis.org" class="">tim@qgis.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">Hi Radim<br class=""><br class=""><br class="">I wanted to make a small request / suggestion too about the GRASS implementation in QGIS. Currently when you start QGIS compiled with GRASS (in my case 6.4 on fedora), you get a pop up at the start of QGIS asking you if you want to set GISBASE. No matter what I set there I can’t get it to recognise my GRASS. That is probably just me being dumb, but my problem is more about the popup itself - it blocks QGIS from starting which ruins e.g. tests which need to run headless and I think it isn’t a great user experience as there is no help to tell you how to locate GISBASE. What about using a QgsMessageBar or some other non-blocking technique for alerting the user to the fact that their GISBASE is not found, and providing some help on what the appropriate setting should be?<br class=""></blockquote><br class="">OK, I have disabled the warning dialog and I'll add GISBASE select to<br class="">options. A soft message is set from the plugin.</blockquote><div class=""><br class=""></div><div class="">Thanks!</div><br class=""><blockquote type="cite" class=""> Is there a mechanism<br class="">how to set soft message from provider?<br class=""></blockquote><div class=""><br class=""></div><div class="">Hmm I’m wondering if a generic notification signal / slot would be useful….so that any non gui bits of code can push messages up to the UI.</div><br class=""><blockquote type="cite" class=""><br class="">Regarding the GISBASE itself, the search order is:<br class="">1) GISBASE environment variable<br class="">2) previously selected in the dialog (which is now disabled)<br class="">3) the location of GRASS used for compilation (cmake GRASS_BASE or GRASS_BASE7)<br class="">4) opens select dialog (now disabled)<br class=""><br class="">So it seems that in your case QGIS was compiled with a version of<br class="">GRASS which is no more available. Can you find in debug output where<br class="">it looks for GRASS, something like:<br class="">src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from<br class="">configure is: /home/radim/apps-grass-7-svn/grass-7.1.svn<br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms]<br class="">isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 471: (init) [0ms] Valid GRASS<br class="">gisBase is: /home/radim/apps-grass-7-svn/grass-7.1.svn<br class=""></blockquote><div class=""><br class=""></div><div class="">I get:</div><div class=""><br class=""></div><div class="">src/core/qgsproviderregistry.cpp: 131: (QgsProviderRegistry) [7ms] Checking /usr/local/qgis-master//lib/qgis/plugins/libgrassplugin6.so: ...invalid (has type method)<br class="">src/providers/grass/qgsgrass.cpp: 317: (init) [2ms] do init<br class="">src/providers/grass/qgsgrass.cpp: 379: (init) [0ms] GRASS gisBase from GISBASE/WINGISBASE env var is: <br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: <br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass<br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass'(GISBASE), provider and plugin will not work.<br class="">src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [2ms] init failed<br class=""><br class=""></div><div class="">I went and checked and it seems like make gets the wrong lib dir so I changed to do:</div><div class=""><br class=""></div><div class="">-DGRASS_PREFIX=/usr/lib/grass64 </div><div class=""><br class=""></div><div class="">And now I get:</div><div class=""><br class=""></div><div class="">src/providers/grass/qgsgrass.cpp: 317: (init) [2ms] do init<br class="">src/providers/grass/qgsgrass.cpp: 379: (init) [1ms] GRASS gisBase from GISBASE/WINGISBASE env var is: <br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: <br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass64<br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass64'(GISBASE), provider and plugin will not work.<br class="">src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [0ms] init failed<br class=""><br class=""></div><div class="">I also tried explictly setting GISBASE as env var to /usr and then I get:</div><div class=""><br class=""></div><div class="">src/providers/grass/qgsgrass.cpp: 317: (init) [1ms] do init<br class="">src/providers/grass/qgsgrass.cpp: 379: (init) [1ms] GRASS gisBase from GISBASE/WINGISBASE env var is: /usr/<br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: <br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass64<br class="">src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()<br class="">src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass64'(GISBASE), provider and plugin will not work.<br class="">src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [1ms] init failed<br class=""><br class=""></div><div class=""><br class=""></div><div class="">If I go to the help -> about -> providers box, I get both grass 6 and 7 listed there</div><div class=""><br class=""></div><div class="">Probably too much information I know :-P</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards</div><div class=""><br class=""></div><div class="">Tim</div><br class=""><blockquote type="cite" class=""><br class="">Radim<br class=""><br class=""><blockquote type="cite" class=""><br class="">Regards<br class=""><br class="">Tim<br class=""><br class=""><br class="">On 13 Sep 2015, at 09:06, Radim Blazek <<a href="mailto:radim.blazek@gmail.com" class="">radim.blazek@gmail.com</a>> wrote:<br class=""><br class="">On Sat, Sep 12, 2015 at 4:57 PM, Richard Duivenvoorde <<a href="mailto:richard@duif.net" class="">richard@duif.net</a>> wrote:<br class=""><br class="">On 12-09-15 14:52, Radim Blazek wrote:<br class=""><br class="">On Fri, Sep 11, 2015 at 5:48 PM, Paolo Cavallini <<a href="mailto:cavallini@faunalia.it" class="">cavallini@faunalia.it</a>> wrote:<br class=""><br class="">All seems to go very well:<br class=""><a href="http://www.gissula.eu/qgis-grass-plugin-crowdfunding/progress.html" class="">http://www.gissula.eu/qgis-grass-plugin-crowdfunding/progress.html</a><br class="">Only editing is still to be completed, but almost all the rest is done.<br class=""><br class=""><br class="">I want to finish the upgrade for the 2.12 as I promised, i.e. the 26th<br class="">of September<br class="">according to https://www.qgis.org/en/site/getinvolved/development/index.html.<br class=""><br class=""><br class="">Good work and nice way of working, Radim.<br class="">Both the crowdfunding and your way of describing the progress.<br class=""><br class=""><br class="">Thanks Richard.<br class=""><br class="">Maybe anybody volunteering to write some small news article about this<br class="">work (and Radim) on the qgis blog?<br class=""><br class=""><br class="">Better to wait with more publicity until the work is completed, I mean<br class="">all the intended features are there (2.12 feature freeze).<br class=""><br class="">Radim<br class="">_______________________________________________<br class="">Qgis-psc mailing list<br class="">Qgis-psc@lists.osgeo.org<br class="">http://lists.osgeo.org/mailman/listinfo/qgis-psc<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">Tim Sutton<br class="">QGIS Project Steering Committee Member<br class="">tim@qgis.org<br class=""><br class=""><br class=""><br class=""><br class=""></blockquote></blockquote><br class=""><div class=""><span><img height="60" width="60" apple-inline="yes" id="9DB3725A-DA76-4909-A6B8-001395AD14A9" apple-width="yes" apple-height="yes" src="cid:DDEF9B12-67C3-4498-BD7D-EC3563CC35A4" class=""></span><br class=""><br class=""><br class="">Tim Sutton<br class="">QGIS Project Steering Committee Member<br class=""><a href="mailto:tim@qgis.org" class="">tim@qgis.org</a><br class=""><br class=""><br class=""><br class=""></div><br class=""></div></body></html>