Skip to content

Something wrong when enabling the addon by clicking on the checkbox #21

Description

When I try to click on the checkbox, there is an error: TypeError: user_resource() takes 1 positional argument but 2 were given

Traceback (most recent call last):
File "c:\Users\ASUS\OneDrive - 中山大学\桌面\blender-3.3.1-windows-x64\3.3\scripts\modules\addon_utils.py", line 333, in enable
mod = import(module_name)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master_init_.py", line 45, in
modules = developer_utils.setup_addon_modules(path, name, "bpy" in locals())
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\developer_utils.py", line 39, in setup_addon_modules
modules = import_submodules(names)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\developer_utils.py", line 30, in import_submodules
modules.append(importlib.import_module("." + name, package_name))
File "c:\Users\ASUS\OneDrive - 中山大学\桌面\blender-3.3.1-windows-x64\3.3\python\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\addon_development\addon_selection.py", line 5, in
from . utils import (get_directory_names,
File "C:\Users\ASUS\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\code_autocomplete-master\addon_development\utils.py", line 4, in
addons_path = bpy.utils.user_resource("SCRIPTS", "addons")
TypeError: user_resource() takes 1 positional argument but 2 were given

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions