Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
GildeshAbhay opened this issue Apr 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GildeshAbhay
Copy link

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

@GildeshAbhay GildeshAbhay added the bug Something isn't working label Apr 4, 2024
@GildeshAbhay
Copy link
Author

beta functionalities of marvin are giving issues when openai version is being upgraded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant