Doriandarko / maestro

A framework for Claude Opus to intelligently orchestrate subagents.
4.17k stars 651 forks source link

Error: There is no file in the output folder #44

Open start-life opened 6 months ago

start-life commented 6 months ago

At the end of the operation there is no code file the project folder is empty

I used python maestro-ollama.py

pking74 commented 6 months ago

I would check the folder your in and make it writable to everyone.

start-life commented 6 months ago

הייתי בודק בתיקייה שבה אתה נמצא והופך אותה לכתיבה לכולם.

It has full permissions folder it still doesn't work

3DTSUS commented 5 months ago

Change this line of code:

code_content = next((code for file, code in code_blocks if file == key), None)

to

code_content = next((code for file, code in code_blocks if os.path.basename(file) == key), None)

Essentially I had the same issue and was able to fix it because it's looking for a code block where the base name of the file (i.e., the file name without the directory path) matches the key instead of looking for a code block where the file name exactly matches the key.

peterson-umoke commented 5 months ago

@3DTSUS .... thanks for this. It worked.

wjvander commented 5 months ago

@3DTSUS Thank you. That was one part of the problem for me. The other part was that the refined_output produced didn't include the required Filename: for each code block thus the regex didn't extract the generated code blocks so no files were written. I personally solved this by adjusting the instruction given to the model for the desired output.