deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

Not able to install DeepDiff 5.8.0 in Python 3.6 environment

Open sagarkrkv opened this issue 3 years ago • 3 comments
trafficstars

Please checkout the F.A.Q page before creating a bug ticket to make sure it is not already addressed.

Describe the bug While DeepDiff supports Python 3.6, the new version of the dependency, ordered-set 4.1.0 requires Python 3.7+. DeepDiff 5.8.0 introduces a strict requirement on this specific non-compatible version of ordered-set.

To Reproduce Install DeepDiff 5.8.0 in Python 3.6 environment

Expected behavior DeepDiff to continue working in Python 3.6 or update the documentation and python_requires to >= 3.7

OS, DeepDiff version and Python version (please complete the following information):

  • OS: macOS 12.3.1
  • DeepDiff: 5.8.0
  • Python 3.6.5

Additional context Add any other context about the problem here.

sagarkrkv avatar Apr 20 '22 17:04 sagarkrkv

Ah, I wonder how it passed the tests for 3.6 Ok I will loosen up the ordered-set requirements.

seperman avatar Apr 20 '22 18:04 seperman

can confirm this

$ python3 --version
Python 3.6.9
$ sudo pip3 install deepdiff
The directory '/home/a-jason.berk/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/a-jason.berk/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting deepdiff
  Downloading https://files.pythonhosted.org/packages/3d/98/21e6baf359f03b760331444cda25332e1d1c3911fd57a36e54029489bd91/deepdiff-5.8.1-py3-none-any.whl (69kB)
    100% |████████████████████████████████| 71kB 9.1MB/s
Collecting ordered-set<4.2.0,>=4.1.0 (from deepdiff)
  Could not find a version that satisfies the requirement ordered-set<4.2.0,>=4.1.0 (from deepdiff) (from versions: 1.0.1, 1.1, 1.2, 1.3, 1.3.1, 1.4.0, 2.0.0, 2.0.1, 2.0.2, 3.0.0, 3.0.1, 3.0.2, 3.1, 3.1.1, 4.0.1, 4.0.2)
No matching distribution found for ordered-set<4.2.0,>=4.1.0 (from deepdiff)

jasonrberk avatar Jul 11 '22 16:07 jasonrberk

also see #316

jasonrberk avatar Jul 11 '22 19:07 jasonrberk

@sagarkrkv @jasonrberk DeepDiff 6 is released and this issue is resolved. Note that DeepDiff6 is published under a different package name: https://zepworks.com/deepdiff/current/#installation

pip install deepdiff6

seperman avatar Aug 14 '22 02:08 seperman