Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants