Here is a copy of the stream over on git
Not sure if others are getting this in Blender 3 so I thought to share.
In Blender 3
- Edit > Preferences > Add-ons
- Try to Enable ue2rigify_1.5.8.zip
- The following Error is reported and the plugin does not load
Traceback (most recent call last):
File “F:\Program Files (x86)\Steam\steamapps\common\Blender\3.0\scripts\modules\addon_utils.py”, line 351, in enable
mod = import(module_name)
File “C:\Users\lenny\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\ue2rigify_init_.py”, line 6, in
from . import properties, operators
File “C:\Users\lenny\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\ue2rigify\properties.py”, line 10, in
class UE2RigifyProperties(bpy.types.PropertyGroup):
File “C:\Users\lenny\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\ue2rigify\properties.py”, line 19, in UE2RigifyProperties
rig_templates_path = templates.get_rig_templates_path()
File “C:\Users\lenny\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\ue2rigify\functions\templates.py”, line 27, in get_rig_templates_path
addons = bpy.utils.user_resource(‘SCRIPTS’, ‘addons’)
TypeError: user_resource() takes 1 positional argument but 2 were given
lennysunrealx added the bug label 23 days ago
Same issue, same traceback. Blender 3.0.0 on Windows 10.
i had the same problem fixed it by changing line 27 in the file functions\templates.py
from
addons = bpy.utils.user_resource(‘SCRIPTS’, ‘addons’)
to
addons = bpy.utils.user_resource(‘SCRIPTS’, path=‘addons’, create=False)
this error is fixed
THANKS! Have a default templates site I can look at?
i had the same problem fixed it by changing line 27 in the file functions\templates.py from addons = bpy.utils.user_resource(‘SCRIPTS’, ‘addons’) to addons = bpy.utils.user_resource(‘SCRIPTS’, path=‘addons’, create=False)
this error is fixed
thank you so much! It worked!
我通过更改文件函数\templates.py 中的第27行从插件= bpy.utils.user_resource(‘SCRIPTS’,‘addons’)到插件= bpy.utils.user_resource(‘SCRIPTS’,path=‘addons’,create=False)来修复同样的问题。
此错误已修复
so excelent!thank you
i had the same problem fixed it by changing line 27 in the file functions\templates.py
There is no such file in the repo
i had the same problem fixed it by changing line 27 in the file functions\templates.py
There is no such file in the repo
no, not in the repo. when you download the zip and install the addon in blender, it creates a folder in blender’s app data, which is where this file is. The location on your computer should be:
C:\Users[USER]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\ue2rigify\functions\templates.py
or, if this is not the file location on your computer, the correct file location will be noted in the error message as posted above.
This worked for me too!!
i had the same problem fixed it by changing line 27 in the file functions\templates.py from addons = bpy.utils.user_resource(‘SCRIPTS’, ‘addons’) to addons = bpy.utils.user_resource(‘SCRIPTS’, path=‘addons’, create=False)
this error is fixed
tnx a lot
tnx!!
After change code and restart blender3.0,its working
lennysunrealx closed this 3 days ago
Author
Many many thanks so very much!
Should someone open a PR for this change?