Description of problem: The httpx Python module from the python3-httpx package fails to import. Version-Release number of selected component (if applicable): python3-httpx-0.16.1-1.el8.noarch How reproducible: always Steps to Reproduce: 1. dnf install python3-httpx 2. python3 -c 'import httpx' Actual results: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.6/site-packages/httpx/__init__.py", line 2, in <module> from ._api import delete, get, head, options, patch, post, put, request, stream File "/usr/lib/python3.6/site-packages/httpx/_api.py", line 3, in <module> from ._client import Client, StreamContextManager File "/usr/lib/python3.6/site-packages/httpx/_client.py", line 7, in <module> import httpcore ModuleNotFoundError: No module named 'httpcore' Expected results: successful import Additional info: Installing python3-httpcore manually resolves the import issue, confirming that it should be a dependency.
It seems the problem is that EL8's Python dependency generator doesn't understand "httpcore==0.12.*" [0]. Rebuilding the same spec file for EL9 gets the following automatic dependency: (python3.9dist(httpcore) >= 0.12 with python3.9dist(httpcore) < 0.13) Upstream later adjusted this dependency to "httpcore>=0.12.1,<0.13" [1], which does parse correctly on EL8. I've sent a PR to include that commit as a patch in the epel8 package. [0] https://github.com/encode/httpx/blob/0.16.1/setup.py#L61 [1] https://github.com/encode/httpx/commit/c09e61d50c8f169187cada6dbf14b89c7763c63f [2] https://src.fedoraproject.org/rpms/python-httpx/pull-request/3
FEDORA-EPEL-2023-0f780f7eab has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-0f780f7eab
FEDORA-EPEL-2023-0f780f7eab has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-0f780f7eab See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2023-0f780f7eab has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.