Cannot install this on fresh blender 4.1.1 #148

Closed
opened 2024-06-09 14:30:02 +02:00 by MDDM · 3 comments

System Information
Operating system: Windows 10

Blender Version: 4.1.1
CloudRig Version: Zipped link here

Short description of error
see image attached

Exact steps for others to reproduce the error
Based on the default human metarig or a simplified attached .blend file.
just try to install this

**System Information** Operating system: Windows 10 Blender Version: 4.1.1 CloudRig Version: Zipped link here **Short description of error** see image attached **Exact steps for others to reproduce the error** Based on the default human metarig or a simplified attached .blend file. just try to install this

I'm running into this as well. Here's the text of the error:

 2024-06-10 17:10:03 in /c/Program Files/Blender Foundation/Blender 4.1
○ → ./blender
Read prefs: "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend"
Reloading external rigs...
Reloading external metarigs...
Exception in module register(): C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 444, in enable
    mod.register()
  File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py", line 111, in register
    register_unregister_modules(modules, True)
  File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py", line 84, in register_unregister_modules
    m.register()
  File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\icons\__init__.py", line 28, in register
    pcoll = bpy.utils.previews.new()
            ^^^^^^^^^^^^^^^^^^
AttributeError: module 'bpy.utils' has no attribute 'previews'

Does it need to explicitly import bpy.utils.previews?

I'm running into this as well. Here's the text of the error: ``` 2024-06-10 17:10:03 in /c/Program Files/Blender Foundation/Blender 4.1 ○ → ./blender Read prefs: "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend" Reloading external rigs... Reloading external metarigs... Exception in module register(): C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 444, in enable mod.register() File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py", line 111, in register register_unregister_modules(modules, True) File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\__init__.py", line 84, in register_unregister_modules m.register() File "C:\Users\Isaiah\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\cloudrig\icons\__init__.py", line 28, in register pcoll = bpy.utils.previews.new() ^^^^^^^^^^^^^^^^^^ AttributeError: module 'bpy.utils' has no attribute 'previews' ``` Does it need to explicitly `import bpy.utils.previews`?

I confirmed that import bpy.utils.previews fixes this issue and allows the add-on to be enabled.
(This was suggested in a StackOverflow answer from 2018.)

I confirmed that `import bpy.utils.previews` fixes this issue and allows the add-on to be enabled. (This was suggested in [a StackOverflow answer from 2018](https://blender.stackexchange.com/a/97990/142235).)

So, I was not getting this error, and I'm running Python 3.10.11. I assume some earlier version is having this issue. Added the fix anyways, since it seems harmless. Kinda weird tho. Thanks for the reports guys. LMK if it's not fixed.

So, I was not getting this error, and I'm running Python 3.10.11. I assume some earlier version is having this issue. Added the fix anyways, since it seems harmless. Kinda weird tho. Thanks for the reports guys. LMK if it's not fixed.
Sign in to join this conversation.
No description provided.