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

[Bug] Dependency conflict with requests>=2.2.3 #925

Open
1 of 2 tasks
touma-I opened this issue Jan 8, 2025 · 4 comments
Open
1 of 2 tasks

[Bug] Dependency conflict with requests>=2.2.3 #925

touma-I opened this issue Jan 8, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@touma-I
Copy link
Collaborator

touma-I commented Jan 8, 2025

Search before asking

  • I searched the issues and found no similar issues.

Component

Transforms/Other

What happened + What you expected to happen

When using the latest release of data-prep-toolkit-transform with some other legacy application, I get the error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
deepsearch-glm 0.26.1 requires requests<3.0.0,>=2.32.3, but you have requests 2.32.2 which is incompatible.

Reproduction script

All latest releases of docling including 2.14.0 have the same issue.

python -m venv venv && source venv/bin/activate
pip install docling==2.14.0
pip install ibm-watsonx-ai==1.1.11

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
docling 2.14.0 requires requests<3.0.0,>=2.32.3, but you have requests 2.32.2 which is incompatible.

Anything else

@dolfim-ibm Is it possible to relax depedencies for future releases of docling to be requests >=2.3.2

@pankajskku This is not an issue right now for the code profiler but I suspect we may run into a similar issue down the road.

OS

MacOS (limited support)

Python

3.11.x

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@touma-I touma-I added the bug Something isn't working label Jan 8, 2025
@dolfim-ibm
Copy link
Member

I think this is already the case in later versions of Docling, so it should be a simple upgrade.

@touma-I
Copy link
Collaborator Author

touma-I commented Jan 8, 2025

@dolfim-ibm I still get the error when using docling==2.15.0 .

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
docling 2.15.0 requires requests<3.0.0,>=2.32.3, but you have requests 2.32.2 which is incompatible.

@dolfim-ibm
Copy link
Member

For the moment I'm not yet able to reproduce the install issue in a clean venv.

$ python3.11 -m venv venv
$ source ./venv/bin/activate
$ pip install docling==2.15.0 ibm-watsonx-ai==1.1.11

Successfully installed MarkupSafe-3.0.2 Shapely-2.0.6 XlsxWriter-3.2.0 annotated-types-0.7.0 anyio-4.8.0 attrs-24.3.0 autoflake-2.3.1 beautifulsoup4-4.12.3 certifi-2024.12.14 charset-normalizer-3.4.1 click-8.1.8 deepsearch-glm-1.0.0 dill-0.3.9 docling-2.15.0 docling-core-2.13.1 docling-ibm-models-3.1.0 docling-parse-3.0.0 easyocr-1.7.2 et-xmlfile-2.0.0 filelock-3.16.1 filetype-1.2.0 fsspec-2024.12.0 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 huggingface_hub-0.27.1 ibm-cos-sdk-2.13.5 ibm-cos-sdk-core-2.13.5 ibm-cos-sdk-s3transfer-2.13.5 ibm-watsonx-ai-1.1.11 idna-3.10 imageio-2.36.1 importlib-metadata-8.5.0 jinja2-3.1.5 jmespath-1.0.1 jsonlines-3.1.0 jsonref-1.1.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 lazy-loader-0.4 lomond-0.3.3 lxml-5.3.0 markdown-it-py-3.0.0 marko-2.1.2 mdurl-0.1.2 mpire-2.10.2 mpmath-1.3.0 multiprocess-0.70.17 networkx-3.4.2 ninja-1.11.1.3 numpy-1.26.4 opencv-python-headless-4.10.0.84 openpyxl-3.1.5 packaging-24.2 pandas-2.1.4 pillow-10.4.0 pyclipper-1.3.0.post6 pydantic-2.10.4 pydantic-core-2.27.2 pydantic-settings-2.7.1 pyflakes-3.2.0 pygments-2.19.1 pypdfium2-4.30.1 python-bidi-0.6.3 python-dateutil-2.9.0.post0 python-docx-1.1.2 python-dotenv-1.0.1 python-pptx-1.0.2 pytz-2024.2 pyyaml-6.0.2 referencing-0.35.1 regex-2024.11.6 requests-2.32.3 rich-13.9.4 rpds-py-0.22.3 rtree-1.3.0 safetensors-0.5.2 scikit-image-0.25.0 scipy-1.15.0 semchunk-2.2.2 shellingham-1.5.4 six-1.17.0 sniffio-1.3.1 soupsieve-2.6 sympy-1.13.1 tabulate-0.9.0 tifffile-2024.12.12 tokenizers-0.21.0 torch-2.5.1 torchvision-0.20.1 tqdm-4.67.1 transformers-4.47.1 typer-0.12.5 typing-extensions-4.12.2 tzdata-2024.2 urllib3-2.1.0 zipp-3.21.0
$ python3.12 -m venv venv
$ source ./venv/bin/activate
$ pip install docling==2.15.0 ibm-watsonx-ai==1.1.11

