nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.23k stars 233 forks source link

AttributeError: module 'open3d' has no attribute 'cpu' #5133

Closed neurodiverseEsoteric closed 1 month ago

neurodiverseEsoteric commented 1 month ago

Problem statement

Is the problem installation related? then visit this page first https://github.com/nortikin/sverchok#troubleshooting-installation-errors_.

For any other issues, or if the installation still failed; Please describe the problem here.

Steps to reproduce

  1. install sverchok
  2. install extras/site-packages for sverchok
  3. attempt to enable Sverchok-Open3d

    Expected result

    Sverchok-Open3d enabled What did you expect to see as a result of those steps? IDK I just wanted to enable all the things just in case

    Actual result

    Sverchok-Open3d addon fails to enable

What did you actually get?

Traceback (most recent call last): File "~/Applications/BLENDERS/stable/blender-4.1.1-stable.e1743a0317bc/4.1/scripts/modules/addon_utils.py", line 376, in enable mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "~/Applications/BLENDERS/stable/blender-4.1.1-stable.e1743a0317bc/4.1/python/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "~/.config/blender/4.1/scripts/addons/sverchok-open3d-master/__init__.py", line 34, in <module> from sverchok_open3d import sockets File "~/.config/blender/4.1/scripts/addons/sverchok-open3d-master/sockets.py", line 14, in <module> TriangleMesh = o3d.cpu.pybind.geometry.TriangleMesh ^^^^^^^ AttributeError: module 'open3d' has no attribute 'cpu'

Sverchok version

sverchok-master.zip

This is especially important for installation-related issues. Please specify how do you install Sverchok: from sverchok-master.zip from github, or from release zip file, or from cloned git repo.

satabol commented 1 month ago

Hi @neurodiverseEsoteric What operation system you are using? Can you do screenshot of error with full error text ? (Expand window before screen)

neurodiverseEsoteric commented 1 month ago

ArchLinux x86_64 on a dell XPS

satabol commented 1 month ago

Hi @neurodiverseEsoteric.

I have no ArchLinux now but can you do some actions to get more info:

  1. Open Scripting TAB in Blender: image
  2. Execute next commands: 2.1. from sverchok_open3d.dependencies import open3d as o3d 2.2. dir(o3d)

and put here a screenshot of a result?

neurodiverseEsoteric commented 1 month ago

Sorry, but it seems the error was with the specific version of blender I downloaded. I'm able to install open3d and get the same output as you have in your screenshots for both stable builds of Blender versions 3 and 4. If I come across it again with another build; I'll let you know. Thanks anyway...