Closed mesakas closed 1 year ago
@azhavoro, could you please check?
You may need to install the packages listed in the apt install
command in the guide.
I used, but still.
I have no idea why, but there is problem with installing this specific version of av. My solution was to install all packages manually, from development.txt and base.txt (in cvat/cvat/requirements). I have installed av using
pip install av
but it is the latest version, not the specific one included in base.txt
The av 8.0.2 distribution was build with an old version of Cython, which generates code that is incompatible with Python 3.10+. It is still possible to build it, but you have to do it manually:
$ pip download --no-deps --no-binary=av av==8.0.2
$ tar -xf av-8.0.2.tar.gz
$ find av-8.0.2/ -name '*.c' -delete # force C files to be regenerated
$ # create build environment
$ python -mvenv /tmp/venv-build-av
$ /tmp/venv-build-av/bin/pip install setuptools wheel cython
$ (cd av-8.0.2 && /tmp/venv-build-av/bin/python setup.py bdist_wheel)
$ pip install av-8.0.2/dist/av-8.0.2-cp310-cp310-linux_x86_64.whl
Afterwards, you can run pip install -r cvat/requirements/development.txt
again, and it should work this time.
Of course, the long-term solution would be for us to update to a newer version of av...
The av 8.0.2 distribution was build with an old version of Cython, which generates code that is incompatible with Python 3.10+. It is still possible to build it, but you have to do it manually:
$ pip download --no-deps --no-binary=av av==8.0.2 $ tar -xf av-8.0.2.tar.gz $ find av-8.0.2/ -name '*.c' -delete # force C files to be regenerated $ # create build environment $ python -mvenv /tmp/venv-build-av $ /tmp/venv-build-av/bin/pip install setuptools wheel cython $ (cd av-8.0.2 && /tmp/venv-build-av/bin/python setup.py bdist_wheel) $ pip install av-8.0.2/dist/av-8.0.2-cp310-cp310-linux_x86_64.whl
Afterwards, you can run
pip install -r cvat/requirements/development.txt
again, and it should work this time.Of course, the long-term solution would be for us to update to a newer version of av...
Thank you, I'll switch to python3.9 and try again. 💖
I want change CVAT source, And I follow this: https://opencv.github.io/cvat/docs/contributing/development-environment/
util this step:
and Eror:
My Envirenment:
System: Ubuntu 22.04 (LTS)
Python version: 3.10.6
Pip version: 22.3.1