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

Can't enable the tool in Blender 4.1 #153

Open
JolinVTF opened this issue May 9, 2024 · 2 comments
Open

Can't enable the tool in Blender 4.1 #153

JolinVTF opened this issue May 9, 2024 · 2 comments

Comments

@JolinVTF
Copy link

JolinVTF commented May 9, 2024

Blender: 4.1
mmd_tools: v4.1.0
OS: Window 11

First time using this tool. I can't enable the mmd tool in blender.
1

If I try to enable it, it will pop up this the preference window. Not sure what happen T^T
2

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 353, in enable
importlib.reload(mod)
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\importlib_init_.py", line 169, in reload
_bootstrap._exec(spec, module)
File "", line 621, in exec
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools_init
.py", line 22, in
auto_load.init()
File "C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\auto_load.py", line 25, in init
modules = get_all_submodules(Path(file).parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\auto_load.py", line 53, in get_all_submodules
return list(iter_submodules(directory, directory.name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\auto_load.py", line 57, in iter_submodules
yield importlib.import_module("." + name, package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\core\translations.py", line 10, in
from mmd_tools.core.model import FnModel, Model
ImportError: cannot import name 'FnModel' from 'mmd_tools.core.model' (C:\Users\favou\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\core\model.py)

@lsitvoid
Copy link

我不知道,但是我在使用3.0.0版本时也遇到此问题。
Traceback (most recent call last):
File "G:\blender-3.0.0-windows-x64\blender-3.0.0-windows-x64\3.0\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\shengming\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\mmd_uuunyaa_tools_init_.py", line 60, in
auto_load.init()
File "C:\Users\shengming\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\mmd_uuunyaa_tools\auto_load.py", line 25, in init
modules = get_all_submodules(Path(file).parent)
File "C:\Users\shengming\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\mmd_uuunyaa_tools\auto_load.py", line 53, in get_all_submodules
return list(iter_submodules(directory, directory.name))
File "C:\Users\shengming\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\mmd_uuunyaa_tools\auto_load.py", line 57, in iter_submodules
yield importlib.import_module("." + name, package_name)
File "G:\blender-3.0.0-windows-x64\blender-3.0.0-windows-x64\3.0\python\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\shengming\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\mmd_uuunyaa_tools\asset_search\cache.py", line 362
match content.state:
^
SyntaxError: invalid syntax

@Takuyax
Copy link

Takuyax commented May 31, 2024

I can confirm this problem on Kubuntu 23.10 (yes, I need to upgrade), using Blender 4.1.1 and the latest mmd_tools 4.1 release.

Traceback (most recent call last):
File "/home/user/blender-4.1.1-linux-x64/4.1/scripts/modules/addon_utils.py", line 376, in enable
mod = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/blender-4.1.1-linux-x64/4.1/python/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/user/.config/blender/4.1/scripts/addons/mmd_tools/init.py", line 44, in
auto_load.init()
File "/home/user/.config/blender/4.1/scripts/addons/mmd_tools/auto_load.py", line 25, in init
modules = get_all_submodules(Path(file).parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.config/blender/4.1/scripts/addons/mmd_tools/auto_load.py", line 53, in get_all_submodules
return list(iter_submodules(directory, directory.name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.config/blender/4.1/scripts/addons/mmd_tools/auto_load.py", line 57, in iter_submodules
yield importlib.import_module("." + name, package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/blender-4.1.1-linux-x64/4.1/python/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/user/.config/blender/4.1/scripts/addons/mmd_tools/core/translations.py", line 13, in
from mmd_tools.core.model import FnModel, Model
ImportError: cannot import name 'FnModel' from 'mmd_tools.core.model' (/home/user/.config/blender/4.1/scripts/addons/mmd_tools/core/model.py)

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

3 participants