- trialbureautools version: 0.3.13
- Python version: 3.10 (?)
- Operating System: Windows (using cmd)
Description
Sorter crashed while sorting folder containing < and > in the foldername. In a previous update this was supposed to be fixed.
What I Did
C:\Users\manz645290>tbt sorter sort "C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012" eva
Sorting C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012 with pattern 'eva', writing to C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted
Found 24524. Mapping might take about 40 min,
Mapping all dicom files to output files...
Mapped 24524 files. No errors found
Do you want to start sorting files? [y/N]: y
[ ]
Traceback (most recent call last):
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 79, in execute_mapping
makedirs(destination.parent, exist_ok=True)
File "C:\Program Files\Python310\lib\os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [WinError 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist: 'C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-<ALPHA_Range>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\Scripts\tbt.exe_main.py", line 7, in
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\trialbureautools\cli\dicomsort.py", line 201, in sort
chunk.execute()
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 170, in execute
return self.function(*self.args, self.kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 83, in execute_mapping
raise FolderMapperException(msg)
dicomsort.folderprocessing.FolderMapperException: Error trying to copy C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012\21-008-EOC1\NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE-5708381427642399\Range-CT_LD_3.0_B31f-Tra-ALPHA_Range-CT-603\106 to C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-<ALPHA_Range>\1.3.6.1.4.1.14519.5.2.1.9999.9999.154953055571505120176550263679: [WinError 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist: 'C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-<**ALPHA_Range>'