Blender Cloud Addon not working on 4.0.0 Beta #1

Closed
opened 2023-09-29 10:41:02 +02:00 by Thibaut-Vuillin · 1 comment

Hi Sybren, I found this issue with the addon.
Hope it can be fix in the future.

Cheers.

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.42

Blender Version
Broken: version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-09-28 00:03, hash: 751c9ef620a0
Worked: (newest version of Blender that worked as expected)

Short description of error
The blender cloud is not working on the beta version of blender 4.0.0

Exact steps for others to reproduce the error
1 - Connect with the System: Blender ID authentication addon
2 - Install the System: Blender Cloud addon
3 - Activate it and you will have this error :

Traceback (most recent call last):
  File "P:\blender_addons\addons\blender_cloud\__init__.py", line 69, in reload_mod
    old_module = sys.modules[modname]
KeyError: 'blender_cloud.texture_browser'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\blender-4.0.0-beta+v40.751c9ef620a0-windows.amd64-release\4.0\scripts\modules\addon_utils.py", line 401, in enable
    mod.register()
  File "P:\blender_addons\addons\blender_cloud\__init__.py", line 87, in register
    texture_browser = reload_mod("texture_browser")
  File "P:\blender_addons\addons\blender_cloud\__init__.py", line 72, in reload_mod
    new_module = importlib.import_module(modname)
  File "C:\Program Files\Blender Foundation\blender-4.0.0-beta+v40.751c9ef620a0-windows.amd64-release\4.0\python\lib\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 "P:\blender_addons\addons\blender_cloud\texture_browser\__init__.py", line 30, in <module>
    from . import (
  File "P:\blender_addons\addons\blender_cloud\texture_browser\menu_item.py", line 13, in <module>
    from . import draw
  File "P:\blender_addons\addons\blender_cloud\texture_browser\draw.py", line 18, in <module>
    shader = gpu.shader.from_builtin("2D_UNIFORM_COLOR")
ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR'
Hi Sybren, I found this issue with the addon. Hope it can be fix in the future. Cheers. **System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.42 **Blender Version** Broken: version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-09-28 00:03, hash: `751c9ef620a0` Worked: (newest version of Blender that worked as expected) **Short description of error** The blender cloud is not working on the beta version of blender 4.0.0 **Exact steps for others to reproduce the error** 1 - Connect with the `System: Blender ID authentication` addon 2 - Install the `System: Blender Cloud` addon 3 - Activate it and you will have this error : ``` Traceback (most recent call last): File "P:\blender_addons\addons\blender_cloud\__init__.py", line 69, in reload_mod old_module = sys.modules[modname] KeyError: 'blender_cloud.texture_browser' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\blender-4.0.0-beta+v40.751c9ef620a0-windows.amd64-release\4.0\scripts\modules\addon_utils.py", line 401, in enable mod.register() File "P:\blender_addons\addons\blender_cloud\__init__.py", line 87, in register texture_browser = reload_mod("texture_browser") File "P:\blender_addons\addons\blender_cloud\__init__.py", line 72, in reload_mod new_module = importlib.import_module(modname) File "C:\Program Files\Blender Foundation\blender-4.0.0-beta+v40.751c9ef620a0-windows.amd64-release\4.0\python\lib\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 "P:\blender_addons\addons\blender_cloud\texture_browser\__init__.py", line 30, in <module> from . import ( File "P:\blender_addons\addons\blender_cloud\texture_browser\menu_item.py", line 13, in <module> from . import draw File "P:\blender_addons\addons\blender_cloud\texture_browser\draw.py", line 18, in <module> shader = gpu.shader.from_builtin("2D_UNIFORM_COLOR") ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR' ```

Unfortunately, a fix is that simple. There are many calls to the deprecated bgl module. Pretty much all of the drawing code in that add-on would have to be revised to be compatible with Blender 4.0.

This is unfortunately not something that can be done on short notice. For now, please consider the Blender Cloud add-on only compatible with Blender 3.6 and older.

Unfortunately, a fix is that simple. There are many calls to the deprecated `bgl` module. Pretty much all of the drawing code in that add-on would have to be revised to be compatible with Blender 4.0. This is unfortunately not something that can be done on short notice. For now, please consider the Blender Cloud add-on only compatible with Blender 3.6 and older.
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/blender-cloud-addon#1
No description provided.