Author Topic: Help!  (Read 4662 times)

Offline Chetan

  • VIP
  • Hero Member
  • **
  • Posts: 1035
  • Rank: Hoodsta
  • Score: 23203
  • No time for bullshits
Help!
« 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 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 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.
"The problem of most people is, they get confused between being beautiful and looking beautiful.

Offline Uzumaki

  • VIP
  • Sr. Member
  • **
  • Posts: 422
  • Rank: Foot Soldier
  • Score: 80499
  • The WEEB DUCK!
Re: Help!
« Reply #1 on: August 13, 2018, 05:21:35 am »
You could copy the error message in Google and search about it. I have done so much like that in Pawn and C++

Offline Chetan

  • VIP
  • Hero Member
  • **
  • Posts: 1035
  • Rank: Hoodsta
  • Score: 23203
  • No time for bullshits
Re: Help!
« Reply #2 on: August 13, 2018, 12:43:18 pm »
Here's the problem:

Quote
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
"The problem of most people is, they get confused between being beautiful and looking beautiful.

Offline Bully

  • VIP
  • Sr. Member
  • **
  • Posts: 487
  • Rank: Loc
  • Score: 38264
  • Angry and hungry
Re: Help!
« Reply #3 on: August 13, 2018, 01:44:03 pm »
Call for matt, he's the programmy nerd.

Offline Matt

  • Polski American
  • VIP
  • Sr. Member
  • **
  • Posts: 336
  • Rank: Transformer
  • Score: 1564
  • An IT enthusiast and gadget geek
    • MattMski
Re: Help!
« Reply #4 on: August 22, 2018, 07:13:29 am »
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

RD og, Ex Admin. Been playing PTP since 2011 (Tenshi's PTP, not Jonne's)