From 2c63b6c7eb5fb229abdcda1bc710cb9d68d680d4 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 30 Nov 2022 17:23:53 +0300 Subject: [PATCH] Bump dependency versions to fix compatibility with Python 3.10 (#5380) * rq 1.5.1 uses `collections.Iterable` (long deprecated and deleted in Python 3.10). 1.5.2 fixes this issue. To avoid potential regressions, don't bump the version further. * av 8.0.2 was built with old Cython, which generates C code incompatible with Python 3.10. The newest version is av 10.0.0, but that drops support for FFmpeg<4.3, which would make it unbuildable using the default Ubuntu 20.04 FFmpeg packages. To avoid that problem, use the previous version, 9.2.0. ### Motivation and context This makes it possible to run CVAT on Python 3.10. Fixes #5262. ### How has this been tested? I'm relying on CI. ### Checklist - [x] I submit my changes into the `develop` branch - ~~[ ] I have added a description of my changes into [CHANGELOG](https://github.com/cvat-ai/cvat/blob/develop/CHANGELOG.md) file~~ - ~~[ ] I have updated the [documentation]( https://github.com/cvat-ai/cvat/blob/develop/README.md#documentation) accordingly~~ - ~~[ ] I have added tests to cover my changes~~ - [x] I have linked related issues ([read github docs]( https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) - ~~[ ] I have increased versions of npm packages if it is necessary ([cvat-canvas](https://github.com/cvat-ai/cvat/tree/develop/cvat-canvas#versioning), [cvat-core](https://github.com/cvat-ai/cvat/tree/develop/cvat-core#versioning), [cvat-data](https://github.com/cvat-ai/cvat/tree/develop/cvat-data#versioning) and [cvat-ui](https://github.com/cvat-ai/cvat/tree/develop/cvat-ui#versioning))~~ ### License - [x] I submit _my code changes_ under the same [MIT License]( https://github.com/cvat-ai/cvat/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. --- cvat/requirements/base.txt | 4 ++-- utils/dataset_manifest/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cvat/requirements/base.txt b/cvat/requirements/base.txt index ca547196..3879dce5 100644 --- a/cvat/requirements/base.txt +++ b/cvat/requirements/base.txt @@ -15,7 +15,7 @@ rcssmin==1.0.6 redis==3.5.3 rjsmin==1.1.0 requests==2.26.0 -rq==1.5.1 +rq==1.5.2 rq-scheduler==0.10.0 sqlparse==0.4.2 django-sendfile2==0.7.0 @@ -36,7 +36,7 @@ opencv-python-headless==4.5.5.62 h5py==3.6.0 django-cors-headers==3.5.0 furl==2.1.0 -av==8.0.2 --no-binary=av +av==9.2.0 --no-binary=av tensorflow==2.9.3 # Optional requirement of Datumaro. Use tensorflow-macos==2.8.0 for Mac M1 # The package is used by pyunpack as a command line tool to support multiple # archives. Don't use as a python module because it has GPL license. diff --git a/utils/dataset_manifest/requirements.txt b/utils/dataset_manifest/requirements.txt index 8c8aa977..060bf8a6 100644 --- a/utils/dataset_manifest/requirements.txt +++ b/utils/dataset_manifest/requirements.txt @@ -1,4 +1,4 @@ -av==8.0.2 --no-binary=av +av==9.2.0 --no-binary=av opencv-python-headless==4.4.0.42 Pillow==9.3.0 tqdm==4.58.0