Bug 413372

Summary: Can't debug with LLDB (or: LLDB's qt.py not ready for Python 3.x)
Product: [Applications] kdevelop Reporter: rikodok
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: arojas, igorkuo, niko.sams
Priority: NOR    
Version: 5.4.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.13.231200

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