Hey ich versuche momentan einen Discord bot zu schreiben mir irwie funktioniert itwas nicht mit dem importieren kann mir jemand vll anhand der Fehler sagen woran es liegt? Danke im Voraus und noch einen schönen Tag
Traceback (most recent call last):
File "C:/Users/capwa/Desktop/Bots/testbot2/main.py", line 3, in <module>
import discord
File "D:\Python\lib\site-packages\discord__init__.py", line 20, in <module>
from .client import Client, AppInfo, ChannelPermissions
File "D:\Python\lib\site-packages\discord\client.py", line 38, in <module>
from .state import ConnectionState
File "D:\Python\lib\site-packages\discord\state.py", line 36, in <module>
from . import utils, compat
File "D:\Python\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax
Process finished with exit code 1
Python - Discord
- __blackjack__
- User
- Beiträge: 13115
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
@gamenTV: Welche Python-Version und wo kommt das `discord`-Package her?
„All religions are the same: religion is basically guilt, with different holidays.” — Cathy Ladman
Ich benutze die neuste version von Python und das discord-Package öhh also jemand meinte es reicht wenn ich in cmd in den Ordner gehe und dann den command "pip install discord.py" ausführe__blackjack__ hat geschrieben: ↑Montag 2. Juli 2018, 14:27 @gamenTV: Welche Python-Version und wo kommt das `discord`-Package her?
- __blackjack__
- User
- Beiträge: 13115
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
Dann ist Dein Python zu neu: https://github.com/Rapptz/discord.py/issues/1249
``async`` ist ab Python 3.7 ein Schlüsselwort und kann deshalb nicht mehr als Name verwendet werden.
``async`` ist ab Python 3.7 ein Schlüsselwort und kann deshalb nicht mehr als Name verwendet werden.
„All religions are the same: religion is basically guilt, with different holidays.” — Cathy Ladman