platformio-core-installer icon indicating copy to clipboard operation
platformio-core-installer copied to clipboard

Installation Manager

Open AlanB74 opened this issue 1 year ago • 0 comments

%23 Description of problem Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

  • https://github.com/platformio/platformio-vscode-ide/issues%3Fq=is%3Aissue

%23 Configuration

VSCode: 1.93.1 PIO IDE: v1.0.3 System: Linux, 6.1.21-v8 , arm

%23 Exception

Error: /usr/bin/python3: No module named virtualenv
/usr/bin/python3: No module named virtualenv
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
  return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
  exec(code, run_globals)
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/__main__.py", line 163, in <module>
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/__main__.py", line 159, in run
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/__main__.py", line 18, in run
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/run/__init__.py", line 33, in cli_run
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/run/session.py", line 46, in run
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/run/session.py", line 65, in _activate
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/activation/via_template.py", line 27, in generate
File "/home/alanball74/.platformio/.cache/tmp/virtualenv.pyz/virtualenv/activation/via_template.py", line 53, in _generate
File "/usr/lib/python3.9/pathlib.py", line 1264, in write_bytes
  with self.open(mode='wb') as f:
File "/usr/lib/python3.9/pathlib.py", line 1241, in open
  return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/lib/python3.9/pathlib.py", line 1109, in _opener
  return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/alanball74/.platformio/penv/bin/activate'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 2
╰─> [1 lines of output]
    /home/alanball74/.platformio/penv/bin/python: can't open file '/home/alanball74/.platformio/penv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py': [Errno 2] No such file or directory
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: There was an error checking the latest version of pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel 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/alanball74/.platformio/penv/bin/python', '-m', 'pip', 'install', '-U', 'https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.16 test.zip']' returned non-zero exit status 1.
-> Installer version: 1.2.3
Platform: Linux-6.1.21-v8 -aarch64-with-glibc2.31
Python version: 3.9.2 (default, Mar 12 2021, 04:06:34) 
[GCC 10.2.1 20210110]
Python path: /usr/bin/python3
Creating a virtual environment at /home/alanball74/.platformio/penv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

  apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/alanball74/.platformio/penv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Updating Python package manager (PIP) in the virtual environment
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in /home/alanball74/.platformio/penv/lib/python3.9/site-packages (20.3.4)
Collecting pip
Downloading https://www.piwheels.org/simple/pip/pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
  Found existing installation: pip 20.3.4
  Uninstalling pip-20.3.4:
    Successfully uninstalled pip-20.3.4
Successfully installed pip-24.2
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.16 test.zip
Downloading https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.16 test.zip
   | 550.0 kB 5.2 MB/s 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'

	at /home/alanball74/.vscode/extensions/pioarduino.pioarduino-ide-1.0.3/node_modules/pioarduino-node-helpers/dist/index.js:1:5324
	at ChildProcess.d (/home/alanball74/.vscode/extensions/pioarduino.pioarduino-ide-1.0.3/node_modules/pioarduino-node-helpers/dist/index.js:1:4622)
	at ChildProcess.emit (node:events:519:28)
	at ChildProcess.emit (node:domain:488:12)
	at maybeClose (node:internal/child_process:1105:16)
	at ChildProcess._handle.onexit (node:internal/child_process:305:5)
	at Process.callbackTrampoline (node:internal/async_hooks:130:17)

AlanB74 avatar Sep 21 '24 12:09 AlanB74