Skip to content

Bug: isinstance check fails with Open3D 0.19.0 in test_lidar.py #571

Description

@Vo1denz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions