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

bot startup error #1728

Closed
ttatanepvp123 opened this issue Nov 16, 2018 · 4 comments
Closed

bot startup error #1728

ttatanepvp123 opened this issue Nov 16, 2018 · 4 comments

Comments

@ttatanepvp123
Copy link

hello i wanted to try the rewrite version
and when I started I had this error:

  File "main.py", line 1, in <module>
    import discord
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/discord/__init__.py", line 20, in <module>
    from .client import Client, AppInfo
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/discord/client.py", line 30, in <module>
    from .guild import Guild
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/discord/guild.py", line 39, in <module>
    from .channel import *
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/discord/channel.py", line 31, in <module>
    from .webhook import Webhook
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/discord/webhook.py", line 27, in <module>
    import aiohttp
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/__init__.py", line 6, in <module>
    from .client import *  # noqa
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/client.py", line 15, in <module>
    from . import connector as connector_mod
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 17, in <module>
    from .client_proto import ResponseHandler
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/client_proto.py", line 6, in <module>
    from .http import HttpResponseParser, StreamWriter
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/http.py", line 8, in <module>
    from .http_parser import (HttpParser, HttpRequestParser, HttpResponseParser,
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/http_parser.py", line 15, in <module>
    from .http_writer import HttpVersion, HttpVersion10
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/aiohttp/http_writer.py", line 304, in <module>
    class URL(yarl.URL):
  File "/home/ttatanepvp123/.local/lib/python3.6/site-packages/yarl/__init__.py", line 232, in __init_subclass__
    "is forbidden".format(cls))
TypeError: Inheritance a class <class 'aiohttp.http_writer.URL'> from URL is forbidden
@MusicOnline
Copy link
Contributor

You probably installed the wrong package. (pip install discord or discord-rewrite)
The correct command is:

pip install -U git+https://github.com/Rapptz/discord.py@rewrite

or with voice send support:

pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]

@MusicOnline
Copy link
Contributor

obligatory text excerpt:

For further help specific to using this library, you should join either the official discord.py server or the Discord API server, as the README recommends.

@Harmon758
Copy link
Contributor

Duplicate of #1280.
This should be fixed in the latest version of the rewrite branch.

@ttatanepvp123
Copy link
Author

OK, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants