Bug 2325199

Summary: python-loguru fails to build with Python 3.14: test_caught_exception_queue_put: AssertionError: assert False
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-loguruAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, ksurma, mhroncok, neuro-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-loguru-0.7.2-3.fc42 python-loguru-0.7.2-3.el10_0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-11 15:14:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407    

Description Karolina Surma 2024-11-11 14:27:06 UTC
python-loguru fails to build with Python 3.14.0a1.

_______________________ test_caught_exception_queue_put ________________________

writer = <function writer.<locals>.w at 0x7f97163da350>
capsys = <_pytest.capture.CaptureFixture object at 0x7f97163acd50>

>   ???
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x7f971640afd0>('PicklingError: You shall not serialize me!')
E    +    where <built-in method endswith of str object at 0x7f971640afd0> = 'when serializing loguru._handler.Message object'.endswith

capsys     = <_pytest.capture.CaptureFixture object at 0x7f97163acd50>
err        = "--- Logging error in Loguru Handler #0 ---\nRecord was: {'elapsed': datetime.timedelta(seconds=1, microseconds=824540...alizing loguru._handler.Message state\nwhen serializing loguru._handler.Message object\n--- End of logging error ---\n"
lines      = ['--- Logging error in Loguru Handler #0 ---', "Record was: {'elapsed': datetime.timedelta(seconds=1, microseconds=824...7.2/loguru/_handler.py", line 204, in emit', '    self._queue.put(str_record)', '    ~~~~~~~~~~~~~~~^^^^^^^^^^^^', ...]
out        = ''
writer     = <function writer.<locals>.w at 0x7f97163da350>

tests/test_add_option_enqueue.py:104: AssertionError

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08193984-python-loguru/

For all our attempts to build python-loguru with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-loguru/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2024-11-11 15:11:38 UTC
FEDORA-2024-ff5d117794 (python-loguru-0.7.2-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ff5d117794

Comment 2 Fedora Update System 2024-11-11 15:14:24 UTC
FEDORA-2024-ff5d117794 (python-loguru-0.7.2-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-11-18 15:52:05 UTC
FEDORA-EPEL-2024-2a2a534191 (python-loguru-0.7.2-3.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2a2a534191

Comment 4 Fedora Update System 2024-11-19 02:51:51 UTC
FEDORA-EPEL-2024-2a2a534191 has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2a2a534191

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-11-27 02:57:11 UTC
FEDORA-EPEL-2024-2a2a534191 (python-loguru-0.7.2-3.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.