Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named pip in aarch64-linux #1100

Open
atesteve opened this issue May 16, 2024 · 1 comment
Open

No module named pip in aarch64-linux #1100

atesteve opened this issue May 16, 2024 · 1 comment

Comments

@atesteve
Copy link

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
@parker-felix
Copy link

Bumping this since I spent quite a bit of time trying to debug the same issue. I'm on version 1.11.0 but using the same OS, and also don't have a site-packages folder:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants