This script has been running fine for weeks and then today I get this error. I am using openai==1.3.8
File “/Users/jm/jmautogpt/create_mpn_email/chkarticlescreated.py”, line 2, in
import utils
File “/Users/jm/jmautogpt/create_mpn_email/utils.py”, line 4, in
import openai
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/init.py”, line 11, in
from ._client import Client, OpenAI, Stream, Timeout, Transport, AsyncClient, AsyncOpenAI, AsyncStream, RequestOptions
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/_client.py”, line 11, in
from . import resources, _exceptions
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/init.py”, line 3, in
from .beta import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/init.py”, line 3, in
from .beta import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/beta.py”, line 5, in
from .threads import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/threads/init.py”, line 11, in
from .threads import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/threads/threads.py”, line 20, in
from .messages import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/threads/messages/init.py”, line 4, in
from .messages import (
File “/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/resources/beta/threads/messages/messages.py”, line 17, in
from …types.beta.threads import (
ImportError: cannot import name ‘ThreadMessage’ from ‘openai.types.beta.threads’ (/Users/jm/miniconda3/envs/transcriberplus/lib/python3.10/site-packages/openai/types/beta/threads/init.py)