How to Spawn Text3DActor using Python?

        textActor.set_actor_location(unreal.Vector(0.0, 0.0, 0.0), False, False)
        textActor.set_actor_scale3d(unreal.Vector(100.0, 100.0, 100.0))
        component = textActor.text3d_component
        component.text = "Unreal Engine Test Text"

        textObject = unreal.Text3DComponent
        textObject.text = "Unreal Engine Text Object Test"

        actorLocation = unreal.Vector(startingPoint, 0.0, 0.0)
        actorRotation = unreal.Rotator(0.0, 0.0, 0.0)
        actorScale = unreal.Vector(1.0, 1.0, 1.0)

        textObjectActor = unreal.EditorLevelLibrary.spawn_actor_from_object(textObject, actorLocation, actorRotation)

Neither method workls

Fixed it by using

spawn_actor_from_class