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

Errors in data_conversion.py using 3D slicer #10

Open
Jennieyy opened this issue Jun 24, 2024 · 1 comment
Open

Errors in data_conversion.py using 3D slicer #10

Jennieyy opened this issue Jun 24, 2024 · 1 comment

Comments

@Jennieyy
Copy link

hello, when I use preprocess/data_conversion.py to convert the DICOM images to NIFTI, I encounter an error.
Firstly, I open the python script as a Pycharm Project, and I change the Python Interpreter (System Interpreter) to the D:/Slicer5.6.2/bin/PythonSlicer.exe, the path in 3D Slicer archive.
Secondly, I run the python script aforementioned.
Then, I encounter the error
`"D:\Slicer 5.6.2\bin\PythonSlicer.exe" D:\Dataset_preprocess\TCIA_VS_SEG\data_conversion.py -i D:/Dataset/VS_SEG/ -o D:/Dataset/VS_SEG1/
No module named 'logic'
Traceback (most recent call last):
File "D:\Dataset_preprocess\TCIA_VS_SEG\data_conversion.py", line 48, in
from DICOMLib import DICOMUtils
File "D:\Slicer 5.6.2\lib\Slicer-5.6\qt-scripted-modules\DICOMLib_init_.py", line 1, in
from .DICOMProcesses import *
File "D:\Slicer 5.6.2\lib\Slicer-5.6\qt-scripted-modules\DICOMLib\DICOMProcesses.py", line 38, in
class DICOMProcess:
File "D:\Slicer 5.6.2\lib\Slicer-5.6\qt-scripted-modules\DICOMLib\DICOMProcesses.py", line 84, in DICOMProcess
def start(self, cmd: str, args: list[str]) -> qt.QProcess:
AttributeError: module 'qt' has no attribute 'QProcess'

Process finished with exit code 1`
So, I doubt whether that I use the PythonSlicer.exe as Python Interpreter is correct.

@aaronkujawa
Copy link
Collaborator

Hi, it seems you omitted the --python-script argument in your initial command?

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