nortikin / sverchok

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

Installation in MacOS + Blender 4.0.2 crashes #5089

Open arpit15 opened 5 months ago

arpit15 commented 5 months ago

Problem statement

Installing sverchok addon in blender leads to error message.

Steps to reproduce

  1. Open Blender.
  2. Perform Addon installation Edit->Preferences->Add-ons->Install
  3. Switch the addon on by selecting it among the list of installed addons

Expected result

Addon is showing in blender

Actual result

WARN (bgl): source/blender/python/generic/bgl.cc:2678 BPyInit_bgl: 'bgl' imported without an OpenGL backend. Please update your add-ons to use the 'gpu' module.
Traceback (most recent call last):
  File "/Applications/Blender4.app/Contents/Resources/4.0/scripts/modules/addon_utils.py", line 364, in enable
    mod = importlib.import_module(module_name)
  File "/Applications/Blender4.app/Contents/Resources/4.0/python/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/__init__.py", line 113, in <module>
    imported_modules, node_modules, core = import_sverchok()
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/__init__.py", line 100, in import_sverchok
    imported_modules_ = core.init_architecture()
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/core/__init__.py", line 128, in init_architecture
    import_all_modules(imported_modules, mods_bases)
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/core/__init__.py", line 100, in import_all_modules
    import_modules(mods, base, imported_modules)
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/core/__init__.py", line 63, in import_modules
    im = importlib.import_module('.{}'.format(m), base)
  File "/Applications/Blender4.app/Contents/Resources/4.0/python/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/virtualworld/Library/Application Support/Blender/4.0/scripts/addons/sverchok-1_2_0/core/sockets.py", line 748, in <module>
    class SvVerticesSocketInterface(bpy.types.NodeSocketInterface):
AttributeError: 'module' object has no attribute 'NodeSocketInterface'

Sverchok version

Version 1.2.0 Downloaded .zip from GitHub Testing on MacOS - 14.2.1 Blender - 4.0.2

Andrej730 commented 5 months ago

@arpit15

You can try version from the repo https://github.com/nortikin/sverchok, not from the releases. Not sure how well sverchok is supported on Blender 4.0+ though.