-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fix some broken dependencies on legacy libs #1251
Conversation
The version you've pinned to breaks stuff with aiohttp 2.2.5 |
My main concern was stopping 1.2.x from being installed which will always cause the above traceback when importing discord. version 1.1.1 would of been the previous version installed if anyone installed rewrite since February 17th. I am not opposed to hard locking to an even older version, but it doesn't seem hugely necessary. I hadn't seen any yarl related issues in d.py prior to today. |
Setting requirements to An example is aiohttp 2.0:
To resolve the issue, without restricting suddenly what versions are required by the lib, would be to change the line from:
to
|
As discussed here and late (or early) last night made changes allowing more lenient dependencies. |
BTW, Pinning to legacy releases will break other projects or integrations like the one for Home Assistant. We use |
aiohttp drops support for python 3.4 in version 3. This library still maintains support for 3.4. |
Not for long hopefully ;-) |
Python 3.4 will be EOL on 2019-03-16. I see the benefit of supporting as much Python releases as possible but to be honest I see no point in keeping support for a legacy one that block the usage of recent releases of the requirements. Especially as most distributions ship Python > 3.5 nowadays. |
Dropping Python 3.4 is planned - we are only keeping support for it until the appropriate compatibility is put in to ensure normal functionality on Python 3.7, as it introduces some new behaviors that could end up disrupting how this library operates should a user or other library enable them. |
TBH I see no issue using latest aiohttp as long as people are careful with updating code to call functions/methods/classes that might have been either renamed, deprecated, or removed just to avoid dependency problems that this describes. However I been too lazy to code in Python since after 3.7.0b1. I just lost much motivation after making a working catgirl bot that sends random catgirl images from Google (was so worth it). And no, my bot is closed source to prevent people from stealing my code and claiming it as theirs by going in and adding it to a Bots list (how hard is it for them to code their own). Yes, I know there are bot lists but I chose to make it a private bot as well otherwise it would get spammed and abused till something breaks. And I see no need for Python 3.4 anymore. Why is it not end of life already? They do not even ship updates for it anymore except for 3.4.6 which can only be installed by building it yourself. |
Thx for impassioned monologue about Catgirls in the inbox <3 |
Resolved in rewrite update |
This feels like a really ugly fix and I dont really like it. But yarl has made some breaking changes recently and aiohttp 2.2 looks for 'yarl>=0.11' so it installs the latest version, 1.2.1 which causes the below traceback when importing discord.
Newer versions of aiohttp pin yarl to 1.1.1 so I have made that change here. My understanding is that aiohttp doesn't do back ports, so there is no point trying to fix the issue as the source.
This feels inelegant but it stops an error when you import discord
resolves #1280