def METHOD_NAME(self, request):
    """Send an install request to autopkginstalld"""
    self.socket.send(plistlib.dumps(request))
    with os.fdopen(self.socket.fileno()) as fileref:
        while True:
            data = fileref.readline()
            if data:
                if data.startswith("OK:"):
                    return data.replace("OK:", "").rstrip()
                elif data.startswith("ERROR:"):
                    break
                else:
                    self.output(data.rstrip())
            else:
                break
    errors = data.rstrip().split("\n")
    if not errors:
        errors = ["ERROR:No reply from autopkginstalld (crash?), check system logs"]
    raise ProcessorError(", ".join([s.replace("ERROR:", "") for s in errors]))