AnzhiZhang / MCDReforgedPlugins

MCDReforged Plugins
GNU General Public License v3.0
93 stars 56 forks source link

[MoreCommandNodes]: MoreCommandNodes 在 MCDR v2.13.0 中启动失败 #199

Closed HappyMC-Dev closed 2 months ago

HappyMC-Dev commented 2 months ago

Please go to discussions to ask for help!

需要帮助请前往 discussions

Description丨描述

MoreCommandNodes插件启动后会报错,似乎是因为MCDR最新版的更新重命名模块导致无法正常导入 MCDReforged v2.13.0 发布说明

Additional context丨附加信息|

日志

[MCDR] [17:59:11] [TaskExecutor/ERROR]: Fail to load the entry point of more_command_nodes@1.1.0
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 86, in _on_ready
    self._load_entry_instance()
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/regular_plugin.py", line 79, in _load_entry_instance
    self.entry_module_instance = self._import_entrypoint_module()
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 51, in _import_entrypoint_module
    mod = importlib.import_module(self.get_metadata().entrypoint)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/server/happymc/survival_new/plugins/more_command_nodes/more_command_nodes/__init__.py", line 6, in <module>
    from mcdreforged.command.builder import command_builder_util
ImportError: cannot import name 'command_builder_util' from 'mcdreforged.command.builder' (/usr/local/lib/python3.10/dist-packages/mcdreforged/command/builder/__init__.py)
[MCDR] [17:59:11] [TaskExecutor/ERROR]: Fail to load the entry point of bot@1.1.4
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 86, in _on_ready
    self._load_entry_instance()
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/regular_plugin.py", line 79, in _load_entry_instance
    self.entry_module_instance = self._import_entrypoint_module()
  File "/usr/local/lib/python3.10/dist-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 51, in _import_entrypoint_module
    mod = importlib.import_module(self.get_metadata().entrypoint)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/server/happymc/survival_new/plugins/bot/bot/__init__.py", line 1, in <module>
    from bot.plugin import Plugin
  File "/server/happymc/survival_new/plugins/bot/bot/plugin.py", line 6, in <module>
    from bot.command_handler import CommandHandler
  File "/server/happymc/survival_new/plugins/bot/bot/command_handler.py", line 9, in <module>
    from more_command_nodes import Position, Facing, EnumeratedText
  File "/server/happymc/survival_new/plugins/more_command_nodes/more_command_nodes/__init__.py", line 6, in <module>
    from mcdreforged.command.builder import command_builder_util
ImportError: cannot import name 'command_builder_util' from 'mcdreforged.command.builder' (/usr/local/lib/python3.10/dist-packages/mcdreforged/command/builder/__init__.py)