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

Closed
widmnd opened this issue Jan 19, 2025 · 1 comment
Closed

Installation Manager #3292

widmnd opened this issue Jan 19, 2025 · 1 comment

Comments

@widmnd
Copy link

widmnd commented Jan 19, 2025

%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.96.4
PIO IDE: v3.3.4
System: Windows_NT, 10.0.19043, x64

%23 Exception

Error: WARNING: There was an error checking the latest version of pip.
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
  status = _inner_run()
           ^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
  return self.run(options, args)
         ^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
  return func(self, options, args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\commands\install.py", line 325, in run
  session = self.get_default_session(options)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 76, in get_default_session
  self._session = self.enter_context(self._build_session(options))
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 95, in _build_session
  ssl_context = _create_truststore_ssl_context()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_internal\cli\index_command.py", line 40, in _create_truststore_ssl_context
  from pip._vendor import truststore
File "C:\Users\Sergio\.platformio\penv\Lib\site-packages\pip\_vendor\truststore\__init__.py", line 17, in <module>
  _sslobj = _ssl.create_default_context().wrap_bio(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sergio\.platformio\python3\Lib\ssl.py", line 775, in create_default_context
  context.load_default_certs(purpose)
File "C:\Users\Sergio\.platformio\python3\Lib\ssl.py", line 596, in load_default_certs
  self._load_windows_store_certs(storename, purpose)
File "C:\Users\Sergio\.platformio\python3\Lib\ssl.py", line 588, in _load_windows_store_certs
  self.load_verify_locations(cadata=certs)
ssl.SSLError: [X509V3: INVALID_CERTIFICATE] invalid certificate (_ssl.c:4035)
Error: Could not install PlatformIO Core: If you have antivirus/firewall/defender software in a system, try to disable it for a while.
Command '['C:\\Users\\Sergio\\.platformio\\penv\\Scripts\\python.exe', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 2.
-> Installer version: 1.2.2
Platform: Windows-10
Python version: 3.11.7 (tags/v3.11.7:fa7a6f2, Dec  4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]
Python path: C:\Users\Sergio\.platformio\python3\python.exe
Creating a virtual environment at C:\Users\Sergio\.platformio\penv
Updating Python package manager (PIP) in the virtual environment
Requirement already satisfied: pip in c:\users\sergio\.platformio\penv\lib\site-packages (23.2.1)
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl.metadata
Using cached pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
Using cached pip-24.3.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
  Found existing installation: pip 23.2.1
  Uninstalling pip-23.2.1:
    Successfully uninstalled pip-23.2.1
Successfully installed pip-24.3.1
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core

  at c:\Users\Sergio\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:5250
  at ChildProcess.i (c:\Users\Sergio\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-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 ChildProcess._handle.onexit (node:internal/child_process:304:5)
@widmnd widmnd closed this as completed Jan 24, 2025
@widmnd
Copy link
Author

widmnd commented Jan 24, 2025

Fixed installing plaformio outside vscode with the provided script and installed python.

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