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

[BUG] Error in installation due to holoscan~=2.0 #492

Closed
vikashg opened this issue Jun 12, 2024 · 3 comments
Closed

[BUG] Error in installation due to holoscan~=2.0 #492

vikashg opened this issue Jun 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@vikashg
Copy link
Collaborator

vikashg commented Jun 12, 2024

Describe the bug
When I tried to install monai-deploy-app-sdk in edit/dev mode following the instructions, I get an error due to holoscan 2.0

Steps/Code to reproduce bug
I downloaded the latest main branch of monai-deploy-app-sdk

# Setup development environment
./run setup

Expected behavior

(monai-hugging) gupta@DIGI1036734:~/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk$ ./run setup
2024-06-12 00:45:24 $ python3 -m pip install -q -U setuptools pip wheel build
2024-06-12 00:45:25 $ python3 -m pip install -q -r /home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/requirements-dev.txt
ERROR: Could not find a version that satisfies the requirement holoscan~=2.0 (from versions: 0.0.0.post1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0)
ERROR: No matching distribution found for holoscan~=2.0
2024-06-12 00:45:26 $ python3 -m pip install -q -r /home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/requirements-examples.txt
/home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/monai/deploy/utils/importutil.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/monai/deploy/utils/importutil.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/monai/deploy/utils/importutil.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
monai_package_path: /home/gupta/miniconda3/envs/monai-hugging/lib/python3.10/site-packages
sdk_package_path  : 
is_sdk_editable   : false
Installing monai-deploy-app-sdk in edit mode...
2024-06-12 00:45:28 $ python3 -m pip install -e /home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk
Obtaining file:///home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.21.6 in /home/gupta/miniconda3/envs/monai-hugging/lib/python3.10/site-packages (from monai-deploy-app-sdk==0+untagged.500.g493c771) (1.26.4)
INFO: pip is looking at multiple versions of monai-deploy-app-sdk to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement holoscan~=2.0 (from monai-deploy-app-sdk) (from versions: 0.0.0.post1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0)
ERROR: No matching distribution found for holoscan~=2.0
/home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/monai/deploy/utils/importutil.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/gupta/disk/Tools/HUGGINGFACE/monai-deploy-app-sdk/monai/deploy/utils/importutil.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
sdk_package_path  : 
is_sdk_editable   : false
Installing monai-deploy-app-sdk in edit mode...

Environment details (please complete the following information)

  • OS/Platform: Ubuntu
  • Python Version: 2.10
  • Method of MONAI Deploy App SDK install: from source
  • SDK Version:
@vikashg vikashg added the bug Something isn't working label Jun 12, 2024
@vikashg vikashg changed the title [BUG] [BUG] Error in installation due to holoscan~=2.0 Jun 12, 2024
@MMelQin
Copy link
Collaborator

MMelQin commented Jun 12, 2024

@vikashg did you do pip update? Most likely not, based on this error log entry, "Could not find a version that satisfies the requirement holoscan~=2.0 (from versions: 0.0.0.post1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0); Holoscan 1.0 was released early in the year and it did not get list by your pip.

@vikashg
Copy link
Collaborator Author

vikashg commented Jun 12, 2024

So, I did the following

pip install --upgrade pip

The result is the same. I believe you want me to update the pip package index ?

I have holoscan 0.6.0 installed. I tried

pip install --upgrade holoscan

But it didn't yield anything. I have pip 24.0 and python 3.10

@MMelQin
Copy link
Collaborator

MMelQin commented Jun 29, 2024

@vikashg I am closing this issue as it has been answered in the referenced issue. MONAI Deploy App SDK depends on Holoscan SDK, and since v1.0, Ubuntu 22.04 is required as it is by Holoscan v1.0+ to ensure glibc >= 2.35.

@MMelQin MMelQin closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants