Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
I am trying to use the following scripts to run QGIS tools from Python. Below the scripts I run,
rom qgis.core import *
# Set the prefix path to the QGIS installation
QgsApplication.setPrefixPath("/opt/homebrew/Caskroom/miniforge/base/envs/q2/bin", True)
# Create the QgsApplication instance
qgs = QgsApplication([], False)
# Initialize the QGIS resources
qgs.initQgis()
import processing
# check all the algorithms available in QGIS
for alg in QgsApplication.processingRegistry().algorithms():
print( "--->", alg.name())
# Finally, exit the QGIS application
qgs.exitQgis()
It prints available algorithms when I run it inside QGIS Python console.
But when I run it in the Python shell outside QGIS, it prints nothing. I checked the variables, QgsApplication.processingRegistry().algorithms() return a empty list.
Solution to issue cannot be found in the documentation.
Issue
I am trying to use the following scripts to run QGIS tools from Python. Below the scripts I run,
It prints available algorithms when I run it inside QGIS Python console.
But when I run it in the Python shell outside QGIS, it prints nothing. I checked the variables,
QgsApplication.processingRegistry().algorithms()
return a empty list.Installed packages
Environment info