praw-dev / asyncprawcore Goto Github PK
View Code? Open in Web Editor NEWLow-level asynchronous communication layer for Async PRAW 7+.
License: BSD 2-Clause "Simplified" License
Low-level asynchronous communication layer for Async PRAW 7+.
License: BSD 2-Clause "Simplified" License
Describe the bug
It is possible to have an incompatible version of aiohttp get installed when running pip install asyncpraw
now that there is a new breaking (4.x) release of aiohttp. A new build running on my Jenkins server installed aiohttp==4.0.0a1
, which caused tests to fail on instantiating asyncpraw.Reddit()
.
To Reproduce
Steps to reproduce the behavior:
asyncpraw==7.5.0
in setup.py
)aiohttp==4.0.0a1
gets installedExpected behavior
asyncpraw should be installed with a compatible aiohttp version. I have resolved this for myself by adding aiohttp==3.8.1
to my project requirements.
Code/Logs
(system paths omitted)
Exception ignored in: <function ClientSession.__del__ at 0x7ff860902c80>
Traceback (most recent call last):
File ".../venv/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/client.py", line 269, in __del__
if not self.closed:
File ".../venv/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/client.py", line 894, in closed
return self._connector is None or self._connector.closed
AttributeError: _connector
Traceback (most recent call last):
File ".../__init__.py", line 69, in run
await self._authenticate_with_reddit(config)
File ".../__init__.py", line 95, in _authenticate_with_reddit
user_agent=user_agent
File ".../venv/lib/python3.7/site-packages/asyncpraw-7.5.0-py3.7.egg/asyncpraw/reddit.py", line 314, in __init__
self.requestor = self._prepare_asyncprawcore(requestor_class, requestor_kwargs)
File ".../venv/lib/python3.7/site-packages/asyncpraw-7.5.0-py3.7.egg/asyncpraw/reddit.py", line 572, in _prepare_asyncprawcore
**requestor_kwargs,
File ".../venv/lib/python3.7/site-packages/asyncprawcore-2.3.0-py3.7.egg/asyncprawcore/requestor.py", line 47, in __init__
loop=self.loop, timeout=aiohttp.ClientTimeout(total=None)
TypeError: __init__() got an unexpected keyword argument 'loop'
System Info
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.