I have been trying to load/install plugins via the python console in QGIS. After going through the documentation, I'm sure this is the way. I want to check if a plug-in is already installed, if not install it.
The lines:
from qgis import utilstry: utils.isPluginLoaded('zoomtocoordinates')except ValueError: qgis.core.QgisInterface.addPluginToMenu('zoomtocoordinates')The error returned:
Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'QgisInterface'
أكثر...
The lines:
from qgis import utilstry: utils.isPluginLoaded('zoomtocoordinates')except ValueError: qgis.core.QgisInterface.addPluginToMenu('zoomtocoordinates')The error returned:
Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'QgisInterface'
أكثر...