FS#76326 - [python-aiohttp] requires charset-normalizer<3.0

Attached to Project: Community Packages
Opened by Cedric Girard (Xdark) - Friday, 28 October 2022, 09:11 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 08 December 2022, 10:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Jonas Witschel (diabonas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: python-aiohttp is not working since python-charset-normalizer is in version 3.0.0. There is a requirement of having version <3.0.

The error is:

pkg_resources.DistributionNotFound: The 'charset-normalizer<3.0,>=2.0' distribution was not found and is required by aiohttp

Relaxing the requirement seems OK (I did not do extensive testing).
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 08 December 2022, 10:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-aiohttp 3.8.3-2
Comment by loqs (loqs) - Sunday, 30 October 2022, 00:58 GMT Comment by Isaac G (IsaacG) - Sunday, 27 November 2022, 20:14 GMT
More details:

[python-aiohttp PKGBUILD](https://github.com/archlinux/svntogit-community/blob/packages/python-aiohttp/trunk/PKGBUILD) build at commit `30b7a4e99677b4014dda2372504343bb05fc983e`

[setup.cfg at `30b7a4e99677b4014dda2372504343bb05fc983e`](https://github.com/aio-libs/aiohttp/blob/30b7a4e99677b4014dda2372504343bb05fc983e/setup.cfg#L52) contains the line,

```
charset-normalizer >=2.0, < 3.0
```

This was raised to `< 4.0` [around 10/24](https://github.com/aio-libs/aiohttp/pull/7057).

[Package python-charset-normalizer](https://archlinux.org/packages/community/any/python-charset-normalizer/) is currently at 3.0.1 which is incompatible (bumped to 3.0.0 on 10/24)

Unfortunately, aiohttp did not bump the release version since 3.8.3 on 10/21 so using a fixed version isn't going to work.
Comment by loqs (loqs) - Sunday, 27 November 2022, 21:51 GMT
Does applying the attached diff and rebuilding the package resolve the issue?
Comment by Cedric Girard (Xdark) - Tuesday, 29 November 2022, 13:33 GMT
Yes it does for me.
Comment by Jussi Hietanen (jussihi) - Thursday, 08 December 2022, 10:30 GMT
When will this update land on official repos? I'm having hard time rebuilding the package myself - it is failing to tests/test_web_sendfile_functional.py::test_static_file_if_match for some reason.

I would love to have working version of this package asap.

Loading...