WillReynolds5 / AutoGPT-Social

Autonomous Instagram bot which creates and optimizes posts to maximize engagement
MIT License
296 stars 51 forks source link

Cant use photos #10

Open Purple-Palm opened 1 year ago

Purple-Palm commented 1 year ago

It seems like the photos already used but I checked and nothing use it.

Here is a error message.

C:\Users\ciril\Desktop\AutoGPT-Social>python start_bot.py vectus.dc 20
Posting - vectus.dc
Traceback (most recent call last):
  File "C:\Users\ciril\Desktop\AutoGPT-Social\instagram_util\convert_jpg.py", line 13, in convert_to_jpg
    os.remove(input_file_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'accounts\\vectus.dc\\queue\\modern_design.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ciril\Desktop\AutoGPT-Social\start_bot.py", line 164, in <module>
    main_job(project_name, post_count)
  File "C:\Users\ciril\Desktop\AutoGPT-Social\start_bot.py", line 125, in main_job
    prompt, post_content, image_path = start_post(prompt, project_name)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ciril\Desktop\AutoGPT-Social\start_bot.py", line 38, in start_post
    image_path, description = get_image(project_name)
                              ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ciril\Desktop\AutoGPT-Social\start_bot.py", line 54, in get_image
    image_path = convert_to_jpg(os.path.join("accounts", project_name, "queue", image_fn))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ciril\Desktop\AutoGPT-Social\instagram_util\convert_jpg.py", line 17, in convert_to_jpg
    raise IOError(f"Error converting {input_file_path} to JPEG")
OSError: Error converting accounts\vectus.dc\queue\modern_design.jpg to JPEG

C:\Users\ciril\Desktop\AutoGPT-Social>