Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid syntax #1702

Closed
ExpertsGaming opened this issue Nov 1, 2018 · 4 comments
Closed

Invalid syntax #1702

ExpertsGaming opened this issue Nov 1, 2018 · 4 comments
Labels
duplicate This is a duplicate of another issue or PR.

Comments

@ExpertsGaming
Copy link

PS C:\Users\MrScamander1> & python c:/Users/MrScamander1/Desktop/bot.py Traceback (most recent call last): File "c:/Users/MrScamander1/Desktop/bot.py", line 1, in <module> import discord File "C:\Users\MrScamander1\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\__init__.py", line 20, in <module> from .client import Client, AppInfo, ChannelPermissions File "C:\Users\MrScamander1\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 38, in <module> from .state import ConnectionState File "C:\Users\MrScamander1\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\state.py", line 36, in <module> from . import utils, compat File "C:\Users\MrScamander1\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\compat.py", line 32 create_task = asyncio.async ^ SyntaxError: invalid syntax

@LucasCoderT
Copy link
Contributor

Duplicate of #1648, #1637, #1610, #1594, #1554, #1550, #1478, #1461, #1434, #1421, #1396, #1393, #1387, #1249, #1166,#1401 and #1690

@Skippern
Copy link

Skippern commented Nov 4, 2018

Same with this?

Traceback (most recent call last):
  File "/home/skippern/.local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 848, in process_commands
    yield from command.invoke(ctx)
  File "/home/skippern/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 362, in invoke
    yield from self.prepare(ctx)
  File "/home/skippern/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 340, in prepare
    yield from self._parse_arguments(ctx)
  File "/home/skippern/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 299, in _parse_arguments
    transformed = yield from self.transform(ctx, param)
  File "/home/skippern/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 207, in transform
    raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.

Ubuntu 14.04, Python 3.5, discord.py 0.16.0

@Rapptz
Copy link
Owner

Rapptz commented Nov 4, 2018

@Skippern Unrelated.

@Rapptz Rapptz closed this as completed Nov 4, 2018
@crrapi
Copy link
Contributor

crrapi commented Nov 4, 2018

@Skippern Don't forget to pass_context=True if you're on the async branch. Edit: thanks GitHub for not telling me 👍

@Rapptz Rapptz added the duplicate This is a duplicate of another issue or PR. label Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This is a duplicate of another issue or PR.
Projects
None yet
Development

No branches or pull requests

5 participants