Problem
Two tests fail with Open3D 0.19.0:
- test_build_point_cloud
- test_view_point_cloud
Error:
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
Cause
In Open3D 0.19.0, o3d.geometry.PointCloud is a pybind11_type, not a
standard Python type. isinstance() does not accept pybind11 types.
Fix
Replace isinstance() checks with type(obj).name == "PointCloud"
Environment
- Open3D 0.19.0
- Python 3.11.9
- Windows
Problem
Two tests fail with Open3D 0.19.0:
Error:
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
Cause
In Open3D 0.19.0, o3d.geometry.PointCloud is a pybind11_type, not a
standard Python type. isinstance() does not accept pybind11 types.
Fix
Replace isinstance() checks with type(obj).name == "PointCloud"
Environment