apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.76k stars 3.47k forks source link

[Bug] Problem generating Docker image for VitisAI #13771

Open fPecc opened 1 year ago

fPecc commented 1 year ago

I noticed that there is a problem with the docker image for Vitis AI, which I also noticed was detected by @areusch in #13435, but I saw there is no specific issue opened for this, so I wanted to open one with the problem I am experiencing:

Following the official guide from the documentation for the Vitis AI Integration (https://tvm.apache.org/docs/how_to/deploy/vitis_ai.html), the building of the docker container results in several errors. Steps completed so far:

git clone --recursive https://github.com/apache/tvm.git
cd tvm
./docker/build.sh demo_vitis_ai bash

First error is in line "RUN apt-get update --fix-missing", which requires the public key for kitware to be added to the apt key manager. This can be done by adding the command RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF7F09730B3F0A4 before this line. The errors mentioned below were produced after adding this command:

Line 36: "RUN bash /install/ubuntu_install_python_package.sh" results in a dependency conflict:

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.
poetry 1.2.0b1 requires packaging<21.0,>=20.4, but you have packaging 23.0 which is incompatible.

This error doesn't interrupt the script.

Line 54: "RUN bash /install/ubuntu_install_python_package.sh" is run again, this time inside a virtual environment, which is activated in the line before with "RUN conda activate vitis-ai-tensorflow". Because this time it results in different dependency conflicts compared to the error mentioned above, we inspected the python version. Outside of the virtual environment python 3.7.5 is used, inside python 3.6.13 (Checked with "RUN python3 --version" right before and right after the "RUN conda activate vitis-ai-tensorflow" command in line 53). The python version 3.6 in the virtual environment results in following dependency conflicts:

mshr-h commented 1 year ago

Hi, I've met the same problem. I guess we have to ask Xilinx dev team to help to solve the problem because the below dependency hell.

There's a related issue in the pyxir repo. https://github.com/Xilinx/pyxir/issues/94