Using the XNATSlicer plugin

Dear

I really want to use the XNATSlicer plugin, although I can not perform the integration through 3D Slicer 4.8.1, it complains the error below.
I believe I stopped making some steps on the server or on my local machine, do I need to install some library on the server?

Hugs

Ernanez

Python 2.7.13 (default, Dec 20 2017, 00:45:45) [MSC v.1800 64 bit (AMD64)] on win32
>>> 
Traceback (most recent call last):
  File "C:/Users/HU/AppData/Roaming/NA-MIC/Extensions-26813/XNATSlicer/lib/Slicer-4.8/qt-scripted-modules/XnatSlicer.py", line 925, in onLoginButtonClicked
    self.beginXnat()
  File "C:/Users/HU/AppData/Roaming/NA-MIC/Extensions-26813/XNATSlicer/lib/Slicer-4.8/qt-scripted-modules/XnatSlicer.py", line 577, in beginXnat
    self.View.begin()
  File "C:\Users\HU\AppData\Roaming\NA-MIC\Extensions-26813\XNATSlicer\lib\Slicer-4.8\qt-scripted-modules\XnatSlicerLib\ui\View.py", line 111, in begin
    "'HOST_NAME' (HOST_URL):\n%s" %(str(e)))
  File "C:\Users\HU\AppData\Roaming\NA-MIC\Extensions-26813\XNATSlicer\lib\Slicer-4.8\qt-scripted-modules\XnatSlicerLib\ui\View.py", line 150, in showError
    msg.replace('HOST_NAME', hostName).\
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 68: ordinal not in range(128)

It seems that your computer name has special characters in it. Rename your computer to only contain ASCII characters and try again.

Hi Iasssoan

What exactly would “HOST_NAME” be my user, my domain?
in both cases it has no special character is admin and pacspesquisa.unifesp.br is my domain

Host name is the name of the computer. It is not the same as name of user or domain.

I don’t know how much the XNat extension is used anymore. Girder is a new data management platform that Kitware is actively developing that you might consider as well.

@ernandez.santos I was going to suggest that you ask on the XNAT forum, but I see you already did here: https://groups.google.com/d/topic/xnat_discussion/iPDAXWZ0jms/discussion. Based on the lack of responses, it could be that this extension is no longer supported by the XNAT team.

Hi Andras,
i was able to connect properly to the xnat and its showing me the data in the left window but when I try to load one of the data into slicer window on the right its giving me error as follow:

[Qt] QSqlQuery::prepare: database not open
[Qt] SQL failed:
[Qt]
[Qt] Error:
[Qt] No query Unable to fetch row
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109125589081
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109090012081
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109082171394
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109134992983
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109082131353
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Failed to find patient with PatientsName=APT240 and PatientID=APT240
[Qt] Failed to find patient for SOP Instance UID = 1.3.46.670589.11.42221.5.0.8048.2022112109132302540
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Required information (patient name, patient ID, study instance UID) is missing from dataset
[Qt] Failed to find patient with PatientsName= and PatientID=
Traceback (most recent call last):
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/io/Workflow_Load.py”, line 225, in __clearSceneButtonClicked
self.beginWorkflow()
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/io/Workflow_Load.py”, line 317, in beginWorkflow
self.MODULE.XnatIo.startDownloadQueue()
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/ext/Xnat/Xnat.py”, line 681, in startDownloadQueue
self.runEventCallbacks(‘downloadQueueFinished’)
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/ext/Xnat/Xnat.py”, line 617, in runEventCallbacks
callback(*args)
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/io/Workflow_Load.py”, line 283, in onDownloadFinished
loader.load()
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/io/Loader_Dicom.py”, line 169, in load
return self.loadDicomsFromDatabase(self.extractedFiles)
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/slicer.org/Extensions-32706/XNATSlicer/lib/Slicer-5.7/qt-scripted-modules/XnatSlicerLib/io/Loader_Dicom.py”, line 223, in loadDicomsFromDatabase
loadables = dicomScalarVolumePlugin.examine([matchedDatabaseFiles])
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/lib/Slicer-5.7/qt-scripted-modules/DICOMLib/DICOMPlugin.py”, line 157, in examine
return self.examineForImport(fileList)
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/bin/…/lib/Slicer-5.7/qt-scripted-modules/DICOMScalarVolumePlugin.py”, line 166, in examineForImport
loadablesForFiles = self.examineFiles(files)
File “/home/useradmin/Downloads/Slicer-5.7.0-2024-02-06-linux-amd64/bin/…/lib/Slicer-5.7/qt-scripted-modules/DICOMScalarVolumePlugin.py”, line 193, in examineFiles
seriesUID = slicer.dicomDatabase.fileValue(files[0], self.tags[“seriesUID”])
IndexError: list index out of range
[Qt] QSqlQuery::prepare: database not open

what could be the reason. for every data i try to load i get the same error.

thank you

regards,
Saima

Please go to the DICOM module and check that the DICOM database has been created (no yellow message is shown near the top-right of the Slicer application window.

1 Like

yup did it. Its running perfectly fine. thanks alot

1 Like