Bug 413372 - Can't debug with LLDB (or: LLDB's qt.py not ready for Python 3.x)
Summary: Can't debug with LLDB (or: LLDB's qt.py not ready for Python 3.x)
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 5.4.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 18:57 UTC by rikodok
Modified: 2023-09-15 08:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.13.231200


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rikodok 2019-10-23 18:57:08 UTC
This is the error I get after trying to debug with LLDB:  

lldb-mi 
bind: Invalid command `enable-meta-key'.
error: module importing failed: No module named 'urlparse'
File "temp.py", line 1, in <module>
File "/usr/share/kdevlldb/formatters/qt.py", line 26, in <module>
from urlparse import urlsplit, urlunsplit





Tested on Arch and Manjaro:
Kdevelop 5.4.3 and Kdevelop 5.4.2

Looks like the problem is that Arch uses python 3 as default.
Comment 1 Kevin Funk 2019-10-24 07:50:28 UTC
Yep. qt.py is not Python 3.x ready.
Comment 2 Igor Kushnir 2023-05-07 13:29:33 UTC
https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/452 ports LLDB formatters to Python 3.
Comment 3 Igor Kushnir 2023-09-15 08:59:23 UTC
Git commit 9e8b3a030e65478e0f00c5c80d041706fd7f144f by Igor Kushnir, on behalf of Olivier de Gaalon.
Committed on 15/09/2023 at 10:58.
Pushed by igorkushnir into branch 'master'.

Fix LLDB formatters with recent LLDB/Python

Import doesn't work with recent Python versions and attempt to create a
range with a floating point strLength caused an error that aborted the
QString formatting.
FIXED-IN: 5.13.231200

M  +3    -4    plugins/lldb/formatters/qt.py

https://invent.kde.org/kdevelop/kdevelop/-/commit/9e8b3a030e65478e0f00c5c80d041706fd7f144f