qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.61k stars 3.01k forks source link

GRASS Problems when installing parallel QGIS versions at Windows #32930

Closed miron-t closed 4 years ago

miron-t commented 4 years ago

I have problems when trying to run more versions (3.4 ltr and 3.10) at the same time. I’m using the osgeo4w-setup, but there are several things I cannot explain:

Any Ideas? Thanks

roya0045 commented 4 years ago

Grass is in the processing toolbox. For point two you could try to setup two distinct osgeo environment otherwise you will always manage one environment.

Though I have no clue why you would need to have both 3.4 and 3.10.

miron-t commented 4 years ago

Thanks for the reply. I know that GRASS algorithms can be found in the processing toolbox. Unfortunately, after installing QGIS with the osgeo4w-setup, the GRASS algorithms are shown, but an error page comes up when trying to start an algorithm.

Regarding point two: I had the impression that the hole setup with the osgeo4w-setup was fitted to run more QGIS versions independently? I run different versions for Plugin development.

Anyways, I wanted to point out in this bug report that there the is something wrong with the osgeo4w-setup, had lots of errors before.

gioman commented 4 years ago

but an error page comes up when trying to start an algorithm.

what error? something similar has been addressed recently, please be sure you have installed all the latest updates from osgeo4w-

miron-t commented 4 years ago

Mostly missing .dll. I could not start QGIS at all but I could fix this with uninstalling all versions and deleting the OSGEO folder, but the above-mentioned errors maintain. Did everything with the latest download.

gioman commented 4 years ago

Mostly missing .dll.

this is likely a local/temporary issue. Recently they pushed GRASS 7.8,1 in osgeo4w that until a few days ago was messed up.

miron-t commented 4 years ago

Sorry, I didn’t got your question. The error that comes up is the missing GRASS folder:

grafik

Its not the same path as in the picture but the same error.

gioman commented 4 years ago

Its not the same path as in the picture but the same error.

try doing a clean osgeo4w install

jef-n commented 4 years ago

@miron-t There should be a "with GRASS" shortcut and you need to use it. And hint in setup.log or setup.log.full on why there isn't a shortcut?

miron-t commented 4 years ago

I just did a clean Install of 3.4 and 3.10 with the osgeo4w and no success. There are no “with GRASS” exe for both versions. And GRASS is also not working from the Processing Toolbox. Same error as mentioned above. Where can I find setup.log and setup.log.full? I deleted the OSGEO folder on C: for the clean install, is there something else I have to delete?

jef-n commented 4 years ago

@miron-t %OSGEO4W_ROOT%/var/log

miron-t commented 4 years ago

If I change the folder name for GRASS in "C:\OSGeo4W64\apps\grass\grass78" from "grass78" to "grass-7.8.1", I can at least run GRASS processes for QGIS 3.10, but not for 3.4

miron-t commented 4 years ago

I noticed in the setup.log.full that sometimes the path for GRASS is “grass-78” instead of “grass78” witch results in an error: Failed to open source file 'C:\OSGeo4W64\apps\grass\grass-78\etc\fontcap' No such file or directory. Does this help?

miron-t commented 4 years ago

I found out that this error also occurs when I try to install any version of QGIS using the OSGeo4W Installer. So, the error is not limited to the installation of parallel versions. When I try installing QGIS version 3.10.14 or 3.4.14 singular on a Windows 10 machine with the OSGeo4W Installer, there is no qgis-grass7.exe or qgis-ltr-bin-g7.exe. Hence, I cannot use GRASS processes in QGIS.

gioman commented 4 years ago

When I try installing QGIS version 3.10.14 or 3.4.14 singular on a Windows 10 machine with the OSGeo4W Installer, there is no qgis-grass7.exe or qgis-ltr-bin-g7.exe. Hence, I cannot use GRASS processes in QGIS.

if you are using the osgeo4w installer then GRASS must be installed/selected manually along with the necessary "qgis-grass-plugin" package.

miron-t commented 4 years ago

Ok, I was not aware of that change! I’m using the osgeo4w installer since years and it must have changed recently. Thanks so much @gioman for pointing this out, I literally spend hours trying to solve this.

jef-n commented 4 years ago

Ok, I was not aware of that change! I’m using the osgeo4w installer since years and it must have changed recently. Thanks so much @gioman for pointing this out, I literally spend hours trying to solve this.

Which change?

miron-t commented 4 years ago

The change that in the OSGeo4W Installer you have to manually select the "qgis-grass-plugin7" package under “Libs”. I guess it is a change, I always used the OSGeo4W Installer and I never had to select the GRASS plugin manually. grafik

gioman commented 4 years ago

The change that in the OSGeo4W Installer you have to manually select the "qgis-grass-plugin7" package under “Libs”. I guess it is a change, I always used the OSGeo4W Installer and I never had to select the GRASS plugin manually.

I also have the feeling that in the past (2.*) to run GRASS tools in Processing was not needed to run QGIS using the "with GRASS" shortcut. But not 100% sure.

jef-n commented 4 years ago

I also have the feeling that in the past (2.*) to run GRASS tools in Processing was not needed to run QGIS using the "with GRASS" shortcut. But not 100% sure.

Correct - but before you also had to update the GRASS path in processing's settings after GRASS updates (back then for every GRASS point release - causing problems if you didn't), which is now set by the "with GRASS" shortcut. The GRASS plugin itself should always have been optional and hence GRASS. processing doesn't have a hard dependency on GRASS and should detect whether it's there or not - but that's a bit flaky - as w/o "with GRASS" it there, but not operational. And we still have stuff to support version 6 and 7 although GRASS6 is probably not used anymore anywhere…

gioman commented 4 years ago

Correct - but before you also had to update the GRASS path in processing's settings after GRASS updates (back then for every GRASS point release - causing problems if you didn't), which is now set by the "with GRASS" shortcut. The GRASS plugin itself should always have been optional and hence GRASS. processing doesn't have a hard dependency on GRASS and should detect whether it's there or not - but that's a bit flaky - as w/o "with GRASS" it there, but not operational. And we still have stuff to support version 6 and 7 although GRASS6 is probably not used anymore anywhere…

thanks for the explanation.