Skip to content
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

Cannot use monai-deploy package by following offical tutorial #7919

Open
Smart-Surgery-Eason opened this issue Jul 15, 2024 · 0 comments
Open

Comments

@Smart-Surgery-Eason
Copy link

Smart-Surgery-Eason commented Jul 15, 2024

Describe the bug
I followed this tutorial and failed.

I though is the conda environment problem until I found this tutorial without using conda.

so I simplify the steps as follow:

To Reproduce
Steps to reproduce the behavior:

  1. run command:
pip install fsspec
pip install monai-deploy-app-sdk
  1. Install cuda-toolkit.

  2. run command:

export PATH=/usr/local/cuda-12.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-12.5/lib64:$LD_LIBRARY_PATH
sudo apt install docker-buildx
git clone --branch main --depth 1 https://github.com/Project-MONAI/monai-deploy-app-sdk.git
cd monai-deploy-app-sdk
pip install scikit-image setuptools Pillow matplotlib
chmod +777 /tmp/requirements.txt
monai-deploy package examples/apps/simple_imaging_app -c examples/apps/simple_imaging_app/app.yaml -t simple_app:latest --platform x64-workstation -l DEBUG

Expected behavior
Stop here:

#19 [14/19] RUN pip install --no-cache-dir --user -r /tmp/requirements.txt
#19 0.408 ERROR: Could not open requirements file: [Errno 13] Permission denied: '/tmp/requirements.txt'
#19 ERROR: process "/bin/sh -c pip install --no-cache-dir --user -r /tmp/requirements.txt" did not complete successfully: exit code: 1
------
 > [14/19] RUN pip install --no-cache-dir --user -r /tmp/requirements.txt:
0.408 ERROR: Could not open requirements file: [Errno 13] Permission denied: '/tmp/requirements.txt'
------
WARNING: local cache import at /home/ubuntu/.holoscan_build_cache not found due to err: could not read /home/ubuntu/.holoscan_build_cache/index.json: open /home/ubuntu/.holoscan_build_cache/index.json: no such file or directory
Dockerfile:72
--------------------
  70 |
  71 |     RUN pip install --upgrade pip
  72 | >>> RUN pip install --no-cache-dir --user -r /tmp/requirements.txt
  73 |
  74 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir --user -r /tmp/requirements.txt" did not complete successfully: exit code: 1
[2024-07-15 10:00:51,769] [INFO] (packager) - Build Summary:

Platform: x64-workstation/dgpu
    Status: Failure
    Error:  Error building image: see Docker output for additional details.

Screenshots
image

Environment
AWS EC2 NVIDIA GPU Optimized AMI. g5.xlarge instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant