Newbee needs help with an error at compilation in the sourcecode of artillery_ruby-board

Hi Guyz,

i downloaded the Source-Code of the Sidewinder X2 Printer at the Artillery-Site and when i tried to compile it VSCode with PlatformIO, the Autobuilder puted an Error out.

This ist the Error I get:

platformio run -e ARTILLERY_RUBY Processing ARTILLERY_RUBY (platform: ststm32@~12.1; board: Artillery_Ruby; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
AssertionError: :
  File "/home/a9/.platformio/penv/lib/python3.7/site-packages/platformio/builder/main.py", line 178:
    env.SConscript(item, exports="env")
  File "/home/a9/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/a9/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Script/SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/a9/Downloads/sidewinder-x2-firmware-main/buildroot/share/PlatformIO/scripts/generic_create_variant.py", line 52:
    assert os.path.isdir(source_dir)
============================================================================ [FAILED] Took 0.51 seconds ============================================================================

Environment     Status    Duration
--------------  --------  ------------
ARTILLERY_RUBY  FAILED    00:00:00.511
======================================================================= 1 failed, 0 succeeded in 00:00:00.511 =======================================================================

for you.

My question is what is this Error meaning to me and how can I solve that?

Greetz

c-b51**

Per

it’s making sure that the Arduino variant folder exists within Marlin it a certain path before copying it in the folder.

The fact that you get an error is an indiciation that the folder does not have the expected name or doesn’t exist at all.

You mean GitHub - artillery3d/sidewinder-x2-firmware?

Per

It references the Artillery_Ruby board defined in

And so due to the variant field having that value it will look for that name in

…but you can see that they screwed up here and have named the folder ARTILLERY_RUBY instead of what they claim the folder is in board’s JSON, Artillery_Ruby. This only works on Windows with a case-insensitive file-name, but not your Linux system (or on a Mac). They screwed up.

You can fix their screwup by going into the board definition file (/buildroot/share/PlatformIO/boards/Artillery_Ruby.json) and change the value of the variant attribute to the real folder name, that is, ARTILLERY_RUBY. It should then allow you to build.

PR Fix variant name for Artillery_Ruby board by maxgerhardt · Pull Request #3 · artillery3d/sidewinder-x2-firmware · GitHub is open in response to that.

but the folders and files exist.

Please give me the output of a ls -l buildroot/share/PlatformIO/variants in the directory of the of the Marlin download folder :wink:

insgesamt 88
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 ARTILLERY_RUBY
drwxr-xr-x 5 a9 a9 4096 Sep 13 03:33 MARLIN_ARCHIM
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BIGTREE_BTT002
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BIGTREE_E3_RRF
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BIGTREE_GTR_V1
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BIGTREE_OCTOPUS_V1
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BIGTREE_SKR_PRO_11
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_BTT_SKR_SE_BX
drwxr-xr-x 5 a9 a9 4096 Sep 13 03:33 marlin_CHITU_F103
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F103Rx
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F103Vx
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F103Zx
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F407VE
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F446VE
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_F4x7Vx
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_FLY_F407ZG
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_FYSETC_CHEETAH_V20
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_FYSETC_S6
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_LERDGE
drwxr-xr-x 5 a9 a9 4096 Sep 13 03:33 marlin_MEEB_3DP
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_MEGA_EXTENDED
drwxr-xr-x 2 a9 a9 4096 Sep 13 03:33 MARLIN_STEVAL_F401VE

here is the output.

Exactly, the folder is called ARTILLERY_RUBY, but it’s expecting Artillery_Ruby due to the Artillery_Ruby.json file I mentioned above.

Modify the Artillery_Ruby.json to use the correct ARTILLERY_RUBY folder as variant, just as I said above, and your error shall be resolved.

it works. thanks. :grinning: yuhuuu.