...
File "/home/dcd/git/StemmaG0-Template/venv/lib/python3.11/site-packages/embedded/compiler.py", line 37, in compile
await build.run_command([self.c_compiler, *cpu_flags, "-MMD", "-c", source_file, *flags, "-o", output_file], description=f"Compile {source_file.relative_to(cwd)} -> {output_file.relative_to(cwd)}", working_directory=caller_directory)
File "/home/dcd/git/StemmaG0-Template/venv/lib/python3.11/site-packages/embedded/build/__init__.py", line 47, in run_command
part = part.relative_to(working_directory, walk_up=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@capture_caller_directory
async def run_command(command, description=None, caller_directory=None, working_directory=None):
if working_directory is None:
working_directory = caller_directory
if isinstance(command, list):
for i, part in enumerate(command):
if isinstance(part, pathlib.Path):
part = part.relative_to(working_directory, walk_up=True)
# if isinstance(part, list):
command[i] = str(part)
command = " ".join(command)
Note: the error does not happen when compiling and running with
When running python 3.11
running
python build.py
I getNote: the error does not happen when compiling and running with