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 #3289

Open
nguyenanhthien0907 opened this issue Jan 9, 2025 · 0 comments
Open

Installation Manager #3289

nguyenanhthien0907 opened this issue Jan 9, 2025 · 0 comments

Comments

@nguyenanhthien0907
Copy link

%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.96.2
PIO IDE: v3.3.3
System: Linux, 6.8.0-51-generic, x64

%23 Exception

Error: Error: Command '['/home/thin/.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
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/__main__.py", line 22, in <module>
  from pip._internal.cli.main import main as _main
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 11, in <module>
  from pip._internal.cli.autocompletion import autocomplete
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
  from pip._internal.cli.main_parser import create_main_parser
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 5, in <module>
  import subprocess
File "/usr/lib/python3.12/subprocess.py", line 104, in <module>
  from _posixsubprocess import fork_exec as _fork_exec
ModuleNotFoundError: No module named '_posixsubprocess'
Traceback (most recent call last):
File "/home/thin/.platformio/.cache/tmp/get-pip.py", line 40, in <module>
  import tempfile
File "/usr/lib/python3.12/tempfile.py", line 184, in <module>
  from random import Random as _Random
File "/usr/lib/python3.12/random.py", line 54, in <module>
  from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ModuleNotFoundError: No module named 'math'
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/__main__.py", line 22, in <module>
  from pip._internal.cli.main import main as _main
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 11, in <module>
  from pip._internal.cli.autocompletion import autocomplete
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
  from pip._internal.cli.main_parser import create_main_parser
File "/home/thin/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 5, in <module>
  import subprocess
File "/usr/lib/python3.12/subprocess.py", line 104, in <module>
  from _posixsubprocess import fork_exec as _fork_exec
ModuleNotFoundError: No module named '_posixsubprocess'
Error: Could not install PlatformIO Core: Command '['/home/thin/.platformio/penv/bin/python', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 1.
-> Installer version: 1.2.2
Platform: Linux-6.8.0-51-generic-x86_64-with-glibc2.39
Python version: 3.12.8 (main, Jan 10 2025, 00:11:54) [GCC 13.3.0]
Python path: /usr/bin/python3
Creating a virtual environment at /home/thin/.platformio/penv
created virtual environment CPython3.12.8.final.0-64 in 152ms
creator CPython3Posix(dest=/home/thin/.platformio/penv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/thin/.local/share/virtualenv)
  added seed packages: pip==24.3.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Updating Python package manager (PIP) in the virtual environment
Virtual environment has been successfully created!
Installing PlatformIO Core

  at /home/thin/.vscode/extensions/platformio.platformio-ide-3.3.3-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5261
  at ChildProcess.i (/home/thin/.vscode/extensions/platformio.platformio-ide-3.3.3-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4559)
  at ChildProcess.emit (node:events:518:28)
  at ChildProcess.emit (node:domain:489:12)
  at maybeClose (node:internal/child_process:1104:16)
  at Socket.<anonymous> (node:internal/child_process:456:11)
  at Socket.emit (node:events:518:28)
  at Socket.emit (node:domain:489:12)
  at Pipe.<anonymous> (node:net:343: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