serve icon indicating copy to clipboard operation
serve copied to clipboard

has no permission to install library.

Open jack-gits opened this issue 2 years ago • 1 comments

🐛 Describe the bug

I'm using the basic docker of pytorch/torchserve:0.6.0-gpu. when I install library in this docker, I met the following errors:

Installing collected packages: tifffile, threadpoolctl, scipy, PyWavelets, opencv-python-headless, opencv-python, networkx, munch, imageio, scikit-learn, scikit-image, efficientnet-pytorch, timm, qudida, pretrainedmodels, segmentation_models_pytorch, albumentations ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/venv/lib/python3.8/site-packages/tifffile' Check the permissions.

Error logs

Successfully built efficientnet-pytorch pretrainedmodels Installing collected packages: tifffile, threadpoolctl, scipy, PyWavelets, opencv-python-headless, opencv-python, networkx, munch, imageio, scikit-learn, scikit-image, efficientnet-pytorch, timm, qudida, pretrainedmodels, segmentation_models_pytorch, albumentations ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/venv/lib/python3.8/site-packages/tifffile' Check the permissions.

Installation instructions

using the basic docker of pytorch/torchserve:0.6.0-gpu.

Model Packaing

N/A

config.properties

No response

Versions

0.6.0

Repro instructions

N/A

Possible Solution

No response

jack-gits avatar May 28 '22 17:05 jack-gits

Hi @jack-gits I can't repro this error using the vanilla torchserve docker file. Do you mind sharing a minimal repro of your Dockerfile?

msaroufim avatar May 31 '22 23:05 msaroufim

I'm getting this error

FROM pytorch/torchserve:0.5.3-cpu

RUN pip install opencv-python

then docker build -t cv2-torchserve:0.5.3-cpu .

rbavery avatar Dec 09 '22 21:12 rbavery

solved by https://github.com/pytorch/serve/issues/1499

rbavery avatar Dec 09 '22 21:12 rbavery