Plan B
Off Topic => Off Topic => Topic started by: Chetan on August 12, 2018, 04:42:31 pm
-
Hello people,
If you are reading this and familiar with Python then I think you can help me with some errors I am getting. I am new to Python and I am facing some problems so I need some help.
I use the official Python (https://www.python.org/getit/) programme and I was trying to make a bot for Discord. I started to script. I first installed all the libraries using Command Prompt with the command 'pip install'. When I use 'import discord' commands and start with getting my bot up; its shows me errors.
When I copy-paste the same command on Repl.it (https://repl.it) it shows no error and shows the bot online on discord.
So whats the problem with the Python program?
Thanks for taking your time to read this and also the ones who may help me with this.
-
You could copy the error message in Google and search about it. I have done so much like that in Pawn and C++
-
Here's the problem:
Traceback (most recent call last):
File "C:\Users\Chetan\Desktop\Server bot.py", line 1, in <module>
import discord
File "C:\Users\Chetan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\__init__.py", line 20, in <module>
from .client import Client, AppInfo, ChannelPermissions
File "C:\Users\Chetan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 38, in <module>
from .state import ConnectionState
File "C:\Users\Chetan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\state.py", line 36, in <module>
from . import utils, compat
File "C:\Users\Chetan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax
-
Call for matt, he's the programmy nerd.
-
Call for matt, he's the programmy nerd.
https://github.com/Rapptz/discord.py/issues/1249
Don't use Python 3.7, use 3.4-3.6