finetuner icon indicating copy to clipboard operation
finetuner copied to clipboard

ContextualVersionConflict error for pydantic in colab notebook

Open malee1382 opened this issue 2 years ago • 2 comments

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?

malee1382 avatar Sep 06 '23 09:09 malee1382

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 :)

ai-naymul avatar Nov 17 '23 05:11 ai-naymul

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

Garvitg28 avatar Feb 28 '24 12:02 Garvitg28