IBM / ibm-cos-sdk-python

ibm-cos-sdk-python
Apache License 2.0
44 stars 26 forks source link

pip install not possible - version conflict on jmespath // DOCUMENTATION IN GIT NOK (?) #48

Closed nigzak closed 1 year ago

nigzak commented 1 year ago
pip install -r requirements.txt
Obtaining ibm_cos_sdk_core from git+https://github.com/ibm/ibm-cos-sdk-python-core.git@master#egg=ibm_cos_sdk_core (from -r requirements.txt (line 1))
  Updating ./venv/src/ibm-cos-sdk-core clone (to revision master)
  Running command git fetch -q --tags
  Running command git reset --hard -q 374e9c7f9cafc50d90869e2442948c3696a6ee59
  Preparing metadata (setup.py) ... done
Obtaining jmespath from git+https://github.com/boto/jmespath.git@develop#egg=jmespath (from -r requirements.txt (line 2))
  Updating ./venv/src/jmespath clone (to revision develop)
  Running command git fetch -q --tags
  Running command git reset --hard -q bbe7300c60056f52413603cf3e2bcd0b6afeda3d
  Running command git submodule update --init --recursive -q
  Preparing metadata (setup.py) ... done
Obtaining ibm_cos_sdk_s3transfer from git+https://github.com/ibm/ibm-cos-sdk-python-s3transfer.git@master#egg=ibm_cos_sdk_s3transfer (from -r requirements.txt (line 3))
  Updating ./venv/src/ibm-cos-sdk-s3transfer clone (to revision master)
  Running command git fetch -q --tags
  Running command git reset --hard -q 19dbe1cf1ddfa72eff21843756fdecfe7112f9a2
  Preparing metadata (setup.py) ... done
ERROR: Cannot install -r requirements.txt (line 1) and jmespath 1.0.1 (from git+https://github.com/boto/jmespath.git@develop#egg=jmespath) because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested jmespath 1.0.1 (from git+https://github.com/boto/jmespath.git@develop#egg=jmespath)
    ibm-cos-sdk-core 2.12.0 depends on jmespath<1.0.0 and >=0.10.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
nigzak commented 1 year ago

looking to official IBM documentation pip install with cloning seems not to be required https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-python

use instead:

pip install ibm-cos-sdk

with this it works => official git documentation still is not good and not working and should be fixed

avinash1IBM commented 1 year ago

This has been fixed in the latest release. So closing it as resolved.