Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Open3D tutorial error

Open wkdwlsdn2006 opened this issue 3 years ago • 3 comments

Checklist

My Question

Hello. I'm an Open3D beginner. I'm not used to development either. My question may be low-level, but I would appreciate it if there was someone who could answer me.

After installing Open3D, I try it. ' python3 -c "import open3d as o3d; print(o3d.version)"

python3 -c "import open3d as o3d;
mesh = o3d.geometry.TriangleMesh.create_sphere();
mesh.compute_vertex_normals();
o3d.visualization.draw(mesh, raw_mode=True)"

open3d example visualization/draw`

but, I got these error messages.

jinwoo@jinwoo-MS-7D17:~/workspace$ python3 -c "import open3d as o3d; print(o3d.version)" 0.13.0

jinwoo@jinwoo-MS-7D17:~/workspace$ python3 -c "import open3d as o3d; \

       mesh = o3d.geometry.TriangleMesh.create_sphere(); \
       mesh.compute_vertex_normals(); \
       o3d.visualization.draw(mesh, raw_mode=True)"

Traceback (most recent call last): File "", line 1, in TypeError: draw() got an unexpected keyword argument 'raw_mode'

jinwoo@jinwoo-MS-7D17:~/workspace$ open3d example visualization/draw open3d: command not found

How can I fix these error?

ubuntu 20.04 python 3.8.10 cmake 3.23.2

Thank you for read my question.

wkdwlsdn2006 avatar Jun 10 '22 06:06 wkdwlsdn2006

Raw mode is not available in the older version of Open3d. Could you tell how you installed Open3d?

ShreyanshDarshan avatar Jun 11 '22 07:06 ShreyanshDarshan

I have the same error with a fresh install python3 -m pip install open3d I tried a pip upgrade with python3 -m pip install open3d --upgrade but it is already in the latest version apparently. Am I missing something here? Thanks.

pedroexenberger avatar May 02 '24 10:05 pedroexenberger

My bad I had an old pip version. It has to be >= 20.3 (https://www.open3d.org/docs/latest/getting_started.html#development-version-pip). Solved with python3 -m pip install --upgrade pip followed by python3 -m pip install -U -f https://www.open3d.org/docs/latest/getting_started.html open3d

pedroexenberger avatar May 03 '24 10:05 pedroexenberger