Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: user_resource() takes 1 positional argument but 2 were given #188

Open
gerroon opened this issue Mar 23, 2024 · 0 comments
Open

Comments

@gerroon
Copy link

gerroon commented Mar 23, 2024

Hi

I am getting this error on Windows 11, Blender 4.2, 0.2.9


Export assets: [--------------------] 0.0%
FBX export starting... 'P:\\ExportedFbx\\StaticMesh\\Export\\SM_Suzanne.fbx'
export finished in 0.0000 sec.
Export assets: [####################] 100.0% DONE
Export assets: [####################] 100.0% DONE IN 0.01s
File type not found in this assets: ABC
Traceback (most recent call last):
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\blender-for-unrealengine\bfu_ui.py", line 2283, in execute
    bfu_write_text.WriteAllTextFiles()
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\blender-for-unrealengine\bfu_write_text.py", line 504, in WriteAllTextFiles
    source = os.path.join(bpy.utils.user_resource('SCRIPTS', os.path.join("addons", "blender-for-unrealengine", "import")), "asset_import_script.py")
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: user_resource() takes 1 positional argument but 2 were given
Error: Python: Traceback (most recent call last):
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\blender-for-unrealengine\bfu_ui.py", line 2283, in execute
    bfu_write_text.WriteAllTextFiles()
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\blender-for-unrealengine\bfu_write_text.py", line 504, in WriteAllTextFiles
    source = os.path.join(bpy.utils.user_resource('SCRIPTS', os.path.join("addons", "blender-for-unrealengine", "import")), "asset_import_script.py")
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: user_resource() takes 1 positional argument but 2 were given


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant