Skip to content

Привет мне пишет ошибку #2

@Diseerr

Description

@Diseerr

DeprecationWarning: sync_commands_debug is deprecated and will be removed in a future version. Use command_sync_flags with an CommandSyncFlags instance as a replacement.
client = commands.Bot(
Traceback (most recent call last):
File "C:\Users\corny\AppData\Roaming\Python\Python310\site-packages\disnake\ext\commands\common_bot_base.py", line 452, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "c:\Users\corny\OneDrive\Desktop\Moderation\client\commands\moderation\action.py", line 17, in
from motor.motor_asyncio import AsyncIOMotorClient as MotorClient
ModuleNotFoundError: No module named 'motor'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "c:\Users\corny\OneDrive\Desktop\Moderation\bot.py", line 46, in
client.load_extension(f'client.commands.moderation.{filename[:-3]}')
File "C:\Users\corny\AppData\Roaming\Python\Python310\site-packages\disnake\ext\commands\common_bot_base.py", line 523, in load_extension
self._load_from_module_spec(spec, name)
File "C:\Users\corny\AppData\Roaming\Python\Python310\site-packages\disnake\ext\commands\common_bot_base.py", line 455, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
disnake.ext.commands.errors.ExtensionFailed: Extension 'client.commands.moderation.action' raised an error: ModuleNotFoundError: No module named 'motor'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions