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.34k stars 2.97k forks source link

Processing Tools are missing with new OSGeo4W #42139

Closed esnyder-rve closed 3 years ago

esnyder-rve commented 3 years ago

Describe the bug I went to make contours using GDAL, and I noticed that the contour tool is missing. I first noticed something was off when I got an error message from a plugin saying ModuleNotFoundError: No module named 'gdal' after installing new OSGeo4W (See https://github.com/EarthObservation/rvt-qgis/issues/10)

This may be the source of this problem: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

And yes, problem persists with a clean profile

How to Reproduce

  1. Install new OSGeo4W
  2. Install QGIS (any version as both 3.18 & 3.16 have this problem)
  3. Start one up
  4. Check the Processing Log Messages (See bottom for log contents)

Processing toolbox & options with clean profile on QGIS 3.16 LTR Screenshot 2021-03-09 082227

QGIS and OS versions

QGIS version 3.16.4-Hannover
QGIS code revision 654e76b3cb
Compiled against Qt 5.15.2
Running against Qt 5.15.2
Compiled against GDAL/OGR 3.2.1
Running against GDAL/OGR 3.2.1
Compiled against GEOS 3.9.1-CAPI-1.14.2
Running against GEOS 3.9.1-CAPI-1.14.2
Compiled against SQLite 3.33.0
Running against SQLite 3.33.0
PostgreSQL Client Version 13.0
SpatiaLite Version 5.0.1-rc1
QWT Version 6.1.3
QScintilla2 Version 2.11.5
Compiled against PROJ 7.2.1
Running against PROJ Rel. 7.2.1, January 1st, 2021
OS Version Windows 10 Version 2004
Active python plugins db_manager; MetaSearch; processing

Additional context Here's the log message. Note that everything GDAL is on this list, plus the voronoi tool mentioned in the mailing list thread.

2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:distancematrix
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:listuniquevalues
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:basicstatisticsforfields
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:randomselection
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:randomselectionwithinsubsets
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:randompointsinlayerbounds
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:randompointsinsidepolygons
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:regularpoints
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:eliminateselectedpolygons
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:checkvalidity
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:exportaddgeometrycolumns
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:delaunaytriangulation
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:voronoipolygons
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: qgis:linestopolygons
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:warpreproject
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:extractprojection
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:assignprojection
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:rasterize
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:polygonize
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:translate
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:rgbtopct
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:pcttorgb
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:contour
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:cliprasterbyextent
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:cliprasterbymasklayer
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:sieve
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:nearblack
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:fillnodata
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:proximity
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:griddatametrics
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:gridaverage
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:gridinversedistance
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:gridnearestneighbor
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:aspect
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:hillshade
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:roughness
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:slope
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:tpitopographicpositionindex
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:triterrainruggednessindex
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:buildvirtualraster
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:merge
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:gdalinfo
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:overviews
2021-03-09T08:05:28     WARNING    Invalid algorithm ID for menu: gdal:tileindex
esnyder-rve commented 3 years ago

This issue is not referring to SAGA or GRASS processing tools.

nicogodet commented 3 years ago

Duplicate #42035 ?

esnyder-rve commented 3 years ago

How does this: https://github.com/jef-n/OSGeo4W/commit/d06bfa6bb835343df9c9c14f5721995670eb0cee solve this?

gioman commented 3 years ago

How does this: jef-n/OSGeo4W@d06bfa6 solve this?

@esnyder-rve you must wait new packages getting into the osgeo4w installer, closing?

esnyder-rve commented 3 years ago

My comment was about how SAGA is related to GDAL missing?

gioman commented 3 years ago

My comment was about how SAGA is related to GDAL missing?

as you can see in your screenshot all the providers are missing, GDAL, SAGA and GRASS. Closing as duplicate?

esnyder-rve commented 3 years ago

I really don't mind SAGA/GRASS missing as much as GDAL. Is there a patch in place to fix GDAL? If so, then please close this.

gioman commented 3 years ago

I really don't mind SAGA/GRASS missing as much as GDAL

@nicogodet yeah...

Is there a patch in place to fix GDAL?

https://github.com/qgis/QGIS/issues/42139#issuecomment-793913581

If so, then please close this

also because is duplicate of https://github.com/qgis/QGIS/issues/42035

esnyder-rve commented 3 years ago

I looked at Jef's fix and it's supposedly for fixing SAGA. Does that patch also fix GRASS & GDAL?

Sorry if I feel like a nag, but I want to make sure everything is fixed before this gets closed to keep things from falling between the cracks.

So, to close this issue are these three things working:

  1. SAGA Processing Tools - Yes, per https://github.com/jef-n/OSGeo4W/commit/d06bfa6bb835343df9c9c14f5721995670eb0cee
  2. GRASS Processing Tools - ?
  3. GDAL Processing Tools - ?
gioman commented 3 years ago

I looked at Jef's fix and it's supposedly for fixing SAGA. Does that patch also fix GRASS & GDAL?

@nicogodet the fix https://github.com/jef-n/OSGeo4W/commit/d06bfa6bb835343df9c9c14f5721995670eb0cee

says "fixes qgis/QGIS#42035" which describes exactly what you have reported (see https://github.com/qgis/QGIS/issues/42035).

nicogodet commented 3 years ago

(@gioman stop mentioning me please 😄)

gioman commented 3 years ago

(@gioman stop mentioning me please smile)

sorry

esnyder-rve commented 3 years ago

So, after over 30 minutes of waiting for OSGeo4W to install updates, the patch pushed by Jef does fix everything. It's weird that fixing a problem with SAGA fixes the rest.

Solution: Update QGIS with OSGeo4W Installer

RookieUser999 commented 3 years ago

Hi.

Im quite new user for QGIS and after updating Saga tolls stopped working. How do I use this patch? Can I find instructions somewhere?

\ Klaus Finland

gioman commented 3 years ago

updating Saga tolls

@RookieUser999 how you updated? on what operating system?

RookieUser999 commented 3 years ago

Hi. I have tried everything after SAGA got screwed up. I have uninstalled everything and tried QGIS standalone, OSGEOW64 express desktop install and advanced install and I also have tried older QGIS standalone packages and nothing helps.

RookieUser999 commented 3 years ago

and Windows 10