Giter VIP home page Giter VIP logo

asyncprawcore's People

Contributors

bboe avatar cam-gerlach avatar dotlambda avatar elnuno avatar felixonmars avatar jarhill0 avatar koobs avatar leviroth avatar lilspazjoekp avatar maybenetwork avatar nmtake avatar pythoncoderas avatar vepiphyte avatar vikramaditya91 avatar watchful1 avatar zeeraktalat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asyncprawcore's Issues

incompatible aiohttp version

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:

  1. Run new Jenkins build for a project that depends on asyncpraw (asyncpraw==7.5.0 in setup.py)
  2. Build script sets up environment
  3. aiohttp==4.0.0a1 gets installed
  4. Tests fail (see output below)

Expected 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

  • OS: Debian GNU/Linux 10 (buster)
  • Python: 2.7
  • Async PRAW Version: 7.5.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.