#Problems Cogs

1 messages · Page 1 of 1 (latest)

jade epoch
#
 RuntimeWarning: coroutine 'load_cogs' was never awaited
  load_cogs()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

A few days ago I updated the pycord version and the modules have stopped working.

This is how I have the modules:

async def load_cogs():
    await bot.load_extension("commands.moderator.ban")


config_ = get_file_config()


async def main():
    await load_cogs()
    await bot.start(config_['DISCORD-BOT']['TOKEN_BOT'])


asyncio.run(main())
noble hedge
#

load_extention doesn't return a coroutine in Pycord

jade epoch
#

is it possible that pycharm has installed discord.py on me?

noble hedge
#

Show pip list

jade epoch
clever cargo
#

discord....

noble hedge
#

Remove discord

#

..

clever cargo
#

also remove pycord

noble hedge
#

Also wrong Pycord added

#

Ye

clever cargo
#

remove the async and await stuff

jade epoch
clever cargo
#

?tag install

hazy shoalBOT
#
  1. Uninstall discord.py or any other forks of discord.py you might have with the namespace discord.
    python -m pip uninstall discord.py discord -y

2a. Install py-cord
python -m pip install py-cord

2b. Update py-cord
python pip install -U py-cord

Installing other builds:
Note: You need to have git installed. Use ?tag git to find out how to install git.

Updating the module to master branch (unstable):
pip install -U git+https://github.com/Pycord-Development/pycord

jade epoch
#

uninstalled by both of us?

naive sedge
#

pycharm uses venv

#

terminal changes global

naive sedge
jade epoch
#

I am taking the main example from the examples in the documentation.

jade epoch
clever cargo
jade epoch
# clever cargo show the pip list
Package            Version
------------------ -----------
aiohttp            3.8.3
aiosignal          1.3.1
arrow              1.2.3
asttokens          2.0.8
async-timeout      4.0.2
atomicwrites       1.4.1
attrs              22.1.0
backcall           0.2.0
Brotli             1.0.9
certifi            2022.9.24
charset-normalizer 2.1.1
colorama           0.4.5
confetti           2.5.3
decorator          5.1.1
dessert            1.4.4
dnspython          2.2.1
emport             1.3.1
executing          1.1.1
ffmpeg-python      0.2.0
frozenlist         1.3.3
future             0.18.2
gossip             2.4.0
greenlet           1.1.3.post0
idna               3.4
imageio-ffmpeg     0.4.7
ipython            8.5.0
jedi               0.18.1
Jinja2             3.1.2
libtmux            0.15.8
Logbook            1.5.3
MarkupSafe         2.1.1
multidict          6.0.2
munch              2.5.0
numpy              1.23.5
ordered-set        4.1.0
pandas             1.5.1
parso              0.8.3
pickleshare        0.7.5
pip                21.3.1
prompt-toolkit     3.0.31
pure-eval          0.2.2
py                 1.11.0
py-cord            2.3.1
Pygments           2.13.0
pymongo            4.3.3
pyparsing          3.0.9
python-dateutil    2.8.2
pytz               2022.6
raven              6.10.0
sentinels          1.0.0
setuptools         60.2.0
six                1.16.0
SQLAlchemy         1.4.41
stack-data         0.5.1
traitlets          5.4.0
typing_extensions  4.4.0
urllib3            1.26.12
vintage            0.4.1
wcwidth            0.2.5
wheel              0.37.1
yarl               1.8.1
clever cargo
#

mhm

jade epoch
#

I should delete the ones I don't spend as far as I can see hahahaha

noble hedge
#

You should use venv

#

Or condas

noble hedge
#

Make sure to use the correct python environment

noble hedge
jade epoch
#

pepeLove thx

noble hedge
hazy shoalBOT
#

Done with your help thread?

Please close your own help thread using </close:882631512829329448> (/close) with @split otter.