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

I cannot install the dependencies. #46

Open
banzouxiaopang opened this issue Oct 28, 2024 · 5 comments
Open

I cannot install the dependencies. #46

banzouxiaopang opened this issue Oct 28, 2024 · 5 comments

Comments

@banzouxiaopang
Copy link

I successfully imported the MesSAM extension into 3D Slicer according to the installation guide on YouTube, but when prompted to install the dependencies, the progress stays stuck on the installation screen.

@rasakereh
Copy link
Collaborator

There is a long list of dependencies that has to be installed. It might take a while. To make sure that it is actually progressing and is not stuck, can you please share the content of "Python Console" with me? Python Console is a panel at the bottom of the Slicer window. If you can't see it, press Ctrl+3.

@banzouxiaopang
Copy link
Author

self._target(*self._args, **self._kwargs)
File "D:/MedSAMSlicer-0.12/MedSAMSlicer-0.12/MedSAMLite/MedSAMLite.py", line 622, in pip_install_wrapper
slicer.util.pip_install(command)
File "D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py", line 3887, in pip_install
_executePythonModule("pip", args)
File "D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py", line 3848, in _executePythonModule
logProcessOutput(proc)
File "D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py", line 3814, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['D:/软件(新)/Slicer 5.6.2/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', 'onnx>=1.16.2']' returned non-zero exit status 2.

@banzouxiaopang
Copy link
Author

有一长串必须安装的依赖项。这可能需要一段时间。为了确保它确实在进行并且没有卡住,您能否与我分享“Python 控制台”的内容?Python 控制台是 Slicer 窗口底部的一个面板。如果看不到它,请按 Ctrl+3。

self._target(*self._args, **self._kwargs)
文件“D:/MedSAMSlicer-0.12/MedSAMSlicer-0.12/MedSAMLite/MedSAMLite.py”,第 622 行,
pip_install_wrapper slicer.util.pip_install(命令)
文件“D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py”,第 3887 行,pip_install
_executePythonModule(“pip”, args)
文件“D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py”,第 3848 行,_executePythonModule
logProcessOutput(proc)
文件“D:\软件(新)\Slicer 5.6.2\bin\Python\slicer\util.py”,第 3814 行,在 logProcessOutput
中引发 CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
子进程。CalledProcessError: 命令 '['D:/软件(新)/Slicer 5.6.2/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', 'onnx>=1.16.2']' 返回非零退出状态 2。

@banzouxiaopang
Copy link
Author

banzouxiaopang commented Nov 16, 2024 via email

@rasakereh
Copy link
Collaborator

As onnx is the first dependency in the list, i'd say the problem isn't with the package itself, but the whole installation.

first, make sure you are using a stable network connection and you're not behind any restrictive firewall.
then run this command in the python console panel (Ctrl+3) and share the output: slicer.util.pip_install("onnx>=1.16.2")
Share the output with me then. tnx!

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