PyUnicode_AS_UNICODE was deprecated in Python 3.3 and removed in Python 3.12. The code still compiles, but the compiled library fails to load due to the missing symbol. This has already been fixed upstream in version 0.19.0. Reproducible: Always Steps to Reproduce: 1. mock -r fedora-rawhide-x86_64 --install python-Levenshtein 2. mock -r fedora-rawhide-x86_64 --shell 3. python3 -c 'import Levenshtein' Actual Results: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.12/site-packages/Levenshtein/__init__.py", line 1, in <module> from Levenshtein import _levenshtein ImportError: /usr/lib64/python3.12/site-packages/Levenshtein/_levenshtein.cpython-312-x86_64-linux-gnu.so: undefined symbol: PyUnicode_AS_UNICODE Expected Results: No import error.
I'll see about getting the upgrade pushed out soon. The package naming got changed around a bit upstream, so I need to update some dependencies to be the right thing before I can push the update.
Please try to enable tests as well, or at least an import check. https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_running_tests
Yep, the upgraded spec does contain tests already so this kind of thing should be more quickly noticed. I'm still having some trouble with the "paperwork" dependency and the new name, but should hopefully get to it this coming weekend.
Updated and successful build in rawhide: https://bodhi.fedoraproject.org/updates/FEDORA-2023-770777bdbb