Open jackylu0124 opened 5 months ago
I believe issue is pretty straight forward. If customer facing issue with installed products, he can modify image per his own needs but no support for customization will be provided.
I haven't found issue with following instructions within nvcr.io/nvidia/tritonserver:24.04-py3-sdk
container:
apt remove -y python3-blinker python-blinker-doc
pip3 install Flask
Hi @mc-nv , thank you very much for your replies and insights!
python-blinker-doc
in addition to python3-blinker
?apt remove -y python3-blinker python-blinker-doc
preferable to doing pip3 install --ignore-installed --no-cache-dir blinker
?Thanks a lot for your time and help again!
Hi @mc-nv , a quick follow-up to this issue, I ran apt list --installed
and also dpkg -l
in the nvcr.io/nvidia/tritonserver:24.04-py3-sdk
container, but I can only find the python3-blinker
package and cannot find the python-blinker-doc
package.
python-blinker-doc
in addition to python3-blinker
?apt remove -y python3-blinker python-blinker-doc
preferable to doing pip3 install --ignore-installed --no-cache-dir blinker
?Thanks a lot for your time and help again!
Hi @mc-nv, a quick follow-up to this issue. Thank you!
Sorry, I have nothing to add on this issue.
Given error is indicates, that you can't update packages installed with apt
using pip
.
There why you have to remove it first.
Hi @mc-nv , thank you for your reply!
I understand that we have to remove the package due to the error, but my question is why we have to remove python-blinker-doc
in addition to python3-blinker
instead of just removing python3-blinker
? Could you also explain where the python-blinker-doc
package is in the container because I cannot find it by inspecting the results after running apt list --installed
and also dpkg -l
.
Could you elaborate on what you mean by the "instructions within nvcr.io/nvidia/tritonserver:24.04-py3-sdk container" and where can I find that instructions? I couldn't find the instructions inside the container, could you please let me know where it is located?
Is using apt remove -y python3-blinker python-blinker-doc
preferable to doing pip3 install --ignore-installed --no-cache-dir blinker
?
Thank you for your time and help again!
A quick followup on the qustions above, thanks!
A quick followup on the qustions above, thanks!
Description I am trying to build my own Triton client container image based off the
nvcr.io/nvidia/tritonserver:24.04-py3-sdk
container image, in which I install additional packages withpip
. The issue arises when I tried to installFlask
, and I encountered the following error logs:and upon further debugging, I found that the
blinker
package is required byFlask
, and then I also found that there'spython3-blinker
package that's managed byapt-get
, which I believe is what "a distutils installed project" in the build error log is referring to. In other words, I think we encountered this error log due to the conflicting presence of theblinker
packages in both places, managed by different package managers.I have also done some investigations online, and people mostly suggest the following two workarounds, or a combination of the two:
RUN apt-get remove -y python3-blinker
step before installing therequirements.txt
file with pip (see the updated Dockerfile below).FROM nvcr.io/nvidia/tritonserver:24.04-py3-sdk AS base
RUN apt-get update -y
RUN apt-get remove -y python3-blinker
COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt
FROM base as primary
Build command: docker build --rm --target=primary -t my_triton_client .
syntax=docker/dockerfile:1
FROM nvcr.io/nvidia/tritonserver:24.04-py3-sdk AS base
RUN apt-get update -y
RUN pip3 install --ignore-installed --no-cache-dir blinker
COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt
FROM base as primary
Build command: docker build --rm --target=primary -t my_triton_client .
syntax=docker/dockerfile:1
FROM nvcr.io/nvidia/tritonserver:24.04-py3-sdk AS base
RUN apt-get update -y
COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt
FROM base as primary
Build command: docker build --rm --target=primary -t my_triton_client .
Flask==3.0.3