3

I am working on QGIS plugin bufferbypercentage.

# Import the PyQt and QGIS libraries 
from PyQt5.QtCore import * 
from PyQt5.QtGui import * 
from qgis.core import * 
# Initialize Qt resources from file resources.py 
from . import resources_rc # lint:ok 
# Import the code for the dialog 
from .bufferbypercentagedialog import BufferByPercentageDialog 
# Import the Processing libraries so we can add the algorithm to the Processing menu
from processing.core.Processing import Processing 
from processing.core.GeoAlgorithm import GeoAlgorithm 
from processing.core.parameters import ParameterVector 
from processing.core.parameters import ParameterNumber 
from processing.core.parameters import ParameterTableField 
from processing.core.outputs import OutputVector 
from processing.tools import dataobjects, vector 
from processing.core.AlgorithmProvider import AlgorithmProvider

This gives me error:

Traceback (most recent call last): File "C:\PROGRA~1\SURVEY~1.0\apps\Python36\lib\code.py", line 91, in runcode exec(code, self.locals) File "", line 1, in File "C:/PROGRA~1/SURVEY~1.0/apps/qgis/./python\qgis\utils.py", line 666, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'processing.core.AlgorithmProvider'

I am testing it on qgis master 2.99

Is AlgorithmProvider removed? If yes then what is have to use.

underdark
84.9k22 gold badges237 silver badges418 bronze badges
asked Sep 12, 2017 at 4:56
3
  • 1
    AlgorithmProvider was removed ,use the QgsProcessingProvider class Commented Sep 13, 2017 at 6:11
  • 1
    And plugins built on qgis master 2.99 using the most recent Plugin Builder 3 plugin fail with this error, pffft Commented Dec 21, 2017 at 4:58
  • @FranRaga Please post your comment as an answer so this thread can be marked as answered Commented Feb 26, 2019 at 18:33

1 Answer 1

4
answered Feb 26, 2019 at 18:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.