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

Installation Manager #3244

Open
efremropelato opened this issue Oct 11, 2024 · 0 comments
Open

Installation Manager #3244

efremropelato opened this issue Oct 11, 2024 · 0 comments

Comments

@efremropelato
Copy link

%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.94.0
PIO IDE: v1.0.4
System: Linux, 6.8.0-45-generic, x64

%23 Exception

Error: Error: Command '['/home/eropelato/.platformio/penv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
/usr/bin/python3: No module named virtualenv
/usr/bin/python3: No module named virtualenv
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> [11 lines of output]
    ERROR: Exception:
    Traceback (most recent call last):
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 325, in run
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 76, in get_default_session
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 99, in _build_session
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/network/session.py", line 344, in __init__
      File "/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_internal/network/session.py", line 140, in user_agent
    ImportError: cannot import name 'distro' from 'pip._vendor' (/home/eropelato/.platformio/penv/lib/python3.12/site-packages/pip/_vendor/__init__.py)
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: Ignoring invalid distribution ~ip (/home/eropelato/.platformio/penv/lib/python3.12/site-packages)
WARNING: Ignoring invalid distribution ~ip (/home/eropelato/.platformio/penv/lib/python3.12/site-packages)
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Error: Could not install PlatformIO Core: Command '['/home/eropelato/.platformio/penv/bin/python', '-m', 'pip', 'install', '-U', 'https://api.github.com/repos/pioarduino/platformio-core/zipball/v6.1.16']' returned non-zero exit status 1.
-> Installer version: 1.2.3
Platform: Linux-6.8.0-45-generic-x86_64-with-glibc2.39
Python version: 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0]
Python path: /usr/bin/python3
Creating a virtual environment at /home/eropelato/.platformio/penv
created virtual environment CPython3.12.3.final.0-64 in 243ms
creator CPython3Posix(dest=/home/eropelato/.platformio/penv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/eropelato/.local/share/virtualenv)
  added seed packages: pip==24.2
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Updating Python package manager (PIP) in the virtual environment
Requirement already satisfied: pip in /home/eropelato/.platformio/penv/lib/python3.12/site-packages (24.2)
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core
Collecting https://api.github.com/repos/pioarduino/platformio-core/zipball/v6.1.16
Downloading https://api.github.com/repos/pioarduino/platformio-core/zipball/v6.1.16
   - 556.5 kB 1.3 MB/s 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'error'

  at /home/eropelato/.vscode/extensions/pioarduino.pioarduino-ide-1.0.4/node_modules/pioarduino-node-helpers/dist/index.js:1:5262
  at ChildProcess.d (/home/eropelato/.vscode/extensions/pioarduino.pioarduino-ide-1.0.4/node_modules/pioarduino-node-helpers/dist/index.js:1:4560)
  at ChildProcess.emit (node:events:519:28)
  at ChildProcess.emit (node:domain:488:12)
  at maybeClose (node:internal/child_process:1105:16)
  at Socket.<anonymous> (node:internal/child_process:457:11)
  at Socket.emit (node:events:519:28)
  at Socket.emit (node:domain:488:12)
  at Pipe.<anonymous> (node:net:339:12)
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

1 participant