AttributeError: type object 'pyds.NvDsAnalyticsFrameMeta' has no attribute 'cast'

Please make sure pyds has been installed correctly. DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums