不支持python3.8
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
[MCDR] [02:20:38] [TaskExecutor/INFO]: 正在重载插件 hooks@2.1.2
[MCDR] [02:20:38] [TaskExecutor/INFO]: 插件 hooks@2.1.2 已卸载
[MCDR] [02:20:38] [TaskExecutor/INFO]: 插件 hooks@2.1.2 已重载
[MCDR] [02:20:38] [TaskExecutor/ERROR]: Fail to load the entry point of hooks@2.1.2
Traceback (most recent call last):
File "/root/.pyenv/versions/3.8.10/lib/python3.8/site-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 88, in _on_ready
self._load_entry_instance()
File "/root/.pyenv/versions/3.8.10/lib/python3.8/site-packages/mcdreforged/plugin/type/regular_plugin.py", line 66, in _load_entry_instance
self.entry_module_instance = self._import_entrypoint_module()
File "/root/.pyenv/versions/3.8.10/lib/python3.8/site-packages/mcdreforged/plugin/type/multi_file_plugin.py", line 56, in _import_entrypoint_module
mod = importlib.import_module(self.get_metadata().entrypoint)
File "/root/.pyenv/versions/3.8.10/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "plugins/hooks-v2.1.2.mcdr/hooks/init.py", line 9, in
import hooks.config as cfg
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "plugins/hooks-v2.1.2.mcdr/hooks/config.py", line 15, in
class TempConfig:
File "plugins/hooks-v2.1.2.mcdr/hooks/config.py", line 40, in TempConfig
hooks: dict[str, List[str]]
TypeError: 'type' object is not subscriptable
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with plugins/hooks-v2.1.2.mcdr/hooks/config.py at line 40, where the Python 3.8 traceback reports the TypeError. Reproduce the plugin load under Python 3.8 and verify that hooks@2.1.2 loads without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100