Blender 3 and UE to Rigify Plugin Crash

Hey all;

When I try to load the UE to Rigify Plugin ue2rigify_1.5.8.zip I get the following error message.
Anyone have any ideas on how to fix this or should I switch back to 2.9.

Thanks so much for any time and help

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](https://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](https://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](https://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

3 Likes

Yep I have the same problem as well. I updated to 3.0 and I cannot add UE4 to Rigify because I get the same “TypeError: user_resource() takes 1 positional argument but 2 were given”.

I can add the exporter plugin and it works fine but not UE4 to rigify.

Same here… I keep getting the same error in Blender 3.0

Same here…

me too any fix yet?

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 lennysunrealx added the bug label 23 days ago

@disimulated

disimulated commented 23 days ago

Same issue, same traceback. Blender 3.0.0 on Windows 10.

@saravlink

saravlink commented 22 days ago

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

@PerfectZER0

PerfectZER0 commented 22 days ago

THANKS! Have a default templates site I can look at?

@wiiLad

wiiLad commented 19 days ago

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!

@hardlif

hardlif commented 16 days ago

我通过更改文件函数\templates.py 中的第27行从插件= bpy.utils.user_resource(‘SCRIPTS’,‘addons’)到插件= bpy.utils.user_resource(‘SCRIPTS’,path=‘addons’,create=False)来修复同样的问题。

此错误已修复

so excelent!thank you

@Goury

Goury commented 15 days ago

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

@wiiLad

wiiLad commented 14 days ago

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.

@kreempuff

kreempuff commented 13 days ago

This worked for me too!! :partying_face:

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

@soroushabt

soroushabt commented 9 days ago

tnx a lot

@ozworkz

ozworkz commented 9 days ago

tnx!!

@WZ-123

WZ-123 commented 3 days ago

After change code and restart blender3.0,its working

@lennysunrealx lennysunrealx closed this 3 days ago

@lennysunrealx

Author

lennysunrealx commented 3 days ago

Many many thanks so very much!

@kreempuff

kreempuff commented 3 days ago

Should someone open a PR for this change?

Short and skinny of what happened over on git for a solution

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!

There is an updated version now in the Git repo 1.5.9

How do you change that line? I’ve been looking forever to find a way to get this add-on to work without getting an error. Please I need help.