CubeCell-Arduino icon indicating copy to clipboard operation
CubeCell-Arduino copied to clipboard

Compiling error because of my Windows username

Open SamuelHelbling opened this issue 5 years ago • 8 comments

I got the following error: exec: "C:\\Users\\.....": file does not exist Error compiling for board CubeCell-Board.

I tracked down this error to my Windows username, which contains a space. I tried my code on an other userprofile on my computer and it worked perfectly.

Please fix this. thx

SamuelHelbling avatar Mar 17 '20 22:03 SamuelHelbling

Indeed I don't know how to fix this problem...

Heltec-Aaron-Lee avatar Apr 09 '20 04:04 Heltec-Aaron-Lee

can you please test the github version with a username that has spaces? i might have fixed that in https://github.com/HelTecAutomation/ASR650x-Arduino/commit/9aa19bc54481f11bd8c5c3d0820e784c73f7a54e

wasn-eu avatar May 07 '20 20:05 wasn-eu

Still getting an error:

Arduino: 1.8.12 (Windows 10), Board: "CubeCell-Board, REGION_AS923, CLASS_A, OTAA, ON, CONFIRMED, OFF, ON, ACTIVE, None"

'C:\Users\firstname' is not recognized as an internal or external command,

operable program or batch file.

[14644] Failed to execute script CubeCellelftool

Traceback (most recent call last):

File "CubeCellelftool.py", line 3, in

File "elftool.py", line 26, in elftool.main

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\firstname~1\AppData\Local\Temp\arduino_build_13677/ADC.ino.hex'

exit status -1 Fehler beim Kompilieren für das Board CubeCell-Board.

SamuelHelbling avatar May 08 '20 06:05 SamuelHelbling

there cant be more done in the platform.txt files. now its time to look in the CubeCellftool but i dont have the sources to take a deeper look.

wasn-eu avatar May 08 '20 17:05 wasn-eu

Same problem here.

Dtrieb avatar Sep 09 '20 18:09 Dtrieb

Same problem here.

As commented on first post, if you code on another userprofile (without spaces) It will work perfectly.

I was getting the same error as well until I found the solution.

Hope this could be fixed somehow. I've checked few users have suffered already this problem.

alexcorvis84 avatar Sep 30 '20 22:09 alexcorvis84

Same problem here :/

ShadowLp174 avatar Feb 01 '22 20:02 ShadowLp174

Hey all, I've got a working workaround for the problem which doesn't require changing your username or modifying the registry.

  1. Create a Symlink in the C:\Users folder for your username, which doesn't contain whitespaces.
  2. Locate your platform.txt file. It is usually installed in C:\Users<YourUsername>\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino
  3. Copy the folder path with symlink. For example: C:\Users<YourSymlink>\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino
  4. Open the platform.txt file with your favourite text editor. It should have search and replace (Editor should work)
  5. Hit Ctrl+F
  6. In the "search" field insert {runtime.platform.path} and in the "replace" field insert your symlink runtime path (for example: C:\Users<YourSymlink>\Documents\Arduino\hardware\CubeCell\ASR650x-Arduino)
  7. Hit "replace all"

The compiler should stop failing and the upload to the CubeCell board should work perfectly! This is a local fix which means, that it'll be probably changed after every update, so make sure to redo this procedure every time. Have fun!

ShadowLp174 avatar Feb 02 '22 15:02 ShadowLp174