Skip to content

subprocess.CalledProcessError #221

@reza21310

Description

@reza21310

Solutions

There are a few workarounds for this issue. Please try them from 1 to 3. If first does not work, then next, etc.

Solution 1

  1. Press Windows
  2. Start typing: App Execution Aliases
  3. Disable Python and Python3
  4. Restart VSCode.

Solution 2

  1. Create .platformio folder in the root of C: drive (OS drive).
  2. Restart VSCode.

Solution 3

  1. Install PlatformIO Core manually
  2. Restart VSCode.

See example

Screen Shot 2021-01-15 at 20 22 12

Solution 4

  1. Navigate to %USERHOME% folder in a File Explorer and RIGHT click on .platformio folder -> Properties. If your account name contains NON-ASCII chars, the .platformio folder will be located in the ROOT of your system drive (for example, C:\.platformio):

Screen Shot 2020-11-05 at 14 55 51

  1. Go to the “Security” tab and click on the “Advanced” option:

security-tab

  1. In the Advanced Security Settings window, check the option “Replace all child object permission entries with inheritable permission entries from this object“:

advanced-security

  1. Now, click on “Apply” and “OK” to save your changes. Close the Explorer and restart your computer. Check if you can access the files on the external drive.

P.S: Credits go to https://thegeekpage.com/fix-the-requested-operation-requires-elevation-error-740-in-windows-10/ (4 Step)


%23 Description of problem
Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.50.1
PIO IDE: v2.1.0
System: Windows_NT, 10.0.18362, x64

%23 Exception

Error: Traceback (most recent call last):
File "C:\Users\USER\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 69, in <module>
  main()
File "C:\Users\USER\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 61, in main
  bootstrap()
File "C:\Users\USER\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 47, in bootstrap
  pioinstaller.__main__.main()
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\pioinstaller\__main__.py", line 122, in main
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\core.py", line 829, in __call__
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\core.py", line 782, in main
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\core.py", line 1236, in invoke
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\core.py", line 1066, in invoke
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\core.py", line 610, in invoke
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\click\decorators.py", line 21, in new_func
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\pioinstaller\__main__.py", line 52, in cli
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\pioinstaller\core.py", line 72, in install_platformio_core
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\pioinstaller\penv.py", line 75, in create_core_penv
File "C:\Users\USER\.platformio\.cache\tmp\.piocore-installer-f3auf236\tmplh2w1f4h\pioinstaller.zip\pioinstaller\penv.py", line 144, in add_state_info
File "C:\Users\USER\.platformio\python3\lib\subprocess.py", line 411, in check_output
  **kwargs).stdout
File "C:\Users\USER\.platformio\python3\lib\subprocess.py", line 512, in run
  output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\Users\\USER\\.platformio\\penv\\Scripts\\python.exe', '-c', "import sys





Hi i get this error when installing PlatformIO 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions