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

Open
chiflyer opened this issue Jan 24, 2025 · 0 comments
Open

Installation Manager #3295

chiflyer opened this issue Jan 24, 2025 · 0 comments

Comments

@chiflyer
Copy link

%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.96.3
PIO IDE: v3.3.4
System: Linux, 6.5.0-1025-azure, x64

%23 Exception

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

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> [25 lines of output]
    ERROR: Exception:
    Traceback (most recent call last):
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
        status = _inner_run()
                 ^^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
        return self.run(options, args)
               ^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
        return func(self, options, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 325, in run
        session = self.get_default_session(options)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 76, in get_default_session
        self._session = self.enter_context(self._build_session(options))
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 99, in _build_session
        session = PipSession(
                  ^^^^^^^^^^^
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/network/session.py", line 344, in __init__
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/network/session.py", line 177, in user_agent
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py", line 76, in get_default_environment
      File "/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py", line 61, in select_backend
    ImportError: cannot import name 'importlib' from 'pip._internal.metadata' (/home/codespace/.platformio/penv/lib/python3.12/site-packages/pip/_internal/metadata/__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/codespace/.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/codespace/.platformio/penv/bin/python', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 1.
-> Installer version: 1.2.2
Platform: Linux-6.5.0-1025-azure-x86_64-with-glibc2.31
Python version: 3.12.1 (main, Dec 12 2024, 22:30:56) [GCC 9.4.0]
Python path: /home/codespace/.python/current/bin/python3
Creating a virtual environment at /home/codespace/.platformio/penv
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
File "/usr/local/py-utils/venvs/virtualenv/lib/python3.12/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 59, in _install
  installer.install(creator.interpreter.version_info)
File "/usr/local/py-utils/venvs/virtualenv/lib/python3.12/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 35, in install
  self._uninstall_previous_version()
File "/usr/local/py-utils/venvs/virtualenv/lib/python3.12/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 149, in _uninstall_previous_version
  existing_dist = next(paths, None)
                  ^^^^^^^^^^^^^^^^^
File "/usr/local/py-utils/venvs/virtualenv/lib/python3.12/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 148, in <genexpr>
  paths = (p for p in in_folders if p.stem.split("-")[0] == dist_name and p.suffix == ".dist-info" and p.is_dir())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/pathlib.py", line 1056, in iterdir
  for name in os.listdir(self):
              ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/codespace/.platformio/penv/lib/python3.12/site-packages'

created virtual environment CPython3.12.1.final.0-64 in 451ms
creator CPython3Posix(dest=/home/codespace/.platformio/penv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/codespace/.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
Requirement already satisfied: pip in /home/codespace/.platformio/penv/lib/python3.12/site-packages (24.3.1)
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core
Collecting platformio
Downloading platformio-6.1.16.tar.gz (239 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'

  at /home/codespace/.vscode-remote/extensions/platformio.platformio-ide-3.3.4-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5250
  at ChildProcess.i (/home/codespace/.vscode-remote/extensions/platformio.platformio-ide-3.3.4-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4548)
  at ChildProcess.emit (node:events:518:28)
  at ChildProcess.emit (node:domain:489:12)
  at maybeClose (node:internal/child_process:1104:16)
  at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
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