'AttributeError: module 'vertica_sdk' has no attribute 'UDSource'

I try to write a parser for vertica in python. But i get this error message.

class MyParser(vertica_sdk.UDSource):
    def __init__(self):
            pass
    def setup(srvInterface, returnType):
            pass
    def process(self, srvInterface, inputbuffer, inputstate, streamwriter):
            print("1")


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source