error in running main.py
notnick2 opened this issue · 1 comments
notnick2 commented
$ /bin/python /home/varun/auto/linkedin-post-automator/main.py
Traceback (most recent call last):
File "/home/varun/auto/linkedin-post-automator/main.py", line 2, in
from core.content_manager import ContentManager
File "/home/varun/auto/linkedin-post-automator/core/content_manager.py", line 2, in
from core.chatgpt import ChatGpt
File "/home/varun/auto/linkedin-post-automator/core/chatgpt.py", line 7, in
class IncompleteResponse(openai.error.OpenAIError):
^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error'
CRAKZOR commented
Issue with newer version of openai.
I use, openai == 0.27.8.
I'll update requirements.txt to fix this issue.
re-run "pip install -r requirements.txt" after "git pull"