Bug 2229354 - ulauncher crashes on launch after Python 3.12 rebuild
Summary: ulauncher crashes on launch after Python 3.12 rebuild
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ulauncher
Version: 39
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Troy Curtis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2219556
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-05 08:26 UTC by Onyeibo Oku
Modified: 2023-08-21 01:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-21 01:37:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2223524 0 unspecified CLOSED python-Levenshtein is not importable with Python 3.12 2023-08-08 10:05:27 UTC

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)


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