Open start-life opened 6 months ago
I would check the folder your in and make it writable to everyone.
הייתי בודק בתיקייה שבה אתה נמצא והופך אותה לכתיבה לכולם.
It has full permissions folder it still doesn't work
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.
@3DTSUS .... thanks for this. It worked.
@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.
At the end of the operation there is no code file the project folder is empty
I used python maestro-ollama.py