Skip to content

[Leveler] Bug report #219

@zarigata

Description

@zarigata

Describe the bug
i am unable to run leveler on my Red-Bot

To Reproduce
load the repo
install the cog
ask to load

Expected behavior
run?

Bot's logs
object NoneType can't be used in 'await' expression
[21:42:41] ERROR [red] Package loading failed
╭─────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮
│ /home/pi/venv/lib/python3.11/site-packages/redbot/core/core_commands.py:188 in _load │
│ ❱ 188 await bot.load_extension(spec) │
│ /home/pi/venv/lib/python3.11/site-packages/redbot/core/bot.py:1680 in load_extension │
│ ❱ 1680 lib = spec.loader.load_module() │
│ in _check_name_wrapper:605 │
│ in load_module:1120 │
│ in load_module:945 │
│ in _load_module_shim:290 │
│ in _load:721 │
│ in _load_unlocked:690 │
│ in exec_module:940 │
│ in _call_with_frames_removed:241 │
│ /home/pi/.local/share/Red-DiscordBot/data/rhbot/cogs/CogManager/cogs/leveler/init.py:4 in │
│ ❱ 4 from .leveler import Leveler │
│ /home/pi/.local/share/Red-DiscordBot/data/rhbot/cogs/CogManager/cogs/leveler/leveler.py:9 in │
│ ❱ 9 from .abc import CompositeMetaClass │
│ /home/pi/.local/share/Red-DiscordBot/data/rhbot/cogs/CogManager/cogs/leveler/abc.py:8 in │
│ ❱ 8 from motor.motor_asyncio import AsyncIOMotorClient, AsyncIOMotorDatabase │
│ /home/pi/.local/share/Red-DiscordBot/data/rhbot/cogs/Downloader/lib/motor/motor_asyncio.py:18 in │
│ ❱ 18 from .frameworks import asyncio as asyncio_framework │
│ /home/pi/.local/share/Red-DiscordBot/data/rhbot/cogs/Downloader/lib/motor/frameworks/asyncio/init.py:28 in │
│ ❱ 28 from asyncio import coroutine # For framework interface. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ImportError: cannot import name 'coroutine' from 'asyncio' (/usr/lib/python3.11/asyncio/init.py)

Red version
3.5.1

Additional context
seens to be hapenning in a lot of other cogs...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpls fix

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions