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

ContextualVersionConflict error for pydantic in colab notebook #768

Open
malee1382 opened this issue Sep 6, 2023 · 2 comments
Open

ContextualVersionConflict error for pydantic in colab notebook #768

malee1382 opened this issue Sep 6, 2023 · 2 comments

Comments

@malee1382
Copy link

Dear,

When I go through the colab notebook of "quora questoin answering" in https://github.com/jina-ai/finetuner
I got the version conflict error on the line "import finetuner"

ContextualVersionConflict: (pydantic 2.2.1 (/usr/local/lib/python3.10/dist-packages), Requirement.parse('pydantic~=1.10.11'), {'finetuner-stubs'})

I tried to solve it trying downgrading pydantic to a few older version but did not work.

How can I tackle this?

@ai-naymul
Copy link

Hey @malee1382,
Try the following:

  1. Uninstall the current version of the pydantic:
    pip uninstall -y pydantic
  2. Install the required version of pydantic:
    pip install pydantic==1.10.11

let me know it its work or not :)

@Garvitg28
Copy link

@ai-naymul Done this, still not working. Giving me same error. Btw, i am working in google collab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants