24-02-14 15:45:44,723 nonebot] ERROR: Failed to import and load "hoshino.modules.headimg_generator.utils", error: issubclass() arg 1 must be a class
[2024-02-14 15:45:44,723 nonebot] ERROR: issubclass() arg 1 must be a class
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 419, in _load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\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 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\Administrator\Desktop\HoshinoBot-master - 1\HoshinoBot-master\hoshino\modules\headimg_generator__init__.py", line 17, in
from meme_generator.download import check_resources
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator__init__.py", line 4, in
from meme_generator.manager import add_meme as add_meme
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\manager.py", line 10, in
from .meme import Meme, MemeArgsType, MemeFunction, MemeParamsType
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\meme.py", line 37, in
class UserInfo(BaseModel):
File "pydantic\main.py", line 198, in pydantic.main.ModelMetaclass.new
File "pydantic\fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic\fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic\fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic\fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\typing.py", line 774, in subclasscheck
return issubclass(cls, self.origin__)
TypeError: issubclass() arg 1 must be a class
24-02-14 15:45:44,723 nonebot] ERROR: Failed to import and load "hoshino.modules.headimg_generator.utils", error: issubclass() arg 1 must be a class [2024-02-14 15:45:44,723 nonebot] ERROR: issubclass() arg 1 must be a class Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 419, in _load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\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 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\Administrator\Desktop\HoshinoBot-master - 1\HoshinoBot-master\hoshino\modules\headimg_generator__init__.py", line 17, in
from meme_generator.download import check_resources
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator__init__.py", line 4, in
from meme_generator.manager import add_meme as add_meme
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\manager.py", line 10, in
from .meme import Meme, MemeArgsType, MemeFunction, MemeParamsType
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\meme.py", line 37, in
class UserInfo(BaseModel):
File "pydantic\main.py", line 198, in pydantic.main.ModelMetaclass. new
File "pydantic\fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic\fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic\fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic\fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\typing.py", line 774, in subclasscheck
return issubclass(cls, self.origin__)
TypeError: issubclass() arg 1 must be a class