This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Can't install YARL
Type: compile error Stage: resolved
Components: macOS Versions: Python 3.11
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, ned.deily, pkoning, ronaldoussoren
Priority: normal Keywords:

Created on 2022-02-03 19:14 by pkoning, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
yarl.log pkoning, 2022-02-03 19:14 pip install log
Messages (5)
msg412453 - (view) Author: Paul Koning (pkoning) * Date: 2022-02-03 19:14
Trying to install "aiohttp" with pip I get a compile error installing "yarl".  I get the same error when I install just that module.  But it installs fine on 3.10.  This is on an Apple M1 (ARM64) machine.
msg412455 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-02-03 19:29
It looks like you're missing dependencies required to compile yarl. Since this isn't a bug with Python, I'm going to close this.

I suggest you ask the yarl community for help. Their home page is

Good luck!
msg412457 - (view) Author: Paul Koning (pkoning) * Date: 2022-02-03 19:35
The only dependency mentioned by the yarl documentation is multidict and installing that makes no difference.  I see I can tell yarl to build a pure-python version to avoid compiling stuff.  If I do that it installs.  But what I actually wanted to do is install aiohttp, and that step fails with the exact same error message.

Given that it works in 3.10 but fails in 3.11a4, it does seem there is something about the new code that is involved here.
msg412460 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-02-03 19:53
Ah. longintrepr.h is an internal Python file, not meant for external consumption. This file moved in Python 3.11. So this is still a yarl issue: they'll need to adjust how they read that file. But my recommendation is that they find another way to do what they want without including it.

See Files in the cpython directory (which longintrepr.h is) are a CPython implementation detail, and can change or move at any time.
msg412462 - (view) Author: Paul Koning (pkoning) * Date: 2022-02-03 20:02
Thanks, I'll pass the word to the yarl and aiohttp team (both have this issue).
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90786
2022-02-03 20:02:34pkoningsetmessages: + msg412462
2022-02-03 19:53:52eric.smithsetmessages: + msg412460
2022-02-03 19:35:43pkoningsetmessages: + msg412457
2022-02-03 19:29:39eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg412455

resolution: third party
stage: resolved
2022-02-03 19:14:22pkoningcreate