Exporting values of "angle between two lines" (Q3DC) doesn't work

Operating system:
Slicer version: 5.0
Expected behavior: Exporting values of “angle between two lines” (Q3DC)
Actual behavior: Hello. Hope you are fine.
Two weeks ago I did export the values that I found by calculating the angles between the lines on Q3DC tool - it worked normally, creating a doc named “angle” with the measures. Now I’m trying to do exatcly the same process, but when I click the “export” buttom - after choosing the directory - nothing happens. I’ve tried several times, with no success. Can anyone picture anything I must be doing wrong that explains this?

I think @James_Hoctor has been working on Q3DC in the past few days. Which Slicer version are you using?

Do you see any errors in the Python console?

Yes. James gave me the instructions to export the values one or two weeks ago and it worked normally. That’s why now I’m trying to do the same process, but it’s not working anymore.
I am using Slicer 4.5.0. Actually, I did all the process on Slicer 4.10.2 and moved to Slicer 4.5.0 just to use the Q3DC tool because it wasn’t working in the other version.

Sorry, what does “python console” mean?

It is window where you can enter Python scripting commands and see script outputs. Hit Ctrl/Cmd+3 to show it.

Right. This window opens but I never used.

image

If you copy the entire content of the window to here then it’ll help @James_Hoctor to fix the issue. Today is a holiday in the US, so probably he won’t respond today.

Nice. I wait for his response. Thank you very much!
Here it is:

Python 2.7.10 (default, Nov 12 2015, 13:07:50) [MSC v.1500 64 bit (AMD64)] on win32

-------Surface Registration Widget SetUp--------
-------Fixed Model Change--------
Model Radio change
---------Moving Model Change----------
Model Radio change
Model Radio change
------------Landmark scaled change-----------
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/CMFreg/lib/Slicer-4.5/qt-scripted-modules/SurfaceRegistration.py”, line 451, in onFixedLandmarksChanged
self.onFixedModelRadio()
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/CMFreg/lib/Slicer-4.5/qt-scripted-modules/SurfaceRegistration.py”, line 475, in onFixedModelRadio
self.UpdateInterface()
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/CMFreg/lib/Slicer-4.5/qt-scripted-modules/SurfaceRegistration.py”, line 265, in UpdateInterface
self.logic.UpdateThreeDView(self.landmarkComboBox.currentText)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/CMFreg/lib/Slicer-4.5/qt-scripted-modules/SurfaceRegistration.py”, line 650, in UpdateThreeDView
for key in landmarkDescription.iterkeys():
AttributeError: ‘NoneType’ object has no attribute ‘iterkeys’
Model Radio change
adding observers removed!
moving observers removed!
moving observers removed!
Model Radio change
------------Landmark scaled change-----------
Model Radio change
------------Landmark scaled change-----------
------------Landmark scaled change-----------
-------Q3DC Widget Setup------
enter Q3DC
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’
Traceback (most recent call last):
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 477, in onExportAngleButton
self.logic.exportationFunction(self.directoryExportAngle, self.computedAnglesList, ‘angle’)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1498, in exportationFunction
self.exportAsCSV(fileName, listToExport, typeCalculation)
File “C:/Users/u119987/AppData/Roaming/NA-MIC/Extensions-24735/Q3DC/lib/Slicer-4.5/qt-scripted-modules/Q3DC.py”, line 1504, in exportAsCSV
file = open(filename, ‘w’)
IOError: [Errno 2] No such file or directory: ‘C:/Users/u119987/STG-Business/Waleska Furquim - Pacientes Pesquisa Clear/Pesquisa Clear Final/Erro do M\xc3\xa9todo Final/Angular/A/angle.csv’

By the way, have you tried if Q3DC works in latest (today’s) Slicer Preview Release?

No. Wich version is this?
I only worked with 4.5.0 and 4.10.2.

Preview Release that you can download from https://download.slicer.org/

No, I haven’t use it yet.
I’ll check if our TI crew can install this in our system so I can try.

Installation of Slicer-4.11 does not require administrator access. You can install it as a regular user.

Ok. I just installed the new version. Is the process to open a stl. archive different now? Because I click the archive but it doesn’t open.

What do you mean by “stl. archive”? Model files stored as STL should open the same way as before. Make sure the folder you are trying to load from does not contain special characters (or you are running a recent version of Windows 10).

Actually I’m trying to open the exact same archives I’ve openned in the other versions - and from the same Windows PC (10).

image

Slicer-4.11 is updated to support international characters in file and folder names, but this requires recent Windows10 version. I’ve noticed that you have special character in your name and if you use it in your username on your computer (or you use other special characters in any of the parent folder or filenames) and your Windows10 is not recent enough then the file will not load.

You can find detailed explanation of why the file did not load in application log (menu: Help / Report a bug).

Good morning.
Our Windows is the most actual.
The error described in “python” was “the specified module could not be found”.
Now I got it to load the file - after pasting it on desktop and trying to open it from there.

Hi @Joao_L ,

I apologize that I only got a chance to look at the error logs you posted today. Based on the logs you posted (thank you), and the fact that moving your issue was resolved by moving your data to your desktop, I believe that @lassoan is correct in identifying special characters as the issue. The latest Slicer (4.11) is the solution here, as he says.

1 Like

Hi @James_Hoctor.
No problem. Thank you very much for the support.