Successfully installed MarkupSafe-3.0.2 Shapely-2.0.6 XlsxWriter-3.2.0 annotated-types-0.7.0 anyio-4.8.0 attrs-24.3.0 autoflake-2.3.1 beautifulsoup4-4.12.3 certifi-2024.12.14 charset-normalizer-3.4.1 click-8.1.8 deepsearch-glm-1.0.0 dill-0.3.9 docling-2.15.0 docling-core-2.13.1 docling-ibm-models-3.1.0 docling-parse-3.0.0 easyocr-1.7.2 et-xmlfile-2.0.0 filelock-3.16.1 filetype-1.2.0 fsspec-2024.12.0 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 huggingface_hub-0.27.1 ibm-cos-sdk-2.13.5 ibm-cos-sdk-core-2.13.5 ibm-cos-sdk-s3transfer-2.13.5 ibm-watsonx-ai-1.1.11 idna-3.10 imageio-2.36.1 importlib-metadata-8.5.0 jinja2-3.1.5 jmespath-1.0.1 jsonlines-3.1.0 jsonref-1.1.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 lazy-loader-0.4 lomond-0.3.3 lxml-5.3.0 markdown-it-py-3.0.0 marko-2.1.2 mdurl-0.1.2 mpire-2.10.2 mpmath-1.3.0 multiprocess-0.70.17 networkx-3.4.2 ninja-1.11.1.3 numpy-1.26.4 opencv-python-headless-4.10.0.84 openpyxl-3.1.5 packaging-24.2 pandas-2.1.4 pillow-10.4.0 pyclipper-1.3.0.post6 pydantic-2.10.4 pydantic-core-2.27.2 pydantic-settings-2.7.1 pyflakes-3.2.0 pygments-2.19.1 pypdfium2-4.30.1 python-bidi-0.6.3 python-dateutil-2.9.0.post0 python-docx-1.1.2 python-dotenv-1.0.1 python-pptx-1.0.2 pytz-2024.2 pyyaml-6.0.2 referencing-0.35.1 regex-2024.11.6 requests-2.32.3 rich-13.9.4 rpds-py-0.22.3 rtree-1.3.0 safetensors-0.5.2 scikit-image-0.25.0 scipy-1.15.0 semchunk-2.2.2 setuptools-75.8.0 shellingham-1.5.4 six-1.17.0 sniffio-1.3.1 soupsieve-2.6 sympy-1.13.1 tabulate-0.9.0 tifffile-2024.12.12 tokenizers-0.21.0 torch-2.5.1 torchvision-0.20.1 tqdm-4.67.1 transformers-4.47.1 typer-0.12.5 typing-extensions-4.12.2 tzdata-2024.2 urllib3-2.1.0 zipp-3.21.0

Next is trying the complete dpk venv.

@dolfim-ibm
Copy link
Member

This should not be a problem anymore with Docling 2.15.1.

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

2 participants