Discord.py 1.6.0 attr Error #6549
Unanswered
EacyCoding
asked this question in
Q&A
Replies: 2 comments 3 replies
-
What version of aiohttp do you have? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Did you install the discord.py module via pip? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
In the discord.py module is an Attribute Error
Reproduction Steps
import discord
class MyClient(discord.Client):
# Einloggen
async def on_ready(self):
client = MyClient()
client.run(TOKEN)
Expected Results
Expected the bot to connect to the server and print out the msg, that he is connected.
Actual Results
File "c:\Users\Eacy\Documents\Programmieren\Python stuff\DiscordBot\EvoliBot\discord_ basic.py", line 1, in
import discord
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\discord_init_.py", line 25, in
from .client import Client
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\discord\client.py", line 33, in
import aiohttp
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp_init_.py", line 6, in
from .client import (
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\client.py", line 35, in
from . import hdrs, http, payload
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\http.py", line 7, in
from .http_parser import (
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\http_parser.py", line 15, in
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\helpers.py", line 239, in
@attr.s(auto_attribs=True, frozen=True, slots=True)
AttributeError: module 'attr' has no attribute 's'
Intents
just testing the discord.py module
System Information
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\Python39\lib\runpy.py", line 147, in _get_module_details
return get_module_details(pkg_main_name, error)
File "C:\Program Files\Python39\lib\runpy.py", line 111, in get_module_details
import(pkg_name)
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\discord_init.py", line 25, in
from .client import Client
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\discord\client.py", line 33, in
import aiohttp
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp_init.py", line 6, in
from .client import (
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\client.py", line 35, in
from . import hdrs, http, payload
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\http.py", line 7, in
from .http_parser import (
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\http_parser.py", line 15, in
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "C:\Users\Eacy\AppData\Roaming\Python\Python39\site-packages\aiohttp\helpers.py", line 239, in
@attr.s(auto_attribs=True, frozen=True, slots=True)
AttributeError: module 'attr' has no attribute 's'
Checklist
Would really appreciate suggestions what to do, maybe I just made a mistake in my code.
Beta Was this translation helpful? Give feedback.
All reactions