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

ERROR During Install MONAI Label #1801 #1802

Open
VuDuc5 opened this issue Dec 23, 2024 · 1 comment
Open

ERROR During Install MONAI Label #1801 #1802

VuDuc5 opened this issue Dec 23, 2024 · 1 comment

Comments

@VuDuc5
Copy link

VuDuc5 commented Dec 23, 2024

Hello, I am trying to install the MONAI Label and trying to download radiology app using the code " !monailabel apps --download --name radiology --output apps". I got this Problem:
"(Monai) C:\Users\user>monailabel apps --download --name radiology --output apps
Using PYTHONPATH=C:\Users\user\anaconda3\envs;
""
Traceback (most recent call last):
File "C:\Users\user\anaconda3\envs\Monai\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\user\anaconda3\envs\Monai\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\main.py", line 24, in
from monailabel.config import settings
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 23, in
class Settings(BaseSettings):
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 109, in Settings
if is_package_installed("SAM-2")
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 20, in is_package_installed
return name in sorted(x.name for x in distributions())
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 20, in
return name in sorted(x.name for x in distributions())
AttributeError: 'PathDistribution' object has no attribute 'name'"

Also, the AttributeError: 'PathDistribution' object has no attribute 'name'" happens when I try to start the MONAI server:
(Monai) C:\Users\user>monailabel start_server --app ChooseApp --studies path/dataset --conf model ChooseModel
Using PYTHONPATH=C:\Users\user\anaconda3\envs;
""
Traceback (most recent call last):
File "C:\Users\user\anaconda3\envs\Monai\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\user\anaconda3\envs\Monai\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\main.py", line 24, in
from monailabel.config import settings
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 23, in
class Settings(BaseSettings):
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 109, in Settings
if is_package_installed("SAM-2")
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 20, in is_package_installed
return name in sorted(x.name for x in distributions())
File "C:\Users\user\anaconda3\envs\Monai\lib\site-packages\monailabel\config.py", line 20, in
return name in sorted(x.name for x in distributions())
AttributeError: 'PathDistribution' object has no attribute 'name'

Could you please help me out ?. Thank you

@lassoan
Copy link
Collaborator

lassoan commented Dec 23, 2024

This was fixed in 30e97b4, please update your MONAILabel.

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

2 participants