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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install with speedups in CPython 3.10.0-alpha-7 due to failures with pycares #5604

Closed
davfsa opened this issue Apr 9, 2021 · 4 comments
Labels

Comments

@davfsa
Copy link

davfsa commented Apr 9, 2021

馃悶 Describe the bug
When installing aiohttp with speedupds, it installs aiodns, which itself relies on pycares. These two libs are currently unmaintained as stated here: saghul/pycares#139. This will make installing aiohttp with speedups impossible in CPython 3.10.

馃挕 To Reproduce
Install CPython 3.10 and try to install aiohttp with speedups.

Examples:

馃挕 Expected behavior
Installation with speedups succeeds. This might require looking for a different package or maintaining that package.

馃搵 Logs/tracebacks
Check links above

馃搵 Your version of the Python

$ python --version
Python 3.10.0a7

馃搵 Your version of the aiohttp/yarl/multidict distributions
Unable to install, but the version that we are trying to install is 3.7.4.post0

馃搵 Additional context
None

@davfsa davfsa added the bug label Apr 9, 2021
@webknjaz
Copy link
Member

webknjaz commented Apr 9, 2021

Well, that's unfortunate... As a workaround, you could install Brotli and cchardet directly w/o depending on the speedups extra. I don't know how much we can do about these deps. Maybe we could guide them towards setting up shared maintenance but I doubt anybody under @aio-libs has the capacity to step up.

@davfsa
Copy link
Author

davfsa commented Apr 9, 2021

Well, that's unfortunate... As a workaround, you could install Brotli and cchardet directly w/o depending on the speedups extra. I don't know how much we can do about these deps. Maybe we could guide them towards setting up shared maintenance but I doubt anybody under @aio-libs has the capacity to step up.

In my project we install the dependencies separately to aiohttp if people choose to install the speedups, so we will most likely disable aiodns for Python 3.10 if nobody takes over. Thanks for the info tho. I hope someone can take over (I personally lack too much C knowledge for this task)

@Molkree
Copy link

Molkree commented Apr 22, 2021

@davfsa, try installing wheel first, then you should be able to install aiohttp[speedups] on Python 3.10.
See here.
And when I removed wheel here.

@davfsa
Copy link
Author

davfsa commented Apr 23, 2021

@davfsa, try installing wheel first, then you should be able to install aiohttp[speedups] on Python 3.10.
See here.
And when I removed wheel here.

Yep, that seems to have fixed it 馃憤 TIL that -e flag will not install the requires specified in pyproject.toml. Thanks for pointing this out!

I think this issue should be fixed then, as you can just use wheels to install the package

@davfsa davfsa closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants