vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

No module named pip in aarch64-linux #1100

Open atesteve opened 1 month ago

atesteve commented 1 month ago

OS: Ubuntu 22.04.4 LTS (aarch64) VSCode version: 1.89.1 CodeLLDB version: v1.10.0 Compiler: N/A Debuggee: N/A

I'm trying to install some python packages in the embedded python environment bundled by the plugin through LLDB: Command prompt, as suggested here. However, the pip command fails since it seems that it is not installed in the embedded environment:

(lldb) command script import /home/ubuntu/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/adapter/scripts/console.py

Extra commands available:
    pip        - Manage Python packages.
    debug_info - Show module debug information.

(lldb) pip
Traceback (most recent call last):
  File "/home/ubuntu/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/adapter/scripts/console.py", line 11, in pip
    runpy.run_module('pip', run_name='__main__', alter_sys=True)
  File "/home/ubuntu/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/lib/python3.9/runpy.py", line 206, in run_module
    mod_name, mod_spec, code = _get_module_details(mod_name)
  File "/home/ubuntu/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/lib/python3.9/runpy.py", line 141, in _get_module_details
    raise error("No module named %s" % mod_name)
ImportError: No module named pip

I tried this same thing in a different system, with Ubuntu x86_64, and it works there. Digging a little more, it seems that the aarch64-linux plugin lacks a site-packages folder in the python installation:

❯ ls ~/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/lib/python3.9/site-packages
ls: cannot access '/home/ubuntu/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/lib/python3.9/site-packages': No such file or directory