-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error when building new image on top of the nvcr.io/nvidia/tritonserver:24.04-py3-sdk
container image from NGC
#7243
Comments
I believe issue is pretty straight forward. I haven't found issue with following instructions within
|
Hi @mc-nv , thank you very much for your replies and insights!
Thanks a lot for your time and help again! |
Hi @mc-nv , a quick follow-up to this issue, I ran
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 |
Hi @mc-nv , thank you for your reply!
Thank you for your time and help again! |
A quick followup on the qustions above, thanks! |
1 similar comment
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).RUN pip3 install --ignore-installed --no-cache-dir blinker
step before installing therequirements.txt
file with pip (see the updated Dockerfile below).I think either one of them alone should work for the time being as a workaround, but I don't know which one is better and less "hacky" and also with less side-effects, because I see https://stackoverflow.com/questions/53807511/pip-cannot-uninstall-package-it-is-a-distutils-installed-project discussing the potential issues of using the
--ignore-installed
flag in theRUN pip3 install --ignore-installed --no-cache-dir blinker
command since we are essentially overwriting the original installation; but on the other hand,python3-blinker
is a system package (googlecolab/colabtools#3976), and I don't know whether removing thepython3-blinker
package with theRUN apt-get remove -y python3-blinker
command would introduce any unexpected side-effects.Therefore, in addition to reporting this issue, I would like to ask for your suggestions on what I should do in order to resolve the build issue. Thank you very much for your time and help in advance!
Reference links on the similar issues I found online:
Triton Information
I am using Triton version 2.45.0 and its corresponding container image
nvcr.io/nvidia/tritonserver:24.04-py3-sdk
on NGC.I am using the
nvcr.io/nvidia/tritonserver:24.04-py3-sdk
container image from NGC.To Reproduce
I have included both the
Dockerfile
and also therequirements.txt
in the attached zipped file. I am also pasting the content of both files below for convenience. To reproduce the build error, I think you just have to run thedocker build --rm --target=primary -t my_triton_client .
command in the directory containing theDockerfile
and then you will see the build error logs shown above.Dockerfile
:requirements.txt
:Expected behavior
The build error should not happen when I install additional packages (e.g.
Flask
) on top of thenvcr.io/nvidia/tritonserver:24.04-py3-sdk
container image. I tried installingFlask
in the same workflow on top of thenvcr.io/nvidia/tritonserver:23.03-py3-sdk
container image, and there was no build error during the image building process.The text was updated successfully, but these errors were encountered: