Skip to content

Getting the error - ThreadMessage ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads' on python 3.10 version after installing llama-parse and llama-index libraries #900

@GildeshAbhay

Description

@GildeshAbhay

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to try to find a similar issue and didn't find one.
  • I searched the Marvin documentation for this issue.

Bug summary

Hi,
I tried to install llama-index and llama-parse libraries on python 3.10 version but now marvin functionailities are not being imported.

Getting this error
error - from openai.types.beta.threads import ThreadMessage ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads'

llama-index and llama-parse requires openai=1.16 version but but marvin imports are failing if we change from openai=1.11 version to 1.16

Reproduction

from openai.types.beta.threads import ThreadMessage

Error

ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads'

Versions

llama-index = 0.10.26
llama-parse = 0.4.0
marvin = 2.1.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions