WillReynolds5/AutoGPT-Social

Image posted but gives this error

Opened this issue · 1 comments

first image posted on Instagram but prompt not saved into text file and posted image not moved to archive. gives following message. OS: windows 10
image

Add encoding='utf-8' when writing and reading prompt.txt like this:
with open(f"accounts/{project_name}/prompt.txt", "w", encoding='utf-8') as f:
Find all occurences (3 in main_job() as I remember.)
It crashes because of emojis used in prompts. 'utf-8' solved the problem for me.