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

AttributeError: __enter__ #78

Closed
appleGun22 opened this issue Oct 16, 2020 · 3 comments
Closed

AttributeError: __enter__ #78

appleGun22 opened this issue Oct 16, 2020 · 3 comments

Comments

@appleGun22
Copy link

appleGun22 commented Oct 16, 2020

i get that message every time i want to get client

File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(self._args, **self._kwargs)
File "
***.py", line 113, in ****
client = brawlstats.Client(token=cT)
File "/home/ubuntu/.local/lib/python3.8/site-packages/brawlstats/core.py", line 76, in init
brawlers_info = self.get_brawlers()
File "/home/ubuntu/.local/lib/python3.8/site-packages/brawlstats/core.py", line 355, in get_brawlers
return self._get_model(self.api.BRAWLERS, model=Brawlers)
File "/home/ubuntu/.local/lib/python3.8/site-packages/brawlstats/core.py", line 190, in _get_model
data = self._request(url)
File "/home/ubuntu/.local/lib/python3.8/site-packages/brawlstats/core.py", line 155, in _request
with self.session.get(url, timeout=self.timeout, headers=self.headers) as resp:

what's causing that problem?

@SharpBit
Copy link
Owner

Looks like an issue with the requests library. Can you tell me what version of requests you have? You can check by typing pip show requests in the terminal. I'll look into it more later

@appleGun22
Copy link
Author

Looks like an issue with the requests library. Can you tell me what version of requests you have? You can check by typing pip show requests in the terminal. I'll look into it more later

2.7.0

@appleGun22
Copy link
Author

bruh , i forgout to update the requests libary :)
i updated it to 2.24.0 now its all fine

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

2 participants