Skip to content

Errors in data_conversion.py using 3D slicer #10

@Jennieyy

Description

@Jennieyy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions