chingkingm / Hoshinobot-plugin-petpet

HoshinoBot module for making fun pictures
MIT License
20 stars 9 forks source link

py3.8 安装依赖后提示 No module named #23

Closed thankU-ubi closed 2 years ago

thankU-ubi commented 2 years ago

[2022-05-17 19:02:59,764 nonebot] ERROR: Failed to import "hoshino.modules.petpet.data_source", error: No module named 'typing_extensions' [2022-05-17 19:02:59,765 nonebot] ERROR: No module named 'typing_extensions' Traceback (most recent call last): File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin module = importlib.import_module(module_path) File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\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 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet__init.py", line 10, in from .data_source import commands, make_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in from .utils import to_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in from typing_extensions import Literal ModuleNotFoundError: No module named 'typing_extensions' [2022-05-17 19:02:59,770 nonebot] INFO: Succeeded to import "hoshino.modules.petpet.download" [2022-05-17 19:02:59,775 nonebot] ERROR: Failed to import "hoshino.modules.petpet.functions", error: No module named 'typing_extensions' [2022-05-17 19:02:59,777 nonebot] ERROR: No module named 'typing_extensions' Traceback (most recent call last): File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin module = importlib.import_module(module_path) File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\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 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\init__.py", line 10, in from .data_source import commands, make_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in from .utils import to_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in from typing_extensions import Literal ModuleNotFoundError: No module named 'typing_extensions' [2022-05-17 19:02:59,785 nonebot] ERROR: Failed to import "hoshino.modules.petpet.models", error: No module named 'typing_extensions' [2022-05-17 19:02:59,785 nonebot] ERROR: No module named 'typing_extensions' Traceback (most recent call last): File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin module = importlib.import_module(module_path) File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\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 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\init__.py", line 10, in from .data_source import commands, make_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in from .utils import to_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in from typing_extensions import Literal ModuleNotFoundError: No module named 'typing_extensions' [2022-05-17 19:02:59,796 nonebot] ERROR: Failed to import "hoshino.modules.petpet.utils", error: No module named 'typing_extensions' [2022-05-17 19:02:59,797 nonebot] ERROR: No module named 'typing_extensions' Traceback (most recent call last): File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin module = importlib.import_module(module_path) File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\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 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\init__.py", line 10, in from .data_source import commands, make_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in from .utils import to_image File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in from typing_extensions import Literal ModuleNotFoundError: No module named 'typing_extensions'

chingkingm commented 2 years ago

typing_extensions 也需要装,requirements漏掉了,抱歉。

pip install typing_extensions