llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.12k stars 12.01k forks source link

lldb -python-path (with lldb installed using apt-get install lldb-9) returns an incorrect path #44209

Open llvmbot opened 4 years ago

llvmbot commented 4 years ago
Bugzilla Link 44864
Version 12.0
OS Linux
Reporter LLVM Bugzilla Contributor
CC @JDevlieghere,@jmorse,@labath,@wolli63

Extended Description

Hello,

I installed LLDB using "sudo apt-get install lldb-9" and "lldb-9 -python-path" returns an incorrect path (does not exist). It returns "/usr/lib/x86_64-linux-gnu/python3.6/site-packages".

Because of that issue, I was unable to use DExTer (https://github.com/SNSystems/dexter) with that build of LLDB since it relies on the output of "lldb -P" to find LLDB's Python package.

I tried building LLDB myself to see if the issue occured, but that build correctly returns "/home/(current user)/lldb/lib/python2.7/dist-packages". (So after adding my "build/bin" folder to my PATH, I was able to run DExTer)

This happened on my machine running Ubuntu 18.04.3 LTS. I also think that this happens on pretty much any version of LLDB installed using apt-get.

Kind regards, Pierre van Houtryve

e680e769-4e5d-44e3-8934-c6fa72d2f1d1 commented 3 years ago

Hello, I have the same problem with "lldb-12 --python-path". It returns "/usr/lib/lib/python3/dist-packages". I found the package at "/usr/lib/llvm-12/lib/python3/dist-packages".

lldb version 12.0.1 Linux 5.8.0-53-generic #​60~20.04.1-Ubuntu SMP

Best regards Wolfgang

labath commented 4 years ago

There's been a bunch of python changes since 9.0, and I believe this particular problem should be fixed in newer versions. 9.0 is not getting any new releases, so we can't do anything about that version. If you can reproduce this on newer versions (particularly 10.0, which is at the rc stage now), then please reopen this bug.