Search code examples
pythonattributesopen3d

Attribute error: module ‘open3d’ has no attribute ‘data’


Open3d was not available on the anaconda navigator so I installed it using the anaconda prompt with the conda install command.

I wanted to try a basic code for Ball Pivoting Algorithm from http://www.open3d.org/docs/release/tutorial/geometry/surface_reconstruction.html

import open3d as o3d
import os 
import sys 

bunny = o3d.data.BunnyMesh()
gt_mesh = o3d.io.read_triangle_mesh(bunny.path)
gt_mesh.compute_vertex_normals()

but even running the first lines I get the error

Attribute error: module ‘open3d’ has no attribute ‘data’

I’ve no idea why this is.


Solution

  • Support for open3d.data has been added in version 0.15. Upgrade the Open3d version and then try this API.

    Release note: https://github.com/isl-org/Open3D/releases/tag/v0.15.1