You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
I am trying to use the following scripts to run QGIS tools from Python. Below the scripts I run,
romqgis.coreimport*# Set the prefix path to the QGIS installationQgsApplication.setPrefixPath("/opt/homebrew/Caskroom/miniforge/base/envs/q2/bin", True)
# Create the QgsApplication instanceqgs=QgsApplication([], False)
# Initialize the QGIS resourcesqgs.initQgis()
importprocessing# check all the algorithms available in QGISforalginQgsApplication.processingRegistry().algorithms():
print( "--->", alg.name())
# Finally, exit the QGIS applicationqgs.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
The text was updated successfully, but these errors were encountered: