Page MenuHome

Rigify issue in blender 3.0
Closed, ResolvedPublic

Description

System Information
Operating system:Windows 11
Graphics card:Nvidia GTX 1660 Spuer

Blender Version
Broken: 3.10
Worked: 3.10

Short description of error
Rigify is not getting activated in the addon menu. While activating error comes on the screen

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

Below is the error message :


Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\metarig_menu.py", line 228, in get_external_metarigs
  get_metarigs(metarigs['external'], base_dir, base_path)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\metarig_menu.py", line 70, in get_metarigs
  get_metarigs(metarigs[f], base_dir, base_path, path=[*path, f], nested=True)  # "" adds a final slash
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\metarig_menu.py", line 74, in get_metarigs
  module = get_resource('.'.join([*base_path, *path, f]))
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\utils\rig.py", line 128, in get_resource
  module = importlib.import_module(resource_name)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\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 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
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 "C:\Users\unnic\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\rigify\CloudRig_master\__init__.py", line 3, in <module>
  from . import actions
File "C:\Users\unnic\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\rigify\CloudRig_master\actions.py", line 4, in <module>
  from .utils.ui import is_cloud_metarig
File "C:\Users\unnic\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\rigify\CloudRig_master\utils\ui.py", line 3, in <module>
  from ..cloudrig import draw_layers_ui
File "C:\Users\unnic\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\rigify\CloudRig_master\cloudrig.py", line 20, in <module>
  from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_quote_path, rna_idprop_ui_prop_update

ImportError: cannot import name 'rna_idprop_ui_prop_get' from 'rna_prop_ui' (C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\rna_prop_ui.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\addon_utils.py", line 387, in enable
  mod.register()
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\__init__.py", line 588, in register
  bpy.context.preferences.addons[__package__].preferences.update_external_rigs()
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\__init__.py", line 227, in update_external_rigs
  metarig_menu.get_external_metarigs(set_list)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\rigify\metarig_menu.py", line 230, in get_external_metarigs
  print("Rigify Error: Could not load feature set '%s' metarigs: exception occurred.\n" % (feature_set))

NameError: name 'feature_set' is not defined****

Event Timeline

Hi, thanks for the report. Can not reproduce here on 3.1 release.
Issue appears to be related to CloudRig package which is also reported at: https://gitlab.com/blender/CloudRig/-/issues/50

Hi,

But Cloud rig is added subsequent to activation of rigify,right?
I removed all the earlier versions of blender and re installed the 3.1 version. Still the problem not solved.

What should i do?

Bests,

Sunil

Demeter Dzadik (Mets) changed the task status from Needs Triage to Needs Information from User.Mar 14 2022, 5:02 PM

Rigify addons are installed outside of the addons folder, in scripts/rigify. You should be able to remove CloudRig through the Rigify add-on UI though. It looks like your CloudRig version isn't playing nicely with your Blender version, it might be too old or too new. Either way, deleting it should fix it. Let me know if that works.

Hello,

I deleted the Cludrig from my computer, tried to activate again. but the result is same.
I checked the folder, the rigify is inside the addon folder in my case. Its scripts/addon/rigify

I could not find any cloud rig files in the scripts folder.

Thanks,

Sunil

Sunil raj P (Sunilraj_p) changed the task status from Needs Information from User to Needs Information from Developers.Mar 17 2022, 4:25 AM

Hello,

I have installed blender 3.0. The rigify is working on the same system. But 3.1 I am getting the same message as above.
I removed and reinstalled all components, still the result is same.

Regards,

Sunil

Demeter Dzadik (Mets) closed this task as Resolved.Mar 17 2022, 4:10 PM
Demeter Dzadik (Mets) claimed this task.

Yes, Rigify itself is installed under scripts/addons/rigify like other addons, however CloudRig isn't an addon, it's a Rigify feature set, so it will be installed under scripts/rigify/CloudRig.
That's NOT scripts/addons/rigify/CloudRig and neither is it scripts/addons/CloudRig.

As mentioned before, it is, OUTSIDE the addons folder:

Rigify addons are installed outside of the addons folder, in scripts/rigify.


(notice no "addons" in the breadcrumbs)

You should also be able to remove it through the UI, by going into Edit->Preferences->Addons->Rigify->CloudRig->Remove.

Sunil raj P (Sunilraj_p) changed the task status from Resolved to Archived.Mar 18 2022, 6:54 AM

Hello,

Sorrry to trouble again .scripts/rigify/CloudRig is not at all visible in my system.

I removed from the UI of the older version.3.0. it is working there. But not working in 3.1

Sunil

From your stack trace:
C:\Users\unnic\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\rigify\CloudRig_master\__init__.py
I guess the folder is called Cloudrig_master instead of CloudRig, but removing that should do the trick.

Sunil raj P (Sunilraj_p) changed the task status from Archived to Resolved.Mar 18 2022, 1:20 PM

Dear Mr.Demeter Dzadik,

Thank you very much!!
It is now working!!!

Regards,

Sunil

S

Dear @Demeter Dzadik (Mets) I have the same issue on my Mac and I can't even enable rigify again , I reinstall and reset factory but it didin't help me at all