VSCode: 1.50.1
PIO IDE: v2.1.3
System: Windows_NT, 10.0.19041, x64
%23 Exception
Error: Traceback (most recent call last):
File "C:\Users\bas van swelm\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 69, in <module>
main()
File "C:\Users\bas van swelm\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 61, in main
bootstrap()
File "C:\Users\bas van swelm\.platformio\.cache\tmp\get-platformio-0.3.5.py", line 47, in bootstrap
pioinstaller.__main__.main()
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\pioinstaller\__main__.py", line 122, in main
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\core.py", line 829, in __call__
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\core.py", line 782, in main
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\core.py", line 1236, in invoke
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\core.py", line 1066, in invoke
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\core.py", line 610, in invoke
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\click\decorators.py", line 21, in new_func
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\pioinstaller\__main__.py", line 52, in cli
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\pioinstaller\core.py", line 72, in install_platformio_core
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\pioinstaller\penv.py", line 75, in create_core_penv
File "C:\Users\bas van swelm\.platformio\.cache\tmp\.piocore-installer-4g_zhg3o\tmpy9dtcyfi\pioinstaller.zip\pioinstaller\penv.py", line 144, in add_state_info
File "C:\Users\bas van swelm\.platformio\python3\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\bas van swelm\.platformio\python3\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\Users\\bas van swelm\\.platformio\\penv\\Scripts\\python.exe', '-c', "import sys
SO THESE ARE THE ERRORS I GET ANY IDEA’S?
PS C:\Users\bas van swelm\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x> platformio run -e STM32F103RET6_creality
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.
At line:1 char:1
I’m on Linux, username norman. So, bear that in mind please, I’m not a Windows guru.
I would create a `marlin user and use that for my Marlin stuff. You might be able to map a network drive, say Z:\ to your current user’s home folder? But I’m not sure. You would load the Marlin project from there.
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 i did is copy and pasted the platformio folder and the vscode folder from the new useraccount to the old useraccount on windows 10 and now pio home works there aswel
I suspected this. Auto Marlin installs PlatformIO IDE, but actually calls the PlatformIO CLI commands, or at least, that’s what the code appears to do.
You probably need to shut down VSCode and follow the instructions for Windows here: Redirecting... to make the IDE commands available in terminal/command shell sessions.
Basically, you need to append C:\Users\UserName\.platformio\penv\Scripts to your system path. Where “userName” is your no-spaces account name.
marlin-2.0.x\marlin\configuration_adv.h:1054:19: error: #if with no expression ,so now i get this everytime and i don’t know what to look for or what to change ??
Look in the file mentioned, and paste here a few lines before and after line 1054.
I suspect it looks like #if SOMETHING but SOMETHING is defined as nothing or is missing. This file is one of the config files, so is liable for editing mishaps.
nvm i think there was one space to many and it succesfully build but it puts out a hex file and from what i understand it needs to be a bin file? for use to upload on the sd card
Sorry, I don’t have a 3D printer (yet) so, I’m afraid you’ll have to check the Marlin instructions. Normally, after a build, the next step wiuld be either “program” to upload with a ICSP device, or “upload” to use a bootloader.
I don’t know if the Ender has a bootloader? Teaching Tech on You Tube shows how to install one, if needed, and has a recent video on using Marlin Auto. Might be worth taking a look?
The hex file should be there though? Is it not? There will be a .pio\build folder in the project folder. In there somewhere will be an elf file, a hex file and a bin file. You might have an eep as well.
yeah i figured it out now it makes a binair file once the build is succes ,now it works although i still need to edit some settings with that BLtouch but the more i look into it the more i understand ,but for now i took a break else i get square eyes hahah