Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
start-life opened this issue May 26, 2024 · 5 comments
Open

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

start-life opened this issue May 26, 2024 · 5 comments

Comments

@start-life
Copy link

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

I used python maestro-ollama.py

@pking74
Copy link

pking74 commented May 26, 2024

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

@start-life
Copy link
Author

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

It has full permissions folder it still doesn't work

@3DTSUS
Copy link

3DTSUS commented Jun 10, 2024

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
Copy link

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

@wjvander
Copy link

wjvander commented Jul 1, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants