Error While Trying To Run A Discord Bot (python)
Solution 1:
Found this comment to this issue on github.
async and await are only reserved in 3.7 onwards. Renaming library files or folders is not a good idea as it both creates inconsistency in your install and may confuse pip or setuptools if you decide to upgrade those libraries.
It also doesn't help for this issue, where asyncio.async is used. Modifying asyncio in this way will damage your install and prevent discord.py, or really any async library, from operating correctly.
Use an older version or use the rewrite branch to fix these issues.
I don't know what python version you're using for sure but I can assume you're using Python 3.7
and Dicsord.py master/async branch
. Either use Python 3.6
or below, or download the re-write.
If I remember correctly the pip install
is:
python3 -m pip install -U https://github.com/Rapptz/discord.py/archive/master.zip#egg=discord.py[voice]
You can also get quicker more relevant help on the discord.py server
Post a Comment for "Error While Trying To Run A Discord Bot (python)"