Why CalledProcessError while running computer vision package ?

Hi, all i am new to docker and i am facing calledprocesserror while training workflow , as i am building meter reading model by following blog
in step 4 i am facing error as follow

ERROR: Could not find a version that satisfies the requirement sap-computer-vision-package1.1.7 (from versions: none)
5.293 ERROR: No matching distribution found for sap-computer-vision-package1.1.7

Blog Link : https://developers.sap.com/tutorials/cv-package-aicore-setup.html#efebf2f0-1c23-43db-9919-637b6421b19f

output : for workflow command

Metaflow 2.8.0 executing ObjectDetectionTrain for user:sapaicore
Code package saved in codepkg.tgz.

0 building with “default” instance using docker driver

1 [internal] load build definition from DockerfileGPU

1 transferring dockerfile: 33B 0.0s

1 transferring dockerfile: 963B 0.0s done

1 DONE 0.2s

2 [internal] load .dockerignore

2 transferring context: 2B 0.1s done

2 DONE 0.2s

3 [internal] load metadata for docker.io/pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime

3 DONE 0.0s

4 [ 1/15] FROM docker.io/pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime

4 DONE 0.0s

5 [ 9/15] RUN pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html

5 CACHED

6 [ 2/15] RUN apt update -y && apt install -y libglib2.0-0 libsm6 libxrender1 libxext6 libgl1-mesa-glx build-essential wget git

6 CACHED

7 [ 5/15] RUN mkdir -p /tmp/model

7 CACHED

8 [ 7/15] RUN python -m pip install –upgrade pip

8 CACHED

9 [ 4/15] RUN mkdir -p /sap_cv/module

9 CACHED

10 [ 6/15] WORKDIR /sap_cv

10 CACHED

11 [ 3/15] RUN mkdir -p /sap_cv/data

11 CACHED

12 [ 8/15] RUN pip install “ai-core-sdk[aicore-content]==1.16.2”

12 CACHED

13 [10/15] RUN pip install sap-ai-core-metaflow[kubernetes]==1.1.11 awscli

13 CACHED

14 [internal] load build context

14 transferring context: 37B 0.0s done

14 DONE 0.1s

15 [11/15] RUN python -m pip install sap-computer-vision-package1.1.7

15 5.293 ERROR: Could not find a version that satisfies the requirement sap-computer-vision-package1.1.7 (from versions: none)

15 5.293 ERROR: No matching distribution found for sap-computer-vision-package1.1.7

15 ERROR: process “/bin/sh -c python -m pip install sap-computer-vision-package${pkg_version}” did not complete successfully: exit code: 1


[11/15] RUN python -m pip install sap-computer-vision-package1.1.7:
5.293 ERROR: Could not find a version that satisfies the requirement sap-computer-vision-package1.1.7 (from versions: none)

5.293 ERROR: No matching distribution found for sap-computer-vision-package1.1.7

DockerfileGPU:17

15 | RUN pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html
16 | RUN pip install sap-ai-core-metaflow[kubernetes]==${metaflow_version} awscli
17 | >>> RUN python -m pip install sap-computer-vision-package${pkg_version}
18 | COPY requirements.txt /sap_cv/requirements.txt

19 | RUN python -m pip install -r /sap_cv/requirements.txt

ERROR: failed to solve: process “/bin/sh -c python -m pip install sap-computer-vision-package${pkg_version}” did not complete successfully: exit code: 1


CalledProcessError Traceback (most recent call last)
Cell In[7], line 1
—-> 1 workflow.create_image(workflow_config, silent=False)

File ~/sap_cv_env/lib/python3.9/site-packages/ai_core_sdk/content/workflow.py:248, in Workflow.create_image(self, workflow_config, docker_type, return_cmd, silent)
246 if return_cmd:
247 return cmd
–> 248 check_output(cmd, stderr=PIPE if silent else None)

File /usr/lib/python3.9/subprocess.py:424, in check_output(timeout, *popenargs, **kwargs)
421 empty = b”
422 kwargs[‘input’] = empty
–> 424 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
425 **kwargs).stdout

File /usr/lib/python3.9/subprocess.py:528, in run(input, capture_output, timeout, check, *popenargs, **kwargs)
526 retcode = process.poll()
527 if check and retcode:
–> 528 raise CalledProcessError(retcode, process.args,
529 output=stdout, stderr=stderr)
530 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command ‘[‘docker’, ‘build’, ‘–platform=linux/amd64’, ‘–tag=yashkr/sap-cv-package-object-detection-train:0.0.1’, ‘–build-arg’, ‘pkg_version=1.1.7’, ‘-f/home/sapaicore/sap_cv_env/lib/python3.9/site-packages/sap_computer_vision/pipelines/batch_pipelines/DockerfileGPU’, ‘/home/sapaicore/sap_cv_env/lib/python3.9/site-packages/sap_computer_vision/pipelines/batch_pipelines’]’ returned non-zero exit status 1.

原文链接:Why CalledProcessError while running computer vision package ?

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
Do not find excuses for failure, to chase success reasons.
不要找失败的借口,去追成功的理由
评论 抢沙发

请登录后发表评论

    暂无评论内容