I have multiple scripts I like to add them to QGIS.
I tried adding it via the GUI as well the code under this entry Adding scripts to Processing toolbox via PyQGIS.
For the first script "lines heat density" this works well but all the others scripts can not be added or at least be seen in the toolbox under scripts. There is no error message. The toolboxtree under scripts just closes. When opening nothing new is added. The scripts are located under ...AppData\Roaming\QGIS\QGIS3\profiles\default\processing\scripts
.
How to fix this ?
QgsProcessingAlgorithm
or using the @alg decorator. In some cases, errors in the script will just disable the scripts provider (sounds like what happened). Check the Python Error tabs in the logs panel.lines heat density
was created with the model builder the script to add was mainly written by AI. Still works but probably does not match the stated requirements for QGIS. The logs panel does not show any error while executing the script.processAlgorithm()
method, you will need to override theflags()
method and return the no threading flag. See: gis.stackexchange.com/questions/493906/…