-
Notifications
You must be signed in to change notification settings - Fork 52
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
subprocess.CalledProcessError #221
Comments
Do you use antivirus tools? |
I have exactly the same problem with configuration: |
My problem solved. It is caused by a space in my username. Space is not allowed in the file path of python. |
I had no softwares installed like you mentioned, @ivankravets. VSCode 1.50.1 |
@ambarusa could you provide your output from VSCode's console? See my screenshot above. VSCode > Help > Developer tools > Console. |
I hope this is the error log you are interested in, for any additional info, contact me. |
Could you open your CMD terminal and type?
|
I get this response in admin mode too. |
I'm not familiar with Windows OS. I used it 15 years ago last time. What is the reason that you can't call Python from the shell and I can do this from my Windows VM box? Do you use any extra software that protects you? |
this command works, if I'm using python.exe from ...\AppData\Local\Programs\Python\Python39 I will come up with more information, after investigation. |
@ambarusa were you able to figure this out? I'm having the same issue, except I had PlatformIO working in August, and an update broke it. Reinstalling VS Code and installing old versions of PlatformIO still do not succeed. Deleting the .platformio cache between uninstall and reinstall also does not help. I do not have any antivirus other than Security Essentials. Disabling Security Essentials real-time protection does not allow for successful installation. |
Same issue here. Tried to disable anti-virus, remove Installing the core in |
It looks like an issue with a security policy that does not allow to run PlatformIO Core |
So some combination of uninstalling an old Python, installing a new python, and stopping a program I use called ActualWindowManager, followed by reinstalling VS Code, allowed PlatformIO Core to install. I've never had a problem with ActualWindowManager before, including installing previous versions of PlatformIO (I know I had it working in late August). I've gotta say, though, the sheer number of errors people are having points to this installation procedure being super brittle. The attitude of "we don't support having Conda installed" and "you must be doing something wrong" is also worrying. I realized this is freeware, but devs dismissing installation issues for something that is designed to be easy-to-use is pretty jarring. |
Couldn’t let this go, and wanted to help others… So, investigated further. |
Para poder solucionar el siguiente error de PlatformIO IDE 😎😎 3.- Lo que sigue es solo aplica en (WINDOWS): 4.- Ahora bien lo que se tiene que hacer es abrir la terminal y agregar los siguientes comandos En este momento se instalará el archivo que se requiere para poder utilizar Platformio en VS Nota: para que sepas en donde saqué la ubicación de los comandos que utilicé en el punto 4 Al final abrí nuevamente mi Visual y empezó a cargar Platformio y me quedó así |
Thank you...the first solution worked for me |
https://i.imgur.com/AVU0YH8.png |
Thank you! your first solution solved my problem! |
Step by step solution video (autor: Fernando Menduiña Ruiz): https://www.youtube.com/watch?v=k5HMEl6epG4&list=PLX5u2u9TqTHC5O0ZkMY3Pcac9l4Z90Naq |
Thank you to kmikze1988 for the solution, i install plateformeIO from microsoft store and now it's worked |
For me it was just that i had selected the wrong part of folder with vscodeYou must selected the second part tree structure not the first one
Envoyé depuis Yahoo Mail pour Android
Le dim., août 22, 2021 à 14:05, ***@***.***> a écrit:
None of these solutions works for me :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
For me the problem was spaces in my Windows 10 username. All I had to do was change my C:/Users/USERNAME from [FirstName LastName] to [FirstNameLastName]. The tutorial involves changing important settings and changing Windows registers, so make sure to follow the steps very carefully. |
@gerritvanderploeg the space should not be a problem. Could you email me at me@ikravets.com? I would like to get more internal information to reproduce this issue. Thanks! |
@gerritvanderploeg @ivankravets i can confirm that on my windows 11 machine this problem was solved by removing the space from my user folder. |
@JohSchillerEmnify what is your Windows 11 locale? Version? What was your previous username? I'll try to install Windows 11 in VM and reproduce this issue. |
So I need to change my username? That's amazing! |
Did you also have a space in the OS username? We have a test for this case and can’t reproduce on Win 10 VM. |
Excellent solution, #2 worked perfect, thank you ! |
Installing Python for All users (in C:\program file\python)) worked for me. |
Thank you, solution 2 + reinstalling python for all users seems have corrected this for me |
My solution was to uninstall python from the Microsoft Store and install pyhton via my web browser (this upgraded me from 3.9.something to 3.11.2). |
Hi Error: Traceback (most recent call last): File "C:\Users\Rocket Man.platformio.cache\tmp\get-platformio-1.1.2.py", line 69, in main() File "C:\Users\Rocket Man.platformio.cache\tmp\get-platformio-1.1.2.py", line 61, in main bootstrap() File "C:\Users\Rocket Man.platformio.cache\tmp\get-platformio-1.1.2.py", line 47, in bootstrap pioinstaller.main.main() File "C:\Users\Rocket Man.platformio.cache\tmp.piocore-installer-xzabddkr\tmpnv1t9any\pioinstaller.zip\pioinstaller_main_.py", line 133, in main File "C:\Users\Rocket Man.platformio.cache\tmp.piocore-installer-xzabddkr\tmpnv1t9any\pioinstaller.zip\click\core.py", line 1128, in call... In addition, I can not open the full error in the console |
I am unsubscribing from this thread but want to reply to the latest post. |
Thank you for your help, however moving folder io directly under C: didn't work. I had to manually download python from site, and then disable Python and Python3 in Aliases and then it finally worked for me. |
Error: Traceback (most recent call last): |
anyone has idea about that solution? |
*problem |
the problem is you have a space in your path name "....ASAD KHOSA....". did you see the solutions posted above on May 26, 2022 also on Jan 5 |
THANKS....... I make a child account, which was completely empty new space , when i logged in then i install it works for me.. |
I tested all the solutions provided, but unfortunately, no one worked for me. Still getting errors: Error: Traceback (most recent call last): File "C:.platformio.cache\tmp\get-platformio-1.2.1.py", line 71, in main() File "C:.platformio.cache\tmp\get-platformio-1.2.1.py", line 63, in main bootstrap() File "C:.platformio.cache\tmp\get-platformio-1.2.1.py", line 49, in bootstrap pioinstaller.main.main() File "C:.platformio.cache\tmp.piocore-installer-builde9w\tmp6epwuoe_\pioinstaller.zip\pioinstaller_main_.py", line 133, in main File "C:.platformio.cache\tmp.piocore-installer-builde9w\tmp6epwuoe_\pioinstaller.zip\click\core.py", line 1128, in call File "C:.platformio.cache\tmp.piocore-installer-builde9w\tmp6epwuoe_\pioinstal... |
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
Solution 2
.platformio
folder in the root ofC:
drive (OS drive).Solution 3
See example
Solution 4
%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
):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
The text was updated successfully, but these errors were encountered: