jupyterlab / jupyter-ai

A generative AI extension for JupyterLab
https://jupyter-ai.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
3.13k stars 311 forks source link

TypeError: metaclass conflict when running %load_ext jupyter_ai_magics #410

Closed yijianching closed 11 months ago

yijianching commented 11 months ago

Description

After installing jupyter-ai and trying to enable the extension, the extension fails to run and I get the following error: image

Reproduce

  1. Installed jupyter-ai by running sudo pip3 install jupyter_ai
  2. Open a new notebook and set provider keys
  3. Run %load_ext jupyter_ai_magics

Context

I deployed The Littlest JupyterHub on an Azure VM running Ubuntu 20.04.

Troubleshoot Output
[notice] A new release of pip is available: 23.2.1 -> 23.3
[notice] To update, run: pip install --upgrade pip
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/tljh/user/conda-meta/requests-2.28.2-pyhd8ed1ab_1.json.  Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/tljh/user/conda-meta/pip-23.0.1-pyhd8ed1ab_0.json.  Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/tljh/user/conda-meta/requests-2.28.2-pyhd8ed1ab_1.json.  Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename /opt/tljh/user/conda-meta/pip-23.0.1-pyhd8ed1ab_0.json.  Please remove this file manually (you may need to reboot to free file handles)
$PATH:
        /home/jupyter-azureuser/.local/bin
        /opt/tljh/user/bin
        /opt/tljh/hub/bin
        /usr/local/bin
        /usr/sbin
        /usr/bin
        /sbin
        /bin
        /snap/bin

sys.path:
        /opt/tljh/user/bin
        /opt/tljh/user/lib/python310.zip
        /opt/tljh/user/lib/python3.10
        /opt/tljh/user/lib/python3.10/lib-dynload
        /home/jupyter-azureuser/.local/lib/python3.10/site-packages
        /opt/tljh/user/lib/python3.10/site-packages

sys.executable:
        /opt/tljh/user/bin/python

sys.version:
        3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]

platform.platform():
        Linux-5.15.0-1049-azure-x86_64-with-glibc2.31

which -a jupyter:
        /opt/tljh/user/bin/jupyter

pip list:
        Package                   Version
        ------------------------- ------------
        accelerate                0.23.0
        aiohttp                   3.8.5
        aiosignal                 1.3.1
        aiosqlite                 0.19.0
        alembic                   1.12.0
        altair                    5.1.2
        annotated-types           0.5.0
        antlr4-python3-runtime    4.9.3
        anyio                     3.7.1
        argon2-cffi               23.1.0
        argon2-cffi-bindings      21.2.0
        arrow                     1.2.3
        asttokens                 2.4.0
        async-generator           1.10
        async-lru                 2.0.4
        async-timeout             4.0.3
        attrs                     23.1.0
        Babel                     2.12.1
        backcall                  0.2.0
        backoff                   2.2.1
        bcrypt                    4.0.1
        beautifulsoup4            4.12.2
        bleach                    6.0.0
        blinker                   1.6.2
        bokeh                     3.2.2
        brotlipy                  0.7.0
        cachetools                5.3.1
        certifi                   2022.12.7
        certipy                   0.1.3
        cffi                      1.15.1
        chardet                   5.2.0
        charset-normalizer        3.1.0
        chroma-hnswlib            0.7.1
        chromadb                  0.4.3
        click                     8.1.7
        cloudpickle               3.0.0
        cmake                     3.27.5
        colorama                  0.4.6
        coloredlogs               15.0.1
        comm                      0.1.4
        conda                     23.1.0
        conda-package-handling    2.0.2
        conda_package_streaming   0.7.0
        contourpy                 1.1.1
        cryptography              40.0.1
        cycler                    0.12.0
        dask                      2023.10.0
        dataclasses-json          0.6.1
        debugpy                   1.8.0
        decorator                 5.1.1
        deepmerge                 1.1.0
        defusedxml                0.7.1
        distributed               2023.10.0
        docarray                  0.32.1
        docx2txt                  0.8
        effdet                    0.4.1
        emoji                     2.8.0
        exceptiongroup            1.1.3
        executing                 1.2.0
        faiss-cpu                 1.7.4
        fastapi                   0.99.1
        fastjsonschema            2.18.0
        filelock                  3.12.4
        filetype                  1.2.0
        flatbuffers               23.5.26
        fonttools                 4.43.0
        fqdn                      1.5.1
        frozenlist                1.4.0
        fsspec                    2023.9.2
        gitdb                     4.0.10
        GitPython                 3.1.37
        greenlet                  2.0.2
        h11                       0.14.0
        hnswlib                   0.7.0
        httptools                 0.6.0
        huggingface-hub           0.17.3
        humanfriendly             10.0
        idna                      3.4
        importlib-metadata        6.8.0
        importlib-resources       6.1.0
        iopath                    0.1.10
        ipykernel                 6.25.2
        ipython                   8.15.0
        ipywidgets                8.1.1
        isoduration               20.11.0
        jedi                      0.19.0
        Jinja2                    3.1.2
        joblib                    1.3.2
        json5                     0.9.14
        jsonpatch                 1.33
        jsonpath-ng               1.6.0
        jsonpointer               2.4
        jsonschema                4.19.1
        jsonschema-specifications 2023.7.1
        jupyter_ai                2.3.0
        jupyter_ai_magics         2.3.0
        jupyter_client            8.3.1
        jupyter_core              5.3.2
        jupyter-events            0.7.0
        jupyter-lsp               2.2.0
        jupyter-resource-usage    1.0.1
        jupyter_server            2.7.3
        jupyter_server_terminals  0.4.4
        jupyter-telemetry         0.1.0
        jupyterhub                4.0.2
        jupyterlab                4.0.6
        jupyterlab-pygments       0.2.2
        jupyterlab_server         2.25.0
        jupyterlab-widgets        3.0.9
        kiwisolver                1.4.5
        langchain                 0.0.304
        langdetect                1.0.9
        langsmith                 0.0.41
        layoutparser              0.3.4
        libmagic                  1.0
        libmambapy                1.4.1
        linkify-it-py             2.0.2
        lit                       17.0.1
        llama-index               0.8.36
        locket                    1.0.0
        lxml                      4.9.3
        Mako                      1.2.4
        mamba                     1.4.1
        Markdown                  3.4.4
        markdown-it-py            3.0.0
        MarkupSafe                2.1.3
        marshmallow               3.20.1
        matplotlib                3.8.0
        matplotlib-inline         0.1.6
        mdit-py-plugins           0.4.0
        mdurl                     0.1.2
        mistune                   3.0.1
        monotonic                 1.6
        mpmath                    1.3.0
        msgpack                   1.0.7
        multidict                 6.0.4
        mypy-extensions           1.0.0
        nbclient                  0.8.0
        nbconvert                 7.8.0
        nbformat                  5.9.2
        nbgitpuller               1.2.0
        nest-asyncio              1.5.8
        networkx                  3.1
        nltk                      3.8.1
        notebook                  7.0.4
        notebook_shim             0.2.3
        numexpr                   2.8.7
        numpy                     1.26.0
        nvidia-cublas-cu11        11.10.3.66
        nvidia-cuda-cupti-cu11    11.7.101
        nvidia-cuda-nvrtc-cu11    11.7.99
        nvidia-cuda-runtime-cu11  11.7.99
        nvidia-cudnn-cu11         8.5.0.96
        nvidia-cufft-cu11         10.9.0.58
        nvidia-curand-cu11        10.2.10.91
        nvidia-cusolver-cu11      11.4.0.1
        nvidia-cusparse-cu11      11.7.4.91
        nvidia-nccl-cu11          2.14.3
        nvidia-nvtx-cu11          11.7.91
        oauthlib                  3.2.2
        omegaconf                 2.3.0
        onnx                      1.14.1
        onnxruntime               1.16.0
        openai                    0.28.1
        opencv-python             4.8.1.78
        orjson                    3.9.7
        overrides                 7.4.0
        packaging                 23.1
        pamela                    1.1.0
        pandas                    2.1.1
        pandocfilters             1.5.0
        param                     1.13.0
        parso                     0.8.3
        partd                     1.4.1
        pdf2image                 1.16.3
        pdfminer.six              20221105
        pdfplumber                0.10.2
        pexpect                   4.8.0
        pickleshare               0.7.5
        Pillow                    10.0.1
        pip                       23.2.1
        platformdirs              3.10.0
        pluggy                    1.0.0
        ply                       3.11
        portalocker               2.8.2
        posthog                   3.0.2
        prometheus-client         0.17.1
        prompt-toolkit            3.0.39
        protobuf                  4.24.3
        psutil                    5.9.5
        ptyprocess                0.7.0
        pulsar-client             3.3.0
        pure-eval                 0.2.2
        pyarrow                   13.0.0
        pycocotools               2.0.7
        pycosat                   0.6.4
        pycparser                 2.21
        pydantic                  2.4.2
        pydantic_core             2.10.1
        pydeck                    0.8.1b0
        Pygments                  2.16.1
        pyOpenSSL                 23.1.1
        pyparsing                 3.1.1
        pypdf                     3.16.2
        pypdfium2                 4.20.0
        PyPika                    0.48.9
        PySocks                   1.7.1
        pysqlite3-binary          0.5.2
        pytesseract               0.3.10
        python-dateutil           2.8.2
        python-docx               0.8.11
        python-dotenv             1.0.0
        python-iso639             2023.6.15
        python-json-logger        2.0.7
        python-magic              0.4.27
        python-multipart          0.0.6
        pytz                      2023.3.post1
        pyviz_comms               3.0.0
        PyYAML                    6.0.1
        pyzmq                     25.1.1
        rapidfuzz                 3.3.1
        referencing               0.30.2
        regex                     2023.8.8
        requests                  2.31.0
        rfc3339-validator         0.1.4
        rfc3986-validator         0.1.1
        rich                      13.6.0
        rpds-py                   0.10.3
        ruamel.yaml               0.17.21
        ruamel.yaml.clib          0.2.7
        safetensors               0.3.3
        scikit-learn              1.3.1
        scipy                     1.11.3
        Send2Trash                1.8.2
        sentence-transformers     2.2.2
        sentencepiece             0.1.99
        setuptools                65.6.3
        six                       1.16.0
        smmap                     5.0.1
        sniffio                   1.3.0
        sortedcontainers          2.4.0
        soupsieve                 2.5
        SQLAlchemy                2.0.21
        stack-data                0.6.2
        starlette                 0.27.0
        streamlit                 1.27.2
        sympy                     1.12
        tabulate                  0.9.0
        tblib                     2.0.0
        tenacity                  8.2.3
        terminado                 0.17.1
        threadpoolctl             3.2.0
        tiktoken                  0.5.1
        timm                      0.9.7
        tinycss2                  1.2.1
        tokenizers                0.13.3
        toml                      0.10.2
        tomli                     2.0.1
        toolz                     0.12.0
        torch                     2.0.1
        torchvision               0.15.2
        tornado                   6.3.3
        tqdm                      4.65.0
        traitlets                 5.10.1
        transformers              4.33.3
        triton                    2.0.0
        typer                     0.9.0
        types-requests            2.28.11.6
        types-urllib3             1.26.25.14
        typing_extensions         4.8.0
        typing-inspect            0.9.0
        tzdata                    2023.3
        tzlocal                   5.1
        uc-micro-py               1.0.2
        unstructured              0.10.19
        unstructured-inference    0.5.31
        unstructured.pytesseract  0.3.12
        uri-template              1.3.0
        urllib3                   1.26.15
        uvicorn                   0.23.2
        uvloop                    0.17.0
        validators                0.22.0
        watchdog                  3.0.0
        watchfiles                0.20.0
        wcwidth                   0.2.7
        webcolors                 1.13
        webencodings              0.5.1
        websocket-client          1.6.3
        websockets                11.0.3
        wheel                     0.40.0
        widgetsnbextension        4.0.9
        xgboost                   2.0.0
        xyzservices               2023.7.0
        yarl                      1.9.2
        zict                      3.0.0
        zipp                      3.17.0
        zstandard                 0.19.0

conda list:
        # packages in environment at /opt/tljh/user:
        #
        # Name                    Version                   Build  Channel
        _libgcc_mutex             0.1                 conda_forge    conda-forge
        _openmp_mutex             4.5                       2_gnu    conda-forge
        accelerate                0.23.0                   pypi_0    pypi
        aiohttp                   3.8.5                    pypi_0    pypi
        aiosignal                 1.3.1                    pypi_0    pypi
        aiosqlite                 0.19.0                   pypi_0    pypi
        alembic                   1.12.0                   pypi_0    pypi
        altair                    5.1.2                    pypi_0    pypi
        annotated-types           0.5.0                    pypi_0    pypi
        antlr4-python3-runtime    4.9.3                    pypi_0    pypi
        anyio                     3.7.1                    pypi_0    pypi
        argon2-cffi               23.1.0                   pypi_0    pypi
        argon2-cffi-bindings      21.2.0                   pypi_0    pypi
        arrow                     1.2.3                    pypi_0    pypi
        asttokens                 2.4.0                    pypi_0    pypi
        async-generator           1.10                     pypi_0    pypi
        async-lru                 2.0.4                    pypi_0    pypi
        async-timeout             4.0.3                    pypi_0    pypi
        attrs                     23.1.0                   pypi_0    pypi
        babel                     2.12.1                   pypi_0    pypi
        backcall                  0.2.0                    pypi_0    pypi
        backoff                   2.2.1                    pypi_0    pypi
        bcrypt                    4.0.1                    pypi_0    pypi
        beautifulsoup4            4.12.2                   pypi_0    pypi
        bleach                    6.0.0                    pypi_0    pypi
        blinker                   1.6.2                    pypi_0    pypi
        bokeh                     3.2.2                    pypi_0    pypi
        brotlipy                  0.7.0           py310h5764c6d_1005    conda-forge
        bzip2                     1.0.8                h7f98852_4    conda-forge
        c-ares                    1.18.1               h7f98852_0    conda-forge
        ca-certificates           2022.12.7            ha878542_0    conda-forge
        cachetools                5.3.1                    pypi_0    pypi
        certifi                   2022.12.7          pyhd8ed1ab_0    conda-forge
        certipy                   0.1.3                    pypi_0    pypi
        cffi                      1.15.1          py310h255011f_3    conda-forge
        chardet                   5.2.0                    pypi_0    pypi
        charset-normalizer        3.1.0              pyhd8ed1ab_0    conda-forge
        chroma-hnswlib            0.7.1                    pypi_0    pypi
        chromadb                  0.4.3                    pypi_0    pypi
        click                     8.1.7                    pypi_0    pypi
        cloudpickle               3.0.0                    pypi_0    pypi
        cmake                     3.27.5                   pypi_0    pypi
        colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
        coloredlogs               15.0.1                   pypi_0    pypi
        comm                      0.1.4                    pypi_0    pypi
        conda                     23.1.0          py310hff52083_0    conda-forge
        conda-package-handling    2.0.2              pyh38be061_0    conda-forge
        conda-package-streaming   0.7.0              pyhd8ed1ab_1    conda-forge
        contourpy                 1.1.1                    pypi_0    pypi
        cryptography              40.0.1          py310h34c0648_0    conda-forge
        cycler                    0.12.0                   pypi_0    pypi
        dask                      2023.10.0                pypi_0    pypi
        dataclasses-json          0.6.1                    pypi_0    pypi
        debugpy                   1.8.0                    pypi_0    pypi
        decorator                 5.1.1                    pypi_0    pypi
        deepmerge                 1.1.0                    pypi_0    pypi
        defusedxml                0.7.1                    pypi_0    pypi
        distributed               2023.10.0                pypi_0    pypi
        docarray                  0.32.1                   pypi_0    pypi
        docx2txt                  0.8                      pypi_0    pypi
        effdet                    0.4.1                    pypi_0    pypi
        emoji                     2.8.0                    pypi_0    pypi
        exceptiongroup            1.1.3                    pypi_0    pypi
        executing                 1.2.0                    pypi_0    pypi
        faiss-cpu                 1.7.4                    pypi_0    pypi
        fastapi                   0.99.1                   pypi_0    pypi
        fastjsonschema            2.18.0                   pypi_0    pypi
        filelock                  3.12.4                   pypi_0    pypi
        filetype                  1.2.0                    pypi_0    pypi
        flatbuffers               23.5.26                  pypi_0    pypi
        fmt                       9.1.0                h924138e_0    conda-forge
        fonttools                 4.43.0                   pypi_0    pypi
        fqdn                      1.5.1                    pypi_0    pypi
        frozenlist                1.4.0                    pypi_0    pypi
        fsspec                    2023.9.2                 pypi_0    pypi
        gitdb                     4.0.10                   pypi_0    pypi
        gitpython                 3.1.37                   pypi_0    pypi
        greenlet                  2.0.2                    pypi_0    pypi
        h11                       0.14.0                   pypi_0    pypi
        hnswlib                   0.7.0                    pypi_0    pypi
        httptools                 0.6.0                    pypi_0    pypi
        huggingface-hub           0.17.3                   pypi_0    pypi
        humanfriendly             10.0                     pypi_0    pypi
        icu                       72.1                 hcb278e6_0    conda-forge
        idna                      3.4                pyhd8ed1ab_0    conda-forge
        importlib-metadata        6.8.0                    pypi_0    pypi
        importlib-resources       6.1.0                    pypi_0    pypi
        iopath                    0.1.10                   pypi_0    pypi
        ipykernel                 6.25.2                   pypi_0    pypi
        ipython                   8.15.0                   pypi_0    pypi
        ipywidgets                8.1.1                    pypi_0    pypi
        isoduration               20.11.0                  pypi_0    pypi
        jedi                      0.19.0                   pypi_0    pypi
        jinja2                    3.1.2                    pypi_0    pypi
        joblib                    1.3.2                    pypi_0    pypi
        json5                     0.9.14                   pypi_0    pypi
        jsonpatch                 1.33                     pypi_0    pypi
        jsonpath-ng               1.6.0                    pypi_0    pypi
        jsonpointer               2.4                      pypi_0    pypi
        jsonschema                4.19.1                   pypi_0    pypi
        jsonschema-specifications 2023.7.1                 pypi_0    pypi
        jupyter-ai                2.3.0                    pypi_0    pypi
        jupyter-ai-magics         2.3.0                    pypi_0    pypi
        jupyter-client            8.3.1                    pypi_0    pypi
        jupyter-core              5.3.2                    pypi_0    pypi
        jupyter-events            0.7.0                    pypi_0    pypi
        jupyter-lsp               2.2.0                    pypi_0    pypi
        jupyter-resource-usage    1.0.1                    pypi_0    pypi
        jupyter-server            2.7.3                    pypi_0    pypi
        jupyter-server-terminals  0.4.4                    pypi_0    pypi
        jupyter-telemetry         0.1.0                    pypi_0    pypi
        jupyterhub                4.0.2                    pypi_0    pypi
        jupyterlab                4.0.6                    pypi_0    pypi
        jupyterlab-pygments       0.2.2                    pypi_0    pypi
        jupyterlab-server         2.25.0                   pypi_0    pypi
        jupyterlab-widgets        3.0.9                    pypi_0    pypi
        keyutils                  1.6.1                h166bdaf_0    conda-forge
        kiwisolver                1.4.5                    pypi_0    pypi
        krb5                      1.20.1               h81ceb04_0    conda-forge
        langchain                 0.0.308                  pypi_0    pypi
        langdetect                1.0.9                    pypi_0    pypi
        langsmith                 0.0.43                   pypi_0    pypi
        layoutparser              0.3.4                    pypi_0    pypi
        ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
        libarchive                3.6.2                h3d51595_0    conda-forge
        libcurl                   7.88.1               hdc1c0ab_1    conda-forge
        libedit                   3.1.20191231         he28a2e2_2    conda-forge
        libev                     4.33                 h516909a_1    conda-forge
        libffi                    3.4.2                h7f98852_5    conda-forge
        libgcc-ng                 12.2.0              h65d4601_19    conda-forge
        libgomp                   12.2.0              h65d4601_19    conda-forge
        libiconv                  1.17                 h166bdaf_0    conda-forge
        libmagic                  1.0                      pypi_0    pypi
        libmamba                  1.4.1                hcea66bb_0    conda-forge
        libmambapy                1.4.1           py310h1428755_0    conda-forge
        libnghttp2                1.52.0               h61bc06f_0    conda-forge
        libnsl                    2.0.0                h7f98852_0    conda-forge
        libsolv                   0.7.23               h3eb15da_0    conda-forge
        libsqlite                 3.40.0               h753d276_0    conda-forge
        libssh2                   1.10.0               hf14f497_3    conda-forge
        libstdcxx-ng              12.2.0              h46fd767_19    conda-forge
        libuuid                   2.38.1               h0b41bf4_0    conda-forge
        libxml2                   2.10.3               hfdac1af_6    conda-forge
        libzlib                   1.2.13               h166bdaf_4    conda-forge
        linkify-it-py             2.0.2                    pypi_0    pypi
        lit                       17.0.1                   pypi_0    pypi
        llama-index               0.8.36                   pypi_0    pypi
        locket                    1.0.0                    pypi_0    pypi
        lxml                      4.9.3                    pypi_0    pypi
        lz4-c                     1.9.4                hcb278e6_0    conda-forge
        lzo                       2.10              h516909a_1000    conda-forge
        mako                      1.2.4                    pypi_0    pypi
        mamba                     1.4.1           py310h51d5547_0    conda-forge
        markdown                  3.4.4                    pypi_0    pypi
        markdown-it-py            3.0.0                    pypi_0    pypi
        markupsafe                2.1.3                    pypi_0    pypi
        marshmallow               3.20.1                   pypi_0    pypi
        matplotlib                3.8.0                    pypi_0    pypi
        matplotlib-inline         0.1.6                    pypi_0    pypi
        mdit-py-plugins           0.4.0                    pypi_0    pypi
        mdurl                     0.1.2                    pypi_0    pypi
        mistune                   3.0.1                    pypi_0    pypi
        monotonic                 1.6                      pypi_0    pypi
        mpmath                    1.3.0                    pypi_0    pypi
        msgpack                   1.0.7                    pypi_0    pypi
        multidict                 6.0.4                    pypi_0    pypi
        mypy-extensions           1.0.0                    pypi_0    pypi
        nbclient                  0.8.0                    pypi_0    pypi
        nbconvert                 7.8.0                    pypi_0    pypi
        nbformat                  5.9.2                    pypi_0    pypi
        nbgitpuller               1.2.0                    pypi_0    pypi
        ncurses                   6.3                  h27087fc_1    conda-forge
        nest-asyncio              1.5.8                    pypi_0    pypi
        networkx                  3.1                      pypi_0    pypi
        nltk                      3.8.1                    pypi_0    pypi
        notebook                  7.0.4                    pypi_0    pypi
        notebook-shim             0.2.3                    pypi_0    pypi
        numexpr                   2.8.7                    pypi_0    pypi
        numpy                     1.26.0                   pypi_0    pypi
        nvidia-cublas-cu11        11.10.3.66               pypi_0    pypi
        nvidia-cuda-cupti-cu11    11.7.101                 pypi_0    pypi
        nvidia-cuda-nvrtc-cu11    11.7.99                  pypi_0    pypi
        nvidia-cuda-runtime-cu11  11.7.99                  pypi_0    pypi
        nvidia-cudnn-cu11         8.5.0.96                 pypi_0    pypi
        nvidia-cufft-cu11         10.9.0.58                pypi_0    pypi
        nvidia-curand-cu11        10.2.10.91               pypi_0    pypi
        nvidia-cusolver-cu11      11.4.0.1                 pypi_0    pypi
        nvidia-cusparse-cu11      11.7.4.91                pypi_0    pypi
        nvidia-nccl-cu11          2.14.3                   pypi_0    pypi
        nvidia-nvtx-cu11          11.7.91                  pypi_0    pypi
        oauthlib                  3.2.2                    pypi_0    pypi
        omegaconf                 2.3.0                    pypi_0    pypi
        onnx                      1.14.1                   pypi_0    pypi
        onnxruntime               1.16.0                   pypi_0    pypi
        openai                    0.28.1                   pypi_0    pypi
        opencv-python             4.8.1.78                 pypi_0    pypi
        openssl                   3.1.0                h0b41bf4_0    conda-forge
        orjson                    3.9.7                    pypi_0    pypi
        overrides                 7.4.0                    pypi_0    pypi
        packaging                 23.1                     pypi_0    pypi
        pamela                    1.1.0                    pypi_0    pypi
        pandas                    2.1.1                    pypi_0    pypi
        pandocfilters             1.5.0                    pypi_0    pypi
        param                     1.13.0                   pypi_0    pypi
        parso                     0.8.3                    pypi_0    pypi
        partd                     1.4.1                    pypi_0    pypi
        pdf2image                 1.16.3                   pypi_0    pypi
        pdfminer-six              20221105                 pypi_0    pypi
        pdfplumber                0.10.2                   pypi_0    pypi
        pexpect                   4.8.0                    pypi_0    pypi
        pickleshare               0.7.5                    pypi_0    pypi
        pillow                    10.0.1                   pypi_0    pypi
        pip                       23.2.1                   pypi_0    pypi
        platformdirs              3.10.0                   pypi_0    pypi
        pluggy                    1.0.0              pyhd8ed1ab_5    conda-forge
        ply                       3.11                     pypi_0    pypi
        portalocker               2.8.2                    pypi_0    pypi
        posthog                   3.0.2                    pypi_0    pypi
        prometheus-client         0.17.1                   pypi_0    pypi
        prompt-toolkit            3.0.39                   pypi_0    pypi
        protobuf                  4.24.3                   pypi_0    pypi
        psutil                    5.9.5                    pypi_0    pypi
        ptyprocess                0.7.0                    pypi_0    pypi
        pulsar-client             3.3.0                    pypi_0    pypi
        pure-eval                 0.2.2                    pypi_0    pypi
        pyarrow                   13.0.0                   pypi_0    pypi
        pybind11-abi              4                    hd8ed1ab_3    conda-forge
        pycocotools               2.0.7                    pypi_0    pypi
        pycosat                   0.6.4           py310h5764c6d_1    conda-forge
        pycparser                 2.21               pyhd8ed1ab_0    conda-forge
        pydantic                  1.10.13                  pypi_0    pypi
        pydantic-core             2.0.2                    pypi_0    pypi
        pydeck                    0.8.1b0                  pypi_0    pypi
        pygments                  2.16.1                   pypi_0    pypi
        pyopenssl                 23.1.1             pyhd8ed1ab_0    conda-forge
        pyparsing                 3.1.1                    pypi_0    pypi
        pypdf                     3.16.2                   pypi_0    pypi
        pypdfium2                 4.20.0                   pypi_0    pypi
        pypika                    0.48.9                   pypi_0    pypi
        pysocks                   1.7.1              pyha2e5f31_6    conda-forge
        pysqlite3-binary          0.5.2                    pypi_0    pypi
        pytesseract               0.3.10                   pypi_0    pypi
        python                    3.10.10         he550d4f_0_cpython    conda-forge
        python-dateutil           2.8.2                    pypi_0    pypi
        python-docx               0.8.11                   pypi_0    pypi
        python-dotenv             1.0.0                    pypi_0    pypi
        python-iso639             2023.6.15                pypi_0    pypi
        python-json-logger        2.0.7                    pypi_0    pypi
        python-magic              0.4.27                   pypi_0    pypi
        python-multipart          0.0.6                    pypi_0    pypi
        python_abi                3.10                    3_cp310    conda-forge
        pytz                      2023.3.post1             pypi_0    pypi
        pyviz-comms               3.0.0                    pypi_0    pypi
        pyyaml                    6.0.1                    pypi_0    pypi
        pyzmq                     25.1.1                   pypi_0    pypi
        rapidfuzz                 3.3.1                    pypi_0    pypi
        readline                  8.2                  h8228510_1    conda-forge
        referencing               0.30.2                   pypi_0    pypi
        regex                     2023.8.8                 pypi_0    pypi
        reproc                    14.2.4               h0b41bf4_0    conda-forge
        reproc-cpp                14.2.4               hcb278e6_0    conda-forge
        requests                  2.31.0                   pypi_0    pypi
        rfc3339-validator         0.1.4                    pypi_0    pypi
        rfc3986-validator         0.1.1                    pypi_0    pypi
        rich                      13.6.0                   pypi_0    pypi
        rpds-py                   0.10.3                   pypi_0    pypi
        ruamel.yaml               0.17.21         py310h1fa729e_3    conda-forge
        ruamel.yaml.clib          0.2.7           py310h1fa729e_1    conda-forge
        safetensors               0.3.3                    pypi_0    pypi
        scikit-learn              1.3.1                    pypi_0    pypi
        scipy                     1.11.3                   pypi_0    pypi
        send2trash                1.8.2                    pypi_0    pypi
        sentence-transformers     2.2.2                    pypi_0    pypi
        sentencepiece             0.1.99                   pypi_0    pypi
        setuptools                65.6.3             pyhd8ed1ab_0    conda-forge
        six                       1.16.0                   pypi_0    pypi
        smmap                     5.0.1                    pypi_0    pypi
        sniffio                   1.3.0                    pypi_0    pypi
        sortedcontainers          2.4.0                    pypi_0    pypi
        soupsieve                 2.5                      pypi_0    pypi
        sqlalchemy                2.0.21                   pypi_0    pypi
        stack-data                0.6.2                    pypi_0    pypi
        starlette                 0.27.0                   pypi_0    pypi
        streamlit                 1.27.2                   pypi_0    pypi
        sympy                     1.12                     pypi_0    pypi
        tabulate                  0.9.0                    pypi_0    pypi
        tblib                     2.0.0                    pypi_0    pypi
        tenacity                  8.2.3                    pypi_0    pypi
        terminado                 0.17.1                   pypi_0    pypi
        threadpoolctl             3.2.0                    pypi_0    pypi
        tiktoken                  0.5.1                    pypi_0    pypi
        timm                      0.9.7                    pypi_0    pypi
        tinycss2                  1.2.1                    pypi_0    pypi
        tk                        8.6.12               h27826a3_0    conda-forge
        tokenizers                0.13.3                   pypi_0    pypi
        toml                      0.10.2                   pypi_0    pypi
        tomli                     2.0.1                    pypi_0    pypi
        toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
        torch                     2.0.1                    pypi_0    pypi
        torchvision               0.15.2                   pypi_0    pypi
        tornado                   6.3.3                    pypi_0    pypi
        tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
        traitlets                 5.10.1                   pypi_0    pypi
        transformers              4.33.3                   pypi_0    pypi
        triton                    2.0.0                    pypi_0    pypi
        typer                     0.9.0                    pypi_0    pypi
        types-requests            2.28.11.6                pypi_0    pypi
        types-urllib3             1.26.25.14               pypi_0    pypi
        typing-extensions         4.8.0                    pypi_0    pypi
        typing-inspect            0.9.0                    pypi_0    pypi
        tzdata                    2023.3                   pypi_0    pypi
        tzlocal                   5.1                      pypi_0    pypi
        uc-micro-py               1.0.2                    pypi_0    pypi
        unstructured              0.10.19                  pypi_0    pypi
        unstructured-inference    0.5.31                   pypi_0    pypi
        unstructured-pytesseract  0.3.12                   pypi_0    pypi
        uri-template              1.3.0                    pypi_0    pypi
        urllib3                   1.26.15            pyhd8ed1ab_0    conda-forge
        uvicorn                   0.23.2                   pypi_0    pypi
        uvloop                    0.17.0                   pypi_0    pypi
        validators                0.22.0                   pypi_0    pypi
        watchdog                  3.0.0                    pypi_0    pypi
        watchfiles                0.20.0                   pypi_0    pypi
        wcwidth                   0.2.7                    pypi_0    pypi
        webcolors                 1.13                     pypi_0    pypi
        webencodings              0.5.1                    pypi_0    pypi
        websocket-client          1.6.3                    pypi_0    pypi
        websockets                11.0.3                   pypi_0    pypi
        wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
        widgetsnbextension        4.0.9                    pypi_0    pypi
        xgboost                   2.0.0                    pypi_0    pypi
        xyzservices               2023.7.0                 pypi_0    pypi
        xz                        5.2.6                h166bdaf_0    conda-forge
        yaml-cpp                  0.7.0                h27087fc_2    conda-forge
        yarl                      1.9.2                    pypi_0    pypi
        zict                      3.0.0                    pypi_0    pypi
        zipp                      3.17.0                   pypi_0    pypi
        zstandard                 0.19.0          py310hdeb6495_1    conda-forge
        zstd                      1.5.2                h3eb15da_6    conda-forge

conda env:
        name: base
        channels:
          - conda-forge
        dependencies:
          - _libgcc_mutex=0.1=conda_forge
          - _openmp_mutex=4.5=2_gnu
          - brotlipy=0.7.0=py310h5764c6d_1005
          - bzip2=1.0.8=h7f98852_4
          - c-ares=1.18.1=h7f98852_0
          - ca-certificates=2022.12.7=ha878542_0
          - certifi=2022.12.7=pyhd8ed1ab_0
          - cffi=1.15.1=py310h255011f_3
          - charset-normalizer=3.1.0=pyhd8ed1ab_0
          - colorama=0.4.6=pyhd8ed1ab_0
          - conda=23.1.0=py310hff52083_0
          - conda-package-handling=2.0.2=pyh38be061_0
          - conda-package-streaming=0.7.0=pyhd8ed1ab_1
          - cryptography=40.0.1=py310h34c0648_0
          - fmt=9.1.0=h924138e_0
          - icu=72.1=hcb278e6_0
          - idna=3.4=pyhd8ed1ab_0
          - keyutils=1.6.1=h166bdaf_0
          - krb5=1.20.1=h81ceb04_0
          - ld_impl_linux-64=2.40=h41732ed_0
          - libarchive=3.6.2=h3d51595_0
          - libcurl=7.88.1=hdc1c0ab_1
          - libedit=3.1.20191231=he28a2e2_2
          - libev=4.33=h516909a_1
          - libffi=3.4.2=h7f98852_5
          - libgcc-ng=12.2.0=h65d4601_19
          - libgomp=12.2.0=h65d4601_19
          - libiconv=1.17=h166bdaf_0
          - libmamba=1.4.1=hcea66bb_0
          - libmambapy=1.4.1=py310h1428755_0
          - libnghttp2=1.52.0=h61bc06f_0
          - libnsl=2.0.0=h7f98852_0
          - libsolv=0.7.23=h3eb15da_0
          - libsqlite=3.40.0=h753d276_0
          - libssh2=1.10.0=hf14f497_3
          - libstdcxx-ng=12.2.0=h46fd767_19
          - libuuid=2.38.1=h0b41bf4_0
          - libxml2=2.10.3=hfdac1af_6
          - libzlib=1.2.13=h166bdaf_4
          - lz4-c=1.9.4=hcb278e6_0
          - lzo=2.10=h516909a_1000
          - mamba=1.4.1=py310h51d5547_0
          - ncurses=6.3=h27087fc_1
          - openssl=3.1.0=h0b41bf4_0
          - pluggy=1.0.0=pyhd8ed1ab_5
          - pybind11-abi=4=hd8ed1ab_3
          - pycosat=0.6.4=py310h5764c6d_1
          - pycparser=2.21=pyhd8ed1ab_0
          - pyopenssl=23.1.1=pyhd8ed1ab_0
          - pysocks=1.7.1=pyha2e5f31_6
          - python=3.10.10=he550d4f_0_cpython
          - python_abi=3.10=3_cp310
          - readline=8.2=h8228510_1
          - reproc=14.2.4=h0b41bf4_0
          - reproc-cpp=14.2.4=hcb278e6_0
          - ruamel.yaml=0.17.21=py310h1fa729e_3
          - ruamel.yaml.clib=0.2.7=py310h1fa729e_1
          - setuptools=65.6.3=pyhd8ed1ab_0
          - tk=8.6.12=h27826a3_0
          - toolz=0.12.0=pyhd8ed1ab_0
          - tqdm=4.65.0=pyhd8ed1ab_1
          - urllib3=1.26.15=pyhd8ed1ab_0
          - wheel=0.40.0=pyhd8ed1ab_0
          - xz=5.2.6=h166bdaf_0
          - yaml-cpp=0.7.0=h27087fc_2
          - zstandard=0.19.0=py310hdeb6495_1
          - zstd=1.5.2=h3eb15da_6
          - pip:
              - accelerate==0.23.0
              - aiohttp==3.8.5
              - aiosignal==1.3.1
              - aiosqlite==0.19.0
              - alembic==1.12.0
              - altair==5.1.2
              - annotated-types==0.5.0
              - antlr4-python3-runtime==4.9.3
              - anyio==3.7.1
              - argon2-cffi==23.1.0
              - argon2-cffi-bindings==21.2.0
              - arrow==1.2.3
              - asttokens==2.4.0
              - async-generator==1.10
              - async-lru==2.0.4
              - async-timeout==4.0.3
              - attrs==23.1.0
              - babel==2.12.1
              - backcall==0.2.0
              - backoff==2.2.1
              - bcrypt==4.0.1
              - beautifulsoup4==4.12.2
              - bleach==6.0.0
              - blinker==1.6.2
              - bokeh==3.2.2
              - cachetools==5.3.1
              - certipy==0.1.3
              - chardet==5.2.0
              - chroma-hnswlib==0.7.1
              - chromadb==0.4.3
              - click==8.1.7
              - cloudpickle==3.0.0
              - cmake==3.27.5
              - coloredlogs==15.0.1
              - comm==0.1.4
              - contourpy==1.1.1
              - cycler==0.12.0
              - dask==2023.10.0
              - dataclasses-json==0.6.1
              - debugpy==1.8.0
              - decorator==5.1.1
              - deepmerge==1.1.0
              - defusedxml==0.7.1
              - distributed==2023.10.0
              - docarray==0.32.1
              - docx2txt==0.8
              - effdet==0.4.1
              - emoji==2.8.0
              - exceptiongroup==1.1.3
              - executing==1.2.0
              - faiss-cpu==1.7.4
              - fastapi==0.99.1
              - fastjsonschema==2.18.0
              - filelock==3.12.4
              - filetype==1.2.0
              - flatbuffers==23.5.26
              - fonttools==4.43.0
              - fqdn==1.5.1
              - frozenlist==1.4.0
              - fsspec==2023.9.2
              - gitdb==4.0.10
              - gitpython==3.1.37
              - greenlet==2.0.2
              - h11==0.14.0
              - hnswlib==0.7.0
              - httptools==0.6.0
              - huggingface-hub==0.17.3
              - humanfriendly==10.0
              - importlib-metadata==6.8.0
              - importlib-resources==6.1.0
              - iopath==0.1.10
              - ipykernel==6.25.2
              - ipython==8.15.0
              - ipywidgets==8.1.1
              - isoduration==20.11.0
              - jedi==0.19.0
              - jinja2==3.1.2
              - joblib==1.3.2
              - json5==0.9.14
              - jsonpatch==1.33
              - jsonpath-ng==1.6.0
              - jsonpointer==2.4
              - jsonschema==4.19.1
              - jsonschema-specifications==2023.7.1
              - jupyter-ai==2.3.0
              - jupyter-ai-magics==2.3.0
              - jupyter-client==8.3.1
              - jupyter-core==5.3.2
              - jupyter-events==0.7.0
              - jupyter-lsp==2.2.0
              - jupyter-resource-usage==1.0.1
              - jupyter-server==2.7.3
              - jupyter-server-terminals==0.4.4
              - jupyter-telemetry==0.1.0
              - jupyterhub==4.0.2
              - jupyterlab==4.0.6
              - jupyterlab-pygments==0.2.2
              - jupyterlab-server==2.25.0
              - jupyterlab-widgets==3.0.9
              - kiwisolver==1.4.5
              - langchain==0.0.308
              - langdetect==1.0.9
              - langsmith==0.0.43
              - layoutparser==0.3.4
              - libmagic==1.0
              - linkify-it-py==2.0.2
              - lit==17.0.1
              - llama-index==0.8.36
              - locket==1.0.0
              - lxml==4.9.3
              - mako==1.2.4
              - markdown==3.4.4
              - markdown-it-py==3.0.0
              - markupsafe==2.1.3
              - marshmallow==3.20.1
              - matplotlib==3.8.0
              - matplotlib-inline==0.1.6
              - mdit-py-plugins==0.4.0
              - mdurl==0.1.2
              - mistune==3.0.1
              - monotonic==1.6
              - mpmath==1.3.0
              - msgpack==1.0.7
              - multidict==6.0.4
              - mypy-extensions==1.0.0
              - nbclient==0.8.0
              - nbconvert==7.8.0
              - nbformat==5.9.2
              - nbgitpuller==1.2.0
              - nest-asyncio==1.5.8
              - networkx==3.1
              - nltk==3.8.1
              - notebook==7.0.4
              - notebook-shim==0.2.3
              - numexpr==2.8.7
              - numpy==1.26.0
              - nvidia-cublas-cu11==11.10.3.66
              - nvidia-cuda-cupti-cu11==11.7.101
              - nvidia-cuda-nvrtc-cu11==11.7.99
              - nvidia-cuda-runtime-cu11==11.7.99
              - nvidia-cudnn-cu11==8.5.0.96
              - nvidia-cufft-cu11==10.9.0.58
              - nvidia-curand-cu11==10.2.10.91
              - nvidia-cusolver-cu11==11.4.0.1
              - nvidia-cusparse-cu11==11.7.4.91
              - nvidia-nccl-cu11==2.14.3
              - nvidia-nvtx-cu11==11.7.91
              - oauthlib==3.2.2
              - omegaconf==2.3.0
              - onnx==1.14.1
              - onnxruntime==1.16.0
              - openai==0.28.1
              - opencv-python==4.8.1.78
              - orjson==3.9.7
              - overrides==7.4.0
              - packaging==23.1
              - pamela==1.1.0
              - pandas==2.1.1
              - pandocfilters==1.5.0
              - param==1.13.0
              - parso==0.8.3
              - partd==1.4.1
              - pdf2image==1.16.3
              - pdfminer-six==20221105
              - pdfplumber==0.10.2
              - pexpect==4.8.0
              - pickleshare==0.7.5
              - pillow==10.0.1
              - pip==23.2.1
              - platformdirs==3.10.0
              - ply==3.11
              - portalocker==2.8.2
              - posthog==3.0.2
              - prometheus-client==0.17.1
              - prompt-toolkit==3.0.39
              - protobuf==4.24.3
              - psutil==5.9.5
              - ptyprocess==0.7.0
              - pulsar-client==3.3.0
              - pure-eval==0.2.2
              - pyarrow==13.0.0
              - pycocotools==2.0.7
              - pydantic==1.10.13
              - pydantic-core==2.0.2
              - pydeck==0.8.1b0
              - pygments==2.16.1
              - pyparsing==3.1.1
              - pypdf==3.16.2
              - pypdfium2==4.20.0
              - pypika==0.48.9
              - pysqlite3-binary==0.5.2
              - pytesseract==0.3.10
              - python-dateutil==2.8.2
              - python-docx==0.8.11
              - python-dotenv==1.0.0
              - python-iso639==2023.6.15
              - python-json-logger==2.0.7
              - python-magic==0.4.27
              - python-multipart==0.0.6
              - pytz==2023.3.post1
              - pyviz-comms==3.0.0
              - pyyaml==6.0.1
              - pyzmq==25.1.1
              - rapidfuzz==3.3.1
              - referencing==0.30.2
              - regex==2023.8.8
              - requests==2.31.0
              - rfc3339-validator==0.1.4
              - rfc3986-validator==0.1.1
              - rich==13.6.0
              - rpds-py==0.10.3
              - safetensors==0.3.3
              - scikit-learn==1.3.1
              - scipy==1.11.3
              - send2trash==1.8.2
              - sentence-transformers==2.2.2
              - sentencepiece==0.1.99
              - six==1.16.0
              - smmap==5.0.1
              - sniffio==1.3.0
              - sortedcontainers==2.4.0
              - soupsieve==2.5
              - sqlalchemy==2.0.21
              - stack-data==0.6.2
              - starlette==0.27.0
              - streamlit==1.27.2
              - sympy==1.12
              - tabulate==0.9.0
              - tblib==2.0.0
              - tenacity==8.2.3
              - terminado==0.17.1
              - threadpoolctl==3.2.0
              - tiktoken==0.5.1
              - timm==0.9.7
              - tinycss2==1.2.1
              - tokenizers==0.13.3
              - toml==0.10.2
              - tomli==2.0.1
              - torch==2.0.1
              - torchvision==0.15.2
              - tornado==6.3.3
              - traitlets==5.10.1
              - transformers==4.33.3
              - triton==2.0.0
              - typer==0.9.0
              - types-requests==2.28.11.6
              - types-urllib3==1.26.25.14
              - typing-extensions==4.8.0
              - typing-inspect==0.9.0
              - tzdata==2023.3
              - tzlocal==5.1
              - uc-micro-py==1.0.2
              - unstructured==0.10.19
              - unstructured-inference==0.5.31
              - unstructured-pytesseract==0.3.12
              - uri-template==1.3.0
              - uvicorn==0.23.2
              - uvloop==0.17.0
              - validators==0.22.0
              - watchdog==3.0.0
              - watchfiles==0.20.0
              - wcwidth==0.2.7
              - webcolors==1.13
              - webencodings==0.5.1
              - websocket-client==1.6.3
              - websockets==11.0.3
              - widgetsnbextension==4.0.9
              - xgboost==2.0.0
              - xyzservices==2023.7.0
              - yarl==1.9.2
              - zict==3.0.0
              - zipp==3.17.0
        prefix: /opt/tljh/user
