Bug 2237570 - python-httpx: missing dependency in epel8
Summary: python-httpx: missing dependency in epel8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-httpx
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George 🤠
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-06 03:27 UTC by Carl George 🤠
Modified: 2023-09-22 02:18 UTC (History)
2 users (show)

Fixed In Version: python-httpx-0.16.1-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-22 02:18:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carl George 🤠 2023-09-06 03:27:51 UTC
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.

Comment 1 Carl George 🤠 2023-09-12 22:29:52 UTC
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

Comment 2 Fedora Update System 2023-09-13 00:46:27 UTC
FEDORA-EPEL-2023-0f780f7eab has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-0f780f7eab

Comment 3 Fedora Update System 2023-09-14 01:57:55 UTC
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.

Comment 4 Fedora Update System 2023-09-22 02:18:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.