f5cwu
October 20, 2020, 8:43am
1
Good morning,
I fight since 2 days while trying to install the Plaformio IDE extension on VScode.
Each time I have the same error message. I made the similar action on a virtual machine without any problem but on my main pc, I can’t install the extension. I tried to install python (last version), uninstall previous python version, remove everything, re-installl VScode. It is only working with old version 1 of PlatformIO but as soon as I try to update to a newer version (2.1.3), the error message appears.
Probably it is not a big problem but I do not have anymore idea. Thanks in advance for your help and advices.
Flo
Configuration:
Version: 1.50.1 (user setup)
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T15:06:15.712Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
The error message is the following:
Error: Traceback (most recent call last):
File “C:\Users\Flo I7.platformio.cache\tmp\get-platformio-0.3.5.py”, line 69, in
main()
File “C:\Users\Flo I7.platformio.cache\tmp\get-platformio-0.3.5.py”, line 61, in main
bootstrap()
File “C:\Users\Flo I7.platformio.cache\tmp\get-platformio-0.3.5.py”, line 47, in bootstrap
pioinstaller.main .main()
File “C:\Users\Flo I7.platformio.cache\tmp.piocore-installer-8suqmgq5\tmp8g144ouq\pioinstaller.zip\pioinstaller_main _.py”, line 122, in main
File “C:\Users\Flo I7.platformio.cache\tmp.piocore-installer-8suqmgq5\tmp8g144ouq\pioinstaller.zip\click\core.py”, line 829, in call
File "C:\Users\Fl…
Python 3.9 is not supported yet if you’ve installed that (Python 3.9 is not supported · Issue #3700 · platformio/platformio-core · GitHub ). Resolved per link…
Sadly that’s cut off. Can you go to Help → Toggle Developer Tools → Console and search for the full backtrace?
f5cwu
October 20, 2020, 12:41pm
3
thanks for the reply. It was python 3.8. I just tried with 3.7 but same problem.
Thanks in advance for sharing any advices.
Here is the complete report (from the console)
[Extension Host] runCommand C:\Users\Flo I7\.platformio\python3\python.exe Array(2) Object
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\.platformio\python3\python.exe Array(9) Object
workbench.desktop.main.js:287 [Extension Host] Error: Error: Compatible PlatformIO Core not found.
Reason: PlatformIO executable not found in `C:\Users\Flo I7\.platformio\penv\Scripts`
at c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:879089 at ChildProcess.c (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:878983) at ChildProcess.emit (events.js:223:5) at ChildProcess.cp.emit (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:223:5) at Pipe.<anonymous> (net.js:664:12)
t.log @ workbench.desktop.main.js:287
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\.platformio\python3\python.exe Array(2) Object
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\.platformio\python3\python.exe Array(2) Object
workbench.desktop.main.js:3081 Error: Traceback (most recent call last): File "C:\Users\Flo I7\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 69, in <module> main() File "C:\Users\Flo I7\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 61, in main bootstrap() File "C:\Users\Flo I7\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 47, in bootstrap pioinstaller.__main__.main() File "C:\Users\Flo I7\.platformio\.cache\tmp\.piocore-installer-aarlcgow\tmpcevjp4ik\pioinstaller.zip\pioinstaller\__main__.py", line 122, in main File "C:\Users\Flo I7\.platformio\.cache\tmp\.piocore-installer-aarlcgow\tmpcevjp4ik\pioinstaller.zip\click\core.py", line 829, in __call__ File "C:\Users\Fl...
onDidChangeNotification @ workbench.desktop.main.js:3081
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\.platformio\python3\python.exe (2) ["-c", "import sys;assert sys.version_info >= (2, 7);print…mver(__version__) in semantic_version.Spec(">=5")"] {}
workbench.desktop.main.js:287 [Extension Host] C:\Users\Flo I7\.platformio\python3\python.exe Error: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'semantic_version'
-> C:\Users\Flo I7\.platformio\python3\python.exe
at c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:879089
at ChildProcess.c (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:878983)
at ChildProcess.emit (events.js:223:5)
at ChildProcess.cp.emit (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
t.log @ workbench.desktop.main.js:287
$logExtensionHostMessage @ workbench.desktop.main.js:4592
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\AppData\Local\Microsoft\WindowsApps\python.exe (2) ["-c", "import sys;assert sys.version_info >= (2, 7);print…mver(__version__) in semantic_version.Spec(">=5")"] {}
workbench.desktop.main.js:287 [Extension Host] C:\Users\Flo I7\AppData\Local\Microsoft\WindowsApps\python.exe Error: C:\Users\Flo: can't open file 'I7\AppData\Local\Microsoft\WindowsApps\python.exe': [Errno 2] No such file or directory
at c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:879089
at ChildProcess.c (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:878983)
at ChildProcess.emit (events.js:223:5)
at ChildProcess.cp.emit (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
t.log @ workbench.desktop.main.js:287
$logExtensionHostMessage @ workbench.desktop.main.js:4592
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:287 [Extension Host] runCommand C:\Users\Flo I7\AppData\Local\Microsoft\WindowsApps\python.exe (2) ["-c", "import sys;assert sys.version_info >= (2, 7);print…mver(__version__) in semantic_version.Spec(">=5")"] {}
workbench.desktop.main.js:287 [Extension Host] C:\Users\Flo I7\AppData\Local\Microsoft\WindowsApps\python.exe Error: C:\Users\Flo: can't open file 'I7\AppData\Local\Microsoft\WindowsApps\python.exe': [Errno 2] No such file or directory
at c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:879089
at ChildProcess.c (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:878983)
at ChildProcess.emit (events.js:223:5)
at ChildProcess.cp.emit (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
t.log @ workbench.desktop.main.js:287
$logExtensionHostMessage @ workbench.desktop.main.js:4592
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:287 [Extension Host] rejected promise not handled within 1 second: Error: PlatformIO Core is not installed
t.log @ workbench.desktop.main.js:287
$logExtensionHostMessage @ workbench.desktop.main.js:4592
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:287 [Extension Host] stack trace: Error: PlatformIO Core is not installed at l (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:3271) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async e.runPIOCommand (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:1590)
t.log @ workbench.desktop.main.js:287
$logExtensionHostMessage @ workbench.desktop.main.js:4592
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:4640 [[object Object]]PlatformIO Core is not installed
$onExtensionRuntimeError @ workbench.desktop.main.js:4640
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
workbench.desktop.main.js:4641 Error: PlatformIO Core is not installed
at l (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:3271)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async e.runPIOCommand (c:\Users\Flo I7\.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:1590)
$onExtensionRuntimeError @ workbench.desktop.main.js:4641
_doInvokeHandler @ workbench.desktop.main.js:4599
_invokeHandler @ workbench.desktop.main.js:4598
_receiveRequest @ workbench.desktop.main.js:4597
_receiveOneMessage @ workbench.desktop.main.js:4596
(anonymous) @ workbench.desktop.main.js:4594
fire @ workbench.desktop.main.js:98
fire @ workbench.desktop.main.js:454
_receiveMessage @ workbench.desktop.main.js:459
(anonymous) @ workbench.desktop.main.js:456
fire @ workbench.desktop.main.js:98
acceptChunk @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:451
t @ workbench.desktop.main.js:461
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
f5cwu:
workbench.desktop.main.js:287 [Extension Host] C:\Users\Flo I7\.platformio\python3\python.exe Error: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'semantic_version'
Weird. Can you open a command terminal (Windows + R → cmd.exe
) and execute
python -m pip install semantic-version
, then re-open VSCode to see if that goes through? Seems like it’s missing that python module.
f5cwu
October 21, 2020, 11:13am
5
I’m sorry, it did not fixed the problem. I’ve been able to remore the problem about semantic python but still error messages. The error message says that “PlatformIO executable not found”.
Any idea about that ?
Error: Error: Compatible PlatformIO Core not found.
Reason: PlatformIO executable not found in C:\Users\Flo I7\.platformio\penv\Scripts
at c:\Users\Flo I7.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:879089
at ChildProcess.c (c:\Users\Flo I7.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\platformio-node-helpers\dist\index.js:1:878983)
at ChildProcess.emit (events.js:223:5)
at ChildProcess.cp.emit (c:\Users\Flo I7.vscode\extensions\platformio.platformio-ide-2.1.3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:223:5)
at Pipe. (net.js:664:12)
Weird. Please do the following:
Remove the PlatformIO extension from VSCode
Remove the entire C:\Users\Flo I7\.platformio\
folder. [PlatformIO is now fully uninstalled]
[I assume you have Python 3.x installed and available in your command shell]
Follow the installation routine for the CLI (aka, download installer script to some local folder, cd
into that folder, then execute python get-platformio.py
)
report any errors which happen during installation, if any…
if that goes through, re-install the PIO VSCode plugin.
Does “FloI7” have a space in it? It looks like it might given where the lines are being split on my phone screen.
That will stop things working.
Cheers,
Norm.
f5cwu
October 21, 2020, 8:15pm
8
Max and Norman,
thanks a lot for sharing advices with me. I finally solved the problem by changing the user name on my computer from Flo I7 to FloI7 (removing the space). The PIO has been installed without any error.
I’m now fixing all other programs that did not appreciate that change but will be ok. I was far to imagine that a space in the Username could cause this kind of trouble.
Thanks a lot for your patience and kindness.
Flo
1 Like
@maxgerhardt I’m not a Python programmer. Would it be the case that whatever code is running should be wrapped in quotes – to avoid the “spaces in the path” problem? Is this something that works in Python, do you know?
Cheers,
Norm.
Spaces in a path causing problems should be old news, these bugs were solved long ago… Not sure if, how or when this resurfaced. The success might be a side effect of the clean uninstall? Should probably be tested on a clean Win10 system woth a space in the userpath, Python 3.8 and the latest VSCode. Maybe @ivankravets can investigate this.
1 Like
It was the cause of the Marlin Auto not working on another thread. The OP created a new, non-space, account and it worked.
thanks for that tip and indeed spaces between a username mess it up
what i did i created a new useraccount on windows10 without spaces
then platformIO IDE installed normal in vscode however building the marlin file is still an issue getting this error:platformio : The term ‘platformio’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
and a other thing…
Seems quite “common” at the moment.
Cheers,
Norm.
sebby49
October 23, 2020, 6:52pm
12
for everybody with a basic ender3 with upgraded mainboard v427 and BLtouch v3 i posted a repost at github
where it works for my machine
sebby49
October 23, 2020, 7:06pm
14
oops guess i did something wrong lol ill fix
sebby49
October 23, 2020, 7:19pm
15
fixed i think please check :))
Yes, the Marlin extension for VSCode fixed this.