Command Line Output
[W 2023-10-18 03:28:02.763 ServerApp] jupyter_ai | error adding extension (enabled: True): metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
    Traceback (most recent call last):
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 319, in add_extension
        extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 183, in __init__
        self._load_metadata()
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 192, in _load_metadata
        self.module, self.metadata = get_metadata(name, logger=self.log)
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_server/extension/utils.py", line 72, in get_metadata
        module = importlib.import_module(package_name)
      File "/opt/tljh/user/lib/python3.10/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "", line 1050, in _gcd_import
      File "", line 1027, in _find_and_load
      File "", line 1006, in _find_and_load_unlocked
      File "", line 688, in _load_unlocked
      File "", line 883, in exec_module
      File "", line 241, in _call_with_frames_removed
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_ai/__init__.py", line 2, in 
        from jupyter_ai_magics import load_ipython_extension, unload_ipython_extension
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_ai_magics/__init__.py", line 4, in 
        from .embedding_providers import (
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_ai_magics/embedding_providers.py", line 3, in 
        from jupyter_ai_magics.providers import (
      File "/opt/tljh/user/lib/python3.10/site-packages/jupyter_ai_magics/providers.py", line 231, in 
        class AI21Provider(BaseProvider, AI21):
    TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
welcome[bot] commented 11 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

3coins commented 11 months ago

@yijianching Can you try upgrading LangChain to v0.0.308 and see if that fixes your issue?

yijianching commented 11 months ago

Hi @3coins - I updated to 0.0.308 but still the same error

3coins commented 11 months ago

@yijianching This looks like an environment issue. One difference I see is that you have Pydantic 2 vs what I have is Pydantic 1.10.13. Can you try installing version 1.10.13?

yijianching commented 11 months ago

@3coins I realised I had multiple installations in conflict - when configured pydantic 1.10.13 it worked! Thank you, closing issue now