ArgumentError("Trying to add None dimension to cube '%s'." 错误的问题原因和解决方案,以及正确使用cubes库构建OLAP应用的具体例子。通过检查和避免将 None 维度添加到 Cube 中,确保维度参数有效且非 None。