Visual C++ runtime error with pioplus


#21

No, it still exists.


#22

I am having the same issue, i can;t use platformio bc it shows up the C++ runtime error. Any solution?


#23

Please provide an output from system Terminal cmd

echo %PATH%
echo %PYTHONPATH%
python --version
pip --version
pip list

#24

C:\Users\esmer>echo %PYTHONPATH%
%PYTHONPATH%

C:\Users\esmer>python --version
Python 3.6.2

C:\Users\esmer>pip --version
pip 9.0.1 from c:\users\esmer\appdata\local\programs\python\python36\lib\site-packages (python 3.6)

C:\Users\esmer>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.1)
setuptools (28.8.0)

This was the result from my cmd, if I got you right!


#25

Could you provide the same output from PlatformIO IDE Terminal?


#26

I can’t bc it gives me the Issue tab:
Uncaught Error: channel closed
events.js:160
Hide Stack Trace
Error: channel closed
at ChildProcess.target.send (internal/child_process.js:548:16)
at Task.module.exports.Task.send (C:\ProgramData\esmer\atom\app-1.19.4\resources\app\src\task.js:113:33)
at PlatformIOTerminalView.module.exports.PlatformIOTerminalView.input (file:///C:/Users/esmer/.atom/packages/platformio-ide-terminal/lib/view.coffee:266:17)
at Terminal. (file:///C:/Users/esmer/.atom/packages/platformio-ide-terminal/lib/view.coffee:144:8)
at Terminal.EventEmitter.emit (C:\Users\esmer.atom\packages\platformio-ide-terminal\node_modules\term.js\src\term.js:109:12)
at Terminal.handler (C:\Users\esmer.atom\packages\platformio-ide-terminal\node_modules\term.js\src\term.js:3493:8)
at Terminal.keyDown (C:\Users\esmer.atom\packages\platformio-ide-terminal\node_modules\term.js\src\term.js:3196:8)
at HTMLDocument. (C:\Users\esmer.atom\packages


#27

Please open PlatformIO IDE Terminal and type pio upgrade. Now, it should work with 3.5.0a9.


#28

Exactly same bug.

@ivankravets,
where I can get 3.5.0a9?

d:\>pio upgrade
You're up-to-date!
PlatformIO 3.4.1 is currently the newest version available.

#29

http://docs.platformio.org/en/latest/installation.html#development-version


#30

I have this same issue, I am at the latest version 3.5.0a16.

I have tried removing Python 2.7.14 from my system path and also Python 36-32 from my user variables path. After this there was no python version number from sys terminal but the problem persisted. pip was also upgraded in the atom terminal to latest version.


#31

I reported the same issue with VS Code running on win7.

“I have deleted the PIO extension from from VSC, deleted VSC and manually removed the leftovers from both and reloaded several times. I have also reloaded PHYTHON27 (32bit) a couple of times. BTW PYTHON27 64bit doesn’t work at all, PIO doesn’t recognize it.
In summary, my code builds and loads correctly. Starting the ‘PIO Home’ causes the runtime error. The path to ‘pio’ doesn’t get set for terminal.”


#32

Could you uninstall all Pythons from system, remove %HOME_DIR%/.platformio/penv and restart VSCode?


#33

I’m on Win7 and have the same problems.
PlatfomIO Home will not causing the error.

Removing Python is not an option!
I need Python for other apps on my system.

My version is “Python 2.7.10”, according to http://docs.platformio.org/en/latest/installation.html#system-requirements this should work.


#34

Why does the IDE always install Core 3.5.0a16 no matter whether I check use development version or or.
I thought the latest stable version is 3.4.1.
I would expect to see this version if I uncheck development version.
Thanks


#35

Currently, all our IDEs depend on PIO Core 3.5 which has not been released yet. We use it for PIO Home.

PIO Core 3.5 is planned for release next week.


#36

Still having this problem. Any suggestions?

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>echo %PATH%
C:\home.platformio\penv\Scripts;C:\home.platformio\penv;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;%CommonProgramFiles%\Microsoft Shared\Windows Live;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\Microsoft Network Monitor 3;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft SQL
Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program
Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Cadence\SPB_17.2\tools\pcb\bin;C:\Cadence\SPB_17.2\tools\bin;C:\Cadence\SPB_17.2\tools\libutil\bin;C:\Cadence\SPB_17.2\tools\fet\bin;C:\Cadence\SPB_17.2\tools\pspice;C:\Cadence\SPB_17.2\tools\pspice\library;C:\Cadence\SPB_17.2\tools\capture;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Perl64AS_5.20.3\site\bin;C:\Perl64AS_5.20.3\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;c:\utils;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\ImageMagick-6.9.0-Q8;C:\Program Files (x86)\Microchip\xc8\v1.12\bin;C:\Tcl\bin;C:\Program Files (x86)\Intel\Services\IPT;C:\Program Files (x86)\QuickTime\QTSystem;C:\Ch\bin;%USERPROFILE%.dnx\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\OpenVPN\bin;C:\Program Files\Mozart\bin;C:\Program Files\LLVM\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs;C:\windows;C:\modeltech_pe_10.6c\win32pe;C:\Program Files (x86)\Midnight Commander;C:\Users\Paul Urbanus\AppData\Local\atom\bin;C:\Users\Paul Urbanus\AppData\Roaming\npm;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;%CommonProgramFiles%\Microsoft
Shared\Windows Live;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\Microsoft Network Monitor 3;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Cadence\SPB_17.2\tools\pcb\bin;C:\Cadence\SPB_17.2\tools\bin;C:\Cadence\SPB_17.2\tools\libutil\bin;C:\Cadence\SPB_17.2\tools\fet\bin;C:\Cadence\SPB_17.2\tools\pspice;C:\Cadence\SPB_17.2\tools\pspice\library;C:\Cadence\SPB_17.2\tools\capture;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Perl64AS_5.20.3\site\bin;C:\Perl64AS_5.20.3\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;c:\utils;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\ImageMagick-6.9.0-Q8;C:\Program Files (x86)\Microchip\xc8\v1.12\bin;C:\Tcl\bin;C:\Program Files (x86)\Intel\Services\IPT;C:\Program Files (x86)\QuickTime\QTSystem;C:\Ch\bin;%USERPROFILE%.dnx\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\OpenVPN\bin;C:\Program Files\Mozart\bin;C:\Program Files\LLVM\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs;C:\windows;C:\modeltech_pe_10.6c\win32pe;C:\Program Files (x86)\Midnight Commander;C:\Users\Paul Urbanus\AppData\Local\atom\bin;C:\Users\Paul
Urbanus\AppData\Roaming\npm

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>echo %PYTHONPATH%
%PYTHONPATH%

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>python --version
Python 2.7.10

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>pip --version
pip 10.0.1 from c:\home.platformio\penv\lib\site-packages\pip (python 2.7)

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>pip list
Package Version


bottle 0.12.13
certifi 2018.4.16
chardet 3.0.4
click 5.1
colorama 0.3.9
idna 2.6
lockfile 0.12.2
pip 10.0.1
platformio 3.6.0a6
pyserial 3.4
requests 2.18.4
semantic-version 2.6.0
setuptools 39.0.1
urllib3 1.22
wheel 0.31.0

C:\home\Documents\PlatformIO\Projects\180423-164835-espidf-ble-adv>python -c “import sys; print(sys.executab
le)”
C:\home.platformio\penv\Scripts\python.exe


#37

Please provide this output using cmd.exe outside IDE and PIO IDE Terminal.


#38

Sorry, I somehow completely missed your prompt response. Per your request, the following commands were issued from a standalone cmd.exe instance (i.e. not from within IDE or PIO IDE terminal

C:\Users\foo>echo %path%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:
windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Fil
es\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Microsoft S
QL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;
c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\Microsoft N
etwork Monitor 3;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program
Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x8
6)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\12
0\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\Managem
entStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program
Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Cadence
SPB_17.2\tools\pcb\bin;C:\Cadence\SPB_17.2\tools\bin;C:\Cadence\SPB_17.2\tools\l
ibutil\bin;C:\Cadence\SPB_17.2\tools\fet\bin;C:\Cadence\SPB_17.2\tools\pspice;C:
\Cadence\SPB_17.2\tools\pspice\library;C:\Cadence\SPB_17.2\tools\capture;C:\Prog
ram Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Perl64AS_5.20
.3\site\bin;C:\Perl64AS_5.20.3\bin;C:\Program Files (x86)\NVIDIA Corporation\Phy
sX\Common;c:\utils;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\ImageMag
ick-6.9.0-Q8;C:\Program Files (x86)\Microchip\xc8\v1.12\bin;C:\Tcl\bin;C:\Progra
m Files (x86)\Intel\Services\IPT;C:\Program Files (x86)\QuickTime\QTSystem;C:
Ch\bin;C:\windows\system32\config\systemprofile.dnx\bin;C:\Program Files\Tortoi
seSVN\bin;C:\Program Files\OpenVPN\bin;C:\Program Files\Mozart\bin;C:\Program Fi
les\LLVM\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs;C:\window
s;C:\modeltech_pe_10.6c\win32pe;C:\Program Files (x86)\Midnight Commander;C:\Use
rs\Paul Urbanus\AppData\Local\atom\bin;C:\Users\Paul Urbanus\AppData\Roaming\npm

The same as above, but with a batch script that outputs 1 path element per line
C:\Program Files (x86)\Common Files\Oracle\Java\javapath
C:\windows\system32
C:\windows\System32\Wbem
C:\windows\System32\WindowsPowerShell\v1.0
C:\Program Files\Common Files\Microsoft Shared\Windows Live
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn
c:\Program Files\Microsoft SQL Server\100\Tools\Binn
c:\Program Files\Microsoft SQL Server\100\DTS\Binn
C:\Program Files\Microsoft Network Monitor 3
C:\Program Files\Microsoft SQL Server\120\DTS\Binn
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn
C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn
C:\Program Files\Microsoft SQL Server\120\Tools\Binn
C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio
C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn
C:\Program Files\Microsoft DNX\Dnvm
C:\Program Files\Microsoft SQL Server\130\Tools\Binn
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit
C:\Cadence\SPB_17.2\tools\pcb\bin
C:\Cadence\SPB_17.2\tools\bin
C:\Cadence\SPB_17.2\tools\libutil\bin
C:\Cadence\SPB_17.2\tools\fet\bin
C:\Cadence\SPB_17.2\tools\pspice
C:\Cadence\SPB_17.2\tools\pspice\library
C:\Cadence\SPB_17.2\tools\capture
C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64
C:\Perl64AS_5.20.3\site\bin
C:\Perl64AS_5.20.3\bin
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
c:\utils
C:\ProgramData\Oracle\Java\javapath
C:\Program Files\ImageMagick-6.9.0-Q8
C:\Program Files (x86)\Microchip\xc8\v1.12\bin
C:\Tcl\bin
C:\Program Files (x86)\Intel\Services\IPT
C:\Program Files (x86)\QuickTime\QTSystem
C:\Ch\bin
C:\windows\system32\config\systemprofile.dnx\bin
C:\Program Files\TortoiseSVN\bin
C:\Program Files\OpenVPN\bin
C:\Program Files\Mozart\bin
C:\Program Files\LLVM\bin
C:\Program Files\TortoiseGit\bin
C:\Program Files\nodejs
C:\windows
C:\modeltech_pe_10.6c\win32pe
C:\Program Files (x86)\Midnight Commander
C:\Users\Paul Urbanus\AppData\Local\atom\bin
C:\Users\Paul Urbanus\AppData\Roaming\npm

C:\Users\Paul Urbanus>echo %PYTHONPATH%
%PYTHONPATH%

C:\Users\Paul Urbanus>python --version
‘python’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Paul Urbanus>pip --version
‘pip’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Paul Urbanus>pip list
‘pip’ is not recognized as an internal or external command,
operable program or batch file.

I’m reluctant to uninstall all of my python installations as recommended in a different thread, as I have multiple python versions installed, each with multiple packages/modules.


#39

Thank you so much that provided debug session! The issue is already fixed in the latest release of our IDE.

If someone has this issue:

  1. Please navigate to Windows > Control Center > Programs and remove all installed Pythons
  2. Remove C:|Users\***\.platformio folder
  3. Restart IDE.