Bug 2229354

Summary: ulauncher crashes on launch after Python 3.12 rebuild
Product: [Fedora] Fedora Reporter: Onyeibo Oku <onyeibo>
Component: ulauncherAssignee: Troy Curtis <troy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 39CC: ego.cordatus, troy
Target Milestone: ---Keywords: Desktop, Regression, Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-21 01:37:46 UTC Type: ---
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: 2219556    
Bug Blocks:    

Description Onyeibo Oku 2023-08-05 08:26:33 UTC
Since the arrival of Python 3.12.0b4 in Rawhide, ulauncher has been crashing. See traceback that prints when I issue a ulauncher command on the terminal:

$ ulauncher

Traceback (most recent call last):
  File "/usr/bin/ulauncher", line 27, in <module>
    from ulauncher.main import main
  File "/usr/lib/python3.12/site-packages/ulauncher/main.py", line 25, in <module>
    from ulauncher.ui.windows.UlauncherWindow import UlauncherWindow
  File "/usr/lib/python3.12/site-packages/ulauncher/ui/windows/UlauncherWindow.py", line 23, in <module>
    from ulauncher.search.Search import Search
  File "/usr/lib/python3.12/site-packages/ulauncher/search/Search.py", line 3, in <module>
    from ulauncher.api.server.ExtensionSearchMode import ExtensionSearchMode
  File "/usr/lib/python3.12/site-packages/ulauncher/api/server/ExtensionSearchMode.py", line 3, in <module>
    from ulauncher.api.server.DeferredResultRenderer import DeferredResultRenderer
  File "/usr/lib/python3.12/site-packages/ulauncher/api/server/DeferredResultRenderer.py", line 11, in <module>
    from ulauncher.api.shared.item.ResultItem import ResultItem
  File "/usr/lib/python3.12/site-packages/ulauncher/api/shared/item/ResultItem.py", line 5, in <module>
    from ulauncher.utils.text_highlighter import highlight_text
  File "/usr/lib/python3.12/site-packages/ulauncher/utils/text_highlighter.py", line 1, in <module>
    from ulauncher.utils.fuzzy_search import get_matching_indexes
  File "/usr/lib/python3.12/site-packages/ulauncher/utils/fuzzy_search.py", line 4, in <module>
    from Levenshtein import distance
  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

Reproducible: Always

Steps to Reproduce:
1. Boot up Fedora (rawhide) and update to date (yesterday)
2. issue ulauncher command on a terminal
3. You should get a traceback
Actual Results:  
See details above

Expected Results:  
Expected the ulauncher menu widget

Comment 1 Troy Curtis 2023-08-06 13:00:12 UTC
This is due to https://bugzilla.redhat.com/show_bug.cgi?id=2223524, I have a Levenshtein update in progress

Comment 2 Troy Curtis 2023-08-06 17:11:59 UTC
Update posted to Bodhi, should be available soon https://bodhi.fedoraproject.org/updates/FEDORA-2023-770777bdbb

Comment 3 Troy Curtis 2023-08-06 17:19:19 UTC
And then onto the next breakage https://bugzilla.redhat.com/show_bug.cgi?id=2219556

Comment 4 Fedora Release Engineering 2023-08-16 08:07:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 5 Troy Curtis 2023-08-21 01:37:46 UTC
ulauncher should not be working with the last dependent package updates (except for the fail to install due to the webkit drop, but that is covered in https://bugzilla.redhat.com/show_bug.cgi?id=2232